Re: [SR-Users] check for the number of open branches in Reply

2014-06-12 Thread Daniel-Constantin Mierla
Hello, $rs is set when handling a sip response, in failure_route use $T(reply_code): http://www.kamailio.org/wiki/cookbooks/4.1.x/pseudovariables#t_name Cheers, Daniel On 12/06/14 10:45, Sebastian Damm wrote: Hi, On Wed, Jun 11, 2014 at 5:59 PM, Klaus Darilion mailto:klaus.mailingli...@p

Re: [SR-Users] check for the number of open branches in Reply

2014-06-12 Thread Sebastian Damm
Hi, On Wed, Jun 11, 2014 at 5:59 PM, Klaus Darilion < klaus.mailingli...@pernau.at> wrote: > It may work catching 200 OK in reply_route, but catching >=300 in > failure route. The failure route is executed only once for all branches (it > chooses the most important response code) > I just tried

Re: [SR-Users] check for the number of open branches in Reply

2014-06-12 Thread Sebastian Damm
Hi Daniel, On Fri, Jun 6, 2014 at 10:21 AM, Daniel-Constantin Mierla wrote: > try to save the number of branches in an avp before t_relay() in > request_route. > I just tried that, but it looks strange. This is how my route for t_relay looks like: route[2] { xlog("L_DBG", "Sending ou

Re: [SR-Users] check for the number of open branches in Reply

2014-06-11 Thread Klaus Darilion
It may work catching 200 OK in reply_route, but catching >=300 in failure route. The failure route is executed only once for all branches (it chooses the most important response code) regards Klaus Am 04.06.2014 11:49, schrieb Sebastian Damm: Hi, I have a scenario where I want to send a cust

Re: [SR-Users] check for the number of open branches in Reply

2014-06-06 Thread Daniel-Constantin Mierla
Hello, On 04/06/14 11:49, Sebastian Damm wrote: Hi, I have a scenario where I want to send a custom SIP package whenever a call is successfully established or definitely missed. This works pretty well, except when a user has multiple devices online. I need to send exactly one packet. When i