Re: [OpenSIPS-Users] Load Balancer Group ID with AVP variable

2014-12-09 Thread bluerain
Oh yes, I figured out, I just forgot to remove the thread.  It seems the
database "data type" matters in this case.  If that field in the DB table is
varchar (I am using MSSQL) avp variable under load balancer module will not
work.  You have to use one of the "interger" data type in order for this to
work.

But thank you!



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Load-Balancer-Group-ID-with-AVP-variable-tp7594642p7594645.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Load Balancer Group ID with AVP variable

2014-12-09 Thread campusvtv

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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] fr_inv_timeout

2014-12-09 Thread bluerain
Actually after reading, so like you said $T_fr_inv_timeout is just a
"dynamic" way to change the fr_inv_timeout setting for the tm module.  BUT
it seems by reading $T_fr_inv 'definition':

1.5.4. $T_fr_inv_timeout

$T_fr_inv_timeout (R/W) - the timeout for the final reply to an INVITE
request, after a 1XX reply was received

It seems fr_inv_timeout is the timer I am looking for, so by setting the
fr_inv_timeout at 5 seconds, it should NOT cut the call off if it receive
180/183 within 5 seconds of receiving 100 trying, correct?  But yet, the
call WAS CUT OFF.  It seems Opensips wants the call be ANSWERED within 5
second.  Anything else other then ANSWER, it will cut off in 5 second.  

So am I doing something wrong?

Here are my original settings:

modparam("tm", "fr_timer", 5)
modparam("tm", "fr_inv_timer", 30)

In this case, call will get cut off if not answer within 30 seconds.

After change it to 

modparam("tm", "fr_timer", 5)
modparam("tm", "fr_inv_timer", 5)

Now call gets cut off within 5 seconds if no answer.

So almost seems like fr_inv_timer is a RING NO ANSWER timer.  Or a timer
that is for between INVITE AND 200 OK?







--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/fr-inv-timeout-tp7594633p7594643.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Load Balancer Group ID with AVP variable

2014-12-09 Thread bluerain
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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] fr_inv_timeout

2014-12-09 Thread bluerain
thank you very much for the information!  I'll try it out!



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/fr-inv-timeout-tp7594633p7594641.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users