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)
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
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
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.
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
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
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