[OpenSIPS-Users] Load Balancer Group ID with AVP variable
    campusvtv 
    campusvtv at gmail.com
       
    Tue Dec  9 20:16:56 CET 2014
    
    
  
Hello,
theoretically you can use a variable (OpenSIPs 1.11.X):
"grp- group id for the destinations; the destination may be grouped in 
several groups you can you for different scenarios; this can be a number 
or a variable containing a numerical value."
Are you sure $avp(GroupID) contain a numerical value?
If $avp(GroupID) contain a numerical value, try to assign to a different 
variable before invoking load_balance function:
$var(a)=$avp(GroupID)
then
load_balance("$var(a)","PSTN")
Regards
El 09/12/2014 10:18, bluerain escribió:
> Is it possible to use avp variable instead?  I've tried, it seems not
> working, I have to put some numeric value for it to work.  Or is my syntax
> wrong somewhere?
>
> load_balance("$avp(GroupID)","PSTN")
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Load-Balancer-Group-ID-with-AVP-variable-tp7594642.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
    
    
More information about the Users
mailing list