<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
are you using a branch_route block?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 13/05/14 13:28, Jonathan Hunter
wrote:<br>
</div>
<blockquote cite="mid:DUB127-W63DC0E76AA51E23799ADDFBD340@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><br>
<div><br>
</div>
<div>Hi Guys,</div>
<div><br>
</div>
<div>Following on from my initial query, I have indexing working
for reg_fetch_contacts, however now I am </div>
<div>having issues with branching.</div>
<div><br>
</div>
<div>First, is append_branches() still applicable to kamailio
4.0.6 ? As when I use its not recognised.</div>
<div><br>
</div>
<div>Also I have two contacts registered, contact 0 and contact
1.</div>
<div><br>
</div>
<div>Contact 0 was registered first, then contact 1.</div>
<div><br>
</div>
<div>Now I perform manipulation on the main branch after
identifying the user agent for contact 1, and the main</div>
<div>branch request is sent out as I wish, this uses branch [0]
when running debug to the $ru/$du I have modified.</div>
<div><br>
</div>
<div>However with branch [1] this isnt modified which is fine,
but uses the contact AOR from Contact 1 and not Contact 0.</div>
<div><br>
</div>
<div>Is this normal behaviour and I just need to improve my
logic?</div>
<div><br>
</div>
<div>Any advise on parallel branching where you extract certain
credentials from location table, then as a result</div>
<div>manipulate the $ru and $du as a result, but dont affect any
other multiple registrations that would be great!</div>
<div><br>
</div>
<div>Many thanks</div>
<div><br>
</div>
<div>Jon</div>
<div><br>
</div>
<div>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">
<div><br>
<br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi Guys,
<div><br>
</div>
<div>I was wondering if anyone could help?</div>
<div><br>
</div>
<div>I am currently using reg_fetch_contacts to
manipulate signaling based on the user agent device
being used, therefore I use the result of;</div>
<div><br>
</div>
<div>
<div>if(reg_fetch_contacts("location", "$ru",
"callee"))</div>
<div>{</div>
<div><span style="font-size:12pt;">
xlog("callee=>user_agent
$ulc(callee=>user_agent)\n");</span></div>
<div><span style="font-size:12pt;">}</span></div>
<div><span style="font-size:12pt;"><br>
</span></div>
<div><span style="font-size:12pt;"><br>
</span></div>
<div><span style="font-size:12pt;">I then use
$ulc(callee=>user_agent) to make routing
decisions.</span></div>
</div>
<div><span style="font-size:12pt;"><br>
</span></div>
<div><span style="font-size:12pt;">This seems to only
return the user-agent device being used for the
first registration at that AOR, as I have two
devices registered, a Cisco, and a jitsi client, and
it only returns the user_agent of the jitsi client I
registered first.</span></div>
<div><span style="font-size:12pt;"><br>
</span></div>
<div><span style="font-size:12pt;">Is it possible to
return the user agents of all the devices registered
against an AOR so I can manage decisions
accordingly?</span></div>
<div><span style="font-size:12pt;"><br>
</span></div>
<div><span style="font-size:12pt;">Many thanks</span></div>
<div><span style="font-size:12pt;"><br>
</span></div>
<div><span style="font-size:12pt;">Jon</span></div>
<div><span style="font-size:12pt;"><br>
</span></div>
<div><span style="font-size:12pt;"><br>
</span></div>
</div>
</div>
</div>
</div>
</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>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>