<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi,<br>
<br>
<tt><tt>It is <tt>illegal</tt> to do signalling (like t_relay(<tt>))
in branch <tt>route. S<tt>imply remove <tt>the whole
branch route stuff from your script as <tt>you do not
need it.<br>
<br>
<tt>Regards,</tt><br>
</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/25/2018 12:31 PM, Olle Frimanson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:002401d395c7$bab8a550$3029eff0$@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:"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";
color:black;}
tt
{mso-style-priority:99;
font-family:"Courier New";}
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.HTML-frformateradChar
{mso-style-name:"HTML - förformaterad Char";
mso-style-priority:99;
mso-style-link:"HTML - förformaterad";
font-family:Consolas;
color:black;}
span.E-postmall21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-postmall22
{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
I call a relay route from the branch route, so it’s
basically<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">Route
{ <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">
t_wait_for_new_branches();<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
$avp(filter)= "aor="+ $avp(to_user_uri);<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");<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
t_on_branch(“1”)<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">
If ( lookup(“location”)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
route(relay)<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"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">route[RELAY]
{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
if (is_method("INVITE")) {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
t_on_reply("1");<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
t_on_failure("3");<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
if (!t_relay()) {<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">
}<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">}<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">route[INSERT_CALL]
{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
t_inject_branches("event","cancel");<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"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">branch_route[1]
{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
route(RELAY);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext" lang="EN-US">
exit;<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"><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>
<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.<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"><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">Från:</span></b><span
style="color:windowtext;mso-fareast-language:SV">
Bogdan-Andrei Iancu [<a class="moz-txt-link-freetext" href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>] <br>
<b>Skickat:</b> den 24 januari 2018 17:42<br>
<b>Till:</b> OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a>; Olle Frimanson
<a class="moz-txt-link-rfc2396E" href="mailto:olle@zaark.com"><olle@zaark.com></a><br>
<b>Ämne:</b> Re: [OpenSIPS-Users] Problem with event
based routing<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt">Hi Olle,</span></tt><span
style="font-size:10.0pt;font-family:"Courier New""><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>
</span><span style="mso-fareast-language:SV"><o:p></o:p></span></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre> <a href="http://www.opensips-solutions.com" moz-do-not-send="true">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<pre>OpenSIPS Summit 2018<o:p></o:p></pre>
<pre> <a href="http://www.opensips.org/events/Summit-2018Amsterdam" moz-do-not-send="true">http://www.opensips.org/events/Summit-2018Amsterdam</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 01/24/2018 11:33 AM, Olle Frimanson
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Hi,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></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.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></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:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">CRITICAL:tm:w_t_relay:
unsupported route type: 8</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></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.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">BR/Olle</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:SV"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:SV"><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>