Menu

#52 Allow variables as load balancer resources

closed
modules (91)
5
2014-04-22
2010-05-10
Anonymous
No

I found the need to pass to load_balance() the resource as a variable. I finally got around doing it in a switch(){ } scenario but it would be nice to be able to set the load balancer resource from a variable ($var/$avp)

Discussion

  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> razvancrainea
     
  • Razvan Crainea

    Razvan Crainea - 2010-10-25

    Hi,

    I have just committed a patch that allows load_balance to receive a pseudo-variable resource argument. Please update from trunk and try this out.

    Regards,
    Razvan

     
  • Razvan Crainea

    Razvan Crainea - 2010-10-25
    • status: open --> closed
     
  • alberto rinaudo

    alberto rinaudo - 2014-04-22

    hello,
    is there a regression on this feature?
    I'm using the stable version 1.10.1

    when I execute load_balance("$avp(group)","$avp(type)","1");
    I get "ERROR:load_balancer:do_load_balance: unknown resource in input string"

    I can confirm that $avp(type) contains the value i need.

    Thanks
    AR

     
  • Bogdan-Andrei Iancu

    No any known issues with it - it should perfectly work with variables too. If there is something that does not work, please open a bug report on GitHub ( https://github.com/OpenSIPS/opensips/issues?page=1&state=open )

    Regards,
    Bogdan

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.