<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi <tt>Olle,<br>
<br>
<tt>Are you sure <tt>all these inserts (of the same branch) are
done <tt>on top of the same dialog ? maybe there are
multiple <tt>call<tt>s<tt> (InVITE in progress) wa<tt>iting
for th<tt>is registration event ?<br>
<br>
<tt>Regards,</tt><br>
</tt></tt></tt></tt></tt></tt></tt></tt></tt></tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 01/31/2018 12:03 PM, Olle Frimanson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:00df01d39a7a$ae6ec920$0b4c5b60$@zaark.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML - förformaterad Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New",serif;
color:black;}
tt
{mso-style-priority:99;
font-family:"Courier New",serif;}
span.HTML-frformateradChar
{mso-style-name:"HTML - förformaterad Char";
mso-style-priority:99;
mso-style-link:"HTML - förformaterad";
font-family:Consolas;
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.E-postmall21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-postmall22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-postmall23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">Hi
, thanks Bogdan this sorted it out and call forking works as
a charm </span><span
style="font-family:Wingdings;color:windowtext" lang="EN-US">J</span><span
style="color:windowtext" lang="EN-US">.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">The
only problem issue I have seen is that sometimes a single
registration triggers multiple events below is a log snippet
for such an case ( a bit anonymized)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">2018-01-31T09:51:56.296843+00:00
info sip-qa-1
cF6apbQMV66SfiQ2phordLXqQQvJIRxj|Route0|REGISTER|Save
location|true|<a class="moz-txt-link-abbreviated" href="mailto:userA@domain.com">userA@domain.com</a>]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">2018-01-31T09:51:56.297101+00:00
info sip-qa-1 INSERT_CALL: user <a class="moz-txt-link-abbreviated" href="mailto:userA@domain.com">userA@domain.com</a> registered
the a new contact
<a class="moz-txt-link-freetext" href="sip:userA@212.116.71.162:50734;transport=TLS;ob">sip:userA@212.116.71.162:50734;transport=TLS;ob</a>, injecting
it in transaction<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">2018-01-31T09:51:56.297470+00:00
info sip-qa-1 INSERT_CALL: user <a class="moz-txt-link-abbreviated" href="mailto:userA@domain.com">userA@domain.com</a> registered
the a new contact
<a class="moz-txt-link-freetext" href="sip:userA@212.116.71.162:50734;transport=TLS;ob">sip:userA@212.116.71.162:50734;transport=TLS;ob</a>, injecting
it in transaction<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">2018-01-31T09:51:56.297803+00:00
info sip-qa-1 INSERT_CALL: user <a class="moz-txt-link-abbreviated" href="mailto:userA@domain.com">userA@domain.com</a> registered
the a new contact
<a class="moz-txt-link-freetext" href="sip:userA@212.116.71.162:50734;transport=TLS;ob">sip:userA@212.116.71.162:50734;transport=TLS;ob</a>, injecting
it in transaction<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">One
could of course check if this contact IP/port have already
been injected into the call, but I just wondered if this is
anything you have seen before.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">BR/Olle<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="color:windowtext;mso-fareast-language:SV"
lang="EN-US">Från:</span></b><span
style="color:windowtext;mso-fareast-language:SV"
lang="EN-US"> Bogdan-Andrei Iancu
[<a class="moz-txt-link-freetext" href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>] <br>
<b>Skickat:</b> den 26 januari 2018 15:53<br>
<b>Till:</b> Olle Frimanson <a class="moz-txt-link-rfc2396E" href="mailto:olle@zaark.com"><olle@zaark.com></a>;
'OpenSIPS users mailling list'
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Ämne:</b> Re: SV: [OpenSIPS-Users] Problem with event
based routing<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt"
lang="EN-US">Hi,</span></tt><span
style="font-size:10.0pt;font-family:"Courier
New",serif" lang="EN-US"><br>
<br>
<tt>It is illegal to do signalling (like t_relay()) in
branch route. Simply remove the whole branch route stuff
from your script as you do not need it.</tt><br>
<br>
<tt>Regards,</tt><br>
<br>
</span><span style="mso-fareast-language:SV" lang="EN-US"><o:p></o:p></span></p>
<pre><span lang="EN-US">Bogdan-Andrei Iancu<o:p></o:p></span></pre>
<pre><span lang="EN-US"><o:p> </o:p></span></pre>
<pre><span lang="EN-US">OpenSIPS Founder and Developer<o:p></o:p></span></pre>
<pre><span lang="EN-US"> </span><a href="http://www.opensips-solutions.com" moz-do-not-send="true"><span lang="EN-US">http://www.opensips-solutions.com</span></a><span lang="EN-US"><o:p></o:p></span></pre>
<pre><span lang="EN-US">OpenSIPS Summit 2018<o:p></o:p></span></pre>
<pre><span lang="EN-US"> </span><a href="http://www.opensips.org/events/Summit-2018Amsterdam" moz-do-not-send="true"><span lang="EN-US">http://www.opensips.org/events/Summit-2018Amsterdam</span></a><span lang="EN-US"><o:p></o:p></span></pre>
<div>
<p class="MsoNormal"><span lang="EN-US">On 01/25/2018 12:31
PM, Olle Frimanson wrote:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">Hi I call a relay route from the branch
route, so it’s basically</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">Route { </span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> ….</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> t_wait_for_new_branches();</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> $avp(filter)= "aor="+ $avp(to_user_uri);</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">
notify_on_event("E_UL_CONTACT_INSERT","$avp(filter)",
"INSERT_CALL", "40");</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> t_on_branch(“1”)</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> If ( lookup(“location”)</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> route(relay)</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">}</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">route[RELAY] {</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> if (is_method("INVITE")) {</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> t_on_reply("1");</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> t_on_failure("3");</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> if (!t_relay()) {</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> ….</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> }</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> }</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">}</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">route[INSERT_CALL] {</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> t_inject_branches("event","cancel");</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">}</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">branch_route[1] {</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> route(RELAY);</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> exit;</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">}</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">BR / Olle</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US">PS I send another mail on the same subject
since I missed your reply pls ignore that.</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="color:windowtext;mso-fareast-language:SV"
lang="EN-US">Från:</span></b><span
style="color:windowtext;mso-fareast-language:SV"
lang="EN-US"> Bogdan-Andrei Iancu [</span><a
href="mailto:bogdan@opensips.org"
moz-do-not-send="true"><span
style="mso-fareast-language:SV" lang="EN-US">mailto:bogdan@opensips.org</span></a><span
style="color:windowtext;mso-fareast-language:SV"
lang="EN-US">] <br>
<b>Skickat:</b> den 24 januari 2018 17:42<br>
<b>Till:</b> OpenSIPS users mailling list </span><a
href="mailto:users@lists.opensips.org"
moz-do-not-send="true"><span
style="mso-fareast-language:SV" lang="EN-US"><users@lists.opensips.org></span></a><span
style="color:windowtext;mso-fareast-language:SV"
lang="EN-US">; Olle Frimanson </span><a
href="mailto:olle@zaark.com" moz-do-not-send="true"><span
style="mso-fareast-language:SV" lang="EN-US"><olle@zaark.com></span></a><span
style="color:windowtext;mso-fareast-language:SV"
lang="EN-US"><br>
<b>Ämne:</b> Re: [OpenSIPS-Users] Problem with event
based routing</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt"
lang="EN-US">Hi Olle,</span></tt><span
style="font-size:10.0pt;font-family:"Courier
New",serif" lang="EN-US"><br>
<br>
<tt>Do you call t_relay() from a BRANCH_ROUTE ?? IF so,
this is not legal as the branch route is only an
inspection and modification route, not a signaling
route.</tt><br>
<br>
<tt>Regards,</tt><br>
<br>
<br>
</span><span lang="EN-US"><o:p></o:p></span></p>
<pre><span lang="EN-US">Bogdan-Andrei Iancu<o:p></o:p></span></pre>
<pre><span lang="EN-US"> <o:p></o:p></span></pre>
<pre><span lang="EN-US">OpenSIPS Founder and Developer<o:p></o:p></span></pre>
<pre><span lang="EN-US"> </span><a href="http://www.opensips-solutions.com" moz-do-not-send="true"><span lang="EN-US">http://www.opensips-solutions.com</span></a><span lang="EN-US"><o:p></o:p></span></pre>
<pre><span lang="EN-US">OpenSIPS Summit 2018<o:p></o:p></span></pre>
<pre><span lang="EN-US"> </span><a href="http://www.opensips.org/events/Summit-2018Amsterdam" moz-do-not-send="true"><span lang="EN-US">http://www.opensips.org/events/Summit-2018Amsterdam</span></a><span lang="EN-US"><o:p></o:p></span></pre>
<div>
<p class="MsoNormal"><span lang="EN-US">On 01/24/2018 11:33
AM, Olle Frimanson wrote:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">We are looking into
changing our logic for push notification to the new
event based routing that is available in opensips 2.3.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In live scenarios
everything is working fine but when I relay the call
after injecting it into the branch I get the following
error:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">CRITICAL:tm:w_t_relay:
unsupported route type: 8<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It would be great if
you could share the configuration file that is used in
the example mention in the blog post.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">BR/Olle<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:SV"
lang="EN-US"><br>
<br>
<br>
<br>
</span><span lang="EN-US"><o:p></o:p></span></p>
<pre><span lang="EN-US">_______________________________________________<o:p></o:p></span></pre>
<pre><span lang="EN-US">Users mailing list<o:p></o:p></span></pre>
<pre><a href="mailto:Users@lists.opensips.org" moz-do-not-send="true"><span lang="EN-US">Users@lists.opensips.org</span></a><span lang="EN-US"><o:p></o:p></span></pre>
<pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true"><span lang="EN-US">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><span lang="EN-US"><o:p></o:p></span></pre>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:SV"
lang="EN-US"> </span><span lang="EN-US"><o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:SV"
lang="EN-US"><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>