<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">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)<br>
<br>
regards<br>
Klaus<br>
<br>
Am 04.06.2014 11:49, schrieb Sebastian Damm:<br>
</div>
<blockquote
cite="mid:CABkWSFxx9XCP1QkD7t0NK4K2wiofp2jLZR7LApJ+y7qG_goBaA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
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.<br>
<br>
</div>
I need to send exactly one packet. When initiating the
call I set a flag, in the reply route I check for that
flag, and on the first 4xx or 2xx response the packet gets
sent out. After that I reset the flag, so no other packet
is generated for another response coming in.<br>
<br>
</div>
Now when a user has two devices and rejects the call on the
first one but accepts it on the second, I see this call as
missed, not answered. So I need to use the first 2xx
response or the last 4xx response. For that I need to find
out how many branches are open at the moment. But I'm
missing something. I registered two devices on the same AOR.
I tried accessing $branch(count) in the onreply route, but
it is always 0. $br and $bR are <null>. <br>
<br>
</div>
Does anyone have an idea, how to get that information in the
reply_route?<br>
<br>
</div>
Best Regards,<br>
Sebastian<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
</body>
</html>