<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>If you want to do user location lookup for all branches, not only
for r-uri, use:</p>
<p> -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/registrar.html#registrar.f.lookup_branches">https://www.kamailio.org/docs/modules/stable/modules/registrar.html#registrar.f.lookup_branches</a></p>
<p>instead of just lookup(...).</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 08.09.17 10:36, Aidar Kamalov wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPXdxKgm3mCWBDn4b8j+_OdJPnQsPB7Q0HEo9ZLOQFsocBRYSw@mail.gmail.com">
<div dir="ltr">
<div>After I add route(DISPATCH) to branch_route branch calls
are going throught asterisk</div>
<div><br>
</div>
<div># Manage outgoing branches</div>
<div>branch_route[MANAGE_BRANCH] {</div>
<div> xdbg("new branch [$T_branch_idx] to $ru\n");</div>
<div> xnotice("BRANCH: $rm $ru [$ci]");</div>
<div> route(DISPATCH);</div>
<div> route(NATMANAGE);</div>
<div>}</div>
<div><br>
</div>
<div>but if I set</div>
<div> $ru = "<a href="mailto:sip%3A34200@domain.org"
moz-do-not-send="true">sip:34200@domain.org</a>";<br>
</div>
<div>
<div> append_branch("<a
href="mailto:sip%3A34201@domain.org"
moz-do-not-send="true">sip:34201@domain.org</a>");</div>
</div>
<div><br>
</div>
<div>first main ($ru) INVITE resolve to contact of ip phone
INVITE <a href="http://sip:34200@172.16.3.7:5060"
moz-do-not-send="true">sip:34200@172.16.3.7:5060</a></div>
<div>but branch doesnt' resolve INVITE <a
href="mailto:sip%3A34201@domain.org" moz-do-not-send="true">sip:34201@domain.org</a></div>
<div><br>
</div>
<div>Is there any way to resolve it?</div>
<div><br>
</div>
-- <br>
<div class="gmail_signature">Aydar A. Kamalov</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.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-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>