[OpenSIPS-Users] Problem with event based routing

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jan 26 09:52:55 EST 2018


Hi,

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.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Summit 2018
   http://www.opensips.org/events/Summit-2018Amsterdam

On 01/25/2018 12:31 PM, Olle Frimanson wrote:
>
> Hi I call a relay route from the branch route, so it’s basically
>
> Route {
>
> ….
>
> t_wait_for_new_branches();
>
> $avp(filter)= "aor="+ $avp(to_user_uri);
>
> notify_on_event("E_UL_CONTACT_INSERT","$avp(filter)", "INSERT_CALL", 
> "40");
>
> t_on_branch(“1”)
>
> If ( lookup(“location”)
>
>     route(relay)
>
> }
>
> route[RELAY] {
>
> if (is_method("INVITE")) {
>
> t_on_reply("1");
>
> t_on_failure("3");
>
> if (!t_relay()) {
>
> ….
>
> }
>
> }
>
> }
>
> route[INSERT_CALL] {
>
> t_inject_branches("event","cancel");
>
> }
>
> branch_route[1] {
>
> route(RELAY);
>
> exit;
>
> }
>
> BR / Olle
>
> PS I send another mail on the same subject since I missed your reply 
> pls ignore that.
>
> *Från:*Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
> *Skickat:* den 24 januari 2018 17:42
> *Till:* OpenSIPS users mailling list <users at lists.opensips.org>; Olle 
> Frimanson <olle at zaark.com>
> *Ämne:* Re: [OpenSIPS-Users] Problem with event based routing
>
> Hi Olle,
>
> 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.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
>    http://www.opensips-solutions.com
> OpenSIPS Summit 2018
>    http://www.opensips.org/events/Summit-2018Amsterdam
>
> On 01/24/2018 11:33 AM, Olle Frimanson wrote:
>
>     Hi,
>
>     We are looking into changing our logic for push notification to
>     the new event based routing that is available in opensips 2.3.
>
>     In live scenarios everything is working fine but when I relay the
>     call after injecting it into the branch I get the following error:
>
>     CRITICAL:tm:w_t_relay: unsupported route type: 8
>
>     It would be great if you could share the configuration file that
>     is used in the example mention in the blog post.
>
>     BR/Olle
>
>
>
>
>     _______________________________________________
>
>     Users mailing list
>
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180126/24c984ad/attachment.html>


More information about the Users mailing list