Question about dispatcher config in failure_route

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about dispatcher config in failure_route

Juan Backson
Hi,

In my setup, I have opensips (192.168.1.101:5060) and b2bua (
192.168.1.101:5800), when the failure_route is executed, opensips
(192.168.1.101:5060) would send an invite to itself
(192.168.1.101:5060) instead of (192.168.1.101:5800).  In the
dispatcher table, I only have have ip:port specified for the group_id
and this ip:port is 192.168.1.101:5800. Could someone tell me what is
wrong with the following script?


failure_route[1] {

     if (t_check_status("486")) {
                   revert_uri();
                   prefix("b");
                  ds_next_domain();
                  append_branch();
                  route(1);
                  exit;
        };
};

Thanks in advance for all your help.

JB

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Question about dispatcher config in failure_route

Bogdan-Andrei Iancu
Hi Juan,

Remove the revert_uri() and append_branch() from your script.

Regards,
Bogdan

Juan Backson wrote:

> Hi,
>
> In my setup, I have opensips (192.168.1.101:5060) and b2bua (
> 192.168.1.101:5800), when the failure_route is executed, opensips
> (192.168.1.101:5060) would send an invite to itself
> (192.168.1.101:5060) instead of (192.168.1.101:5800).  In the
> dispatcher table, I only have have ip:port specified for the group_id
> and this ip:port is 192.168.1.101:5800. Could someone tell me what is
> wrong with the following script?
>
>
> failure_route[1] {
>
>      if (t_check_status("486")) {
>                    revert_uri();
>                    prefix("b");
>                   ds_next_domain();
>                   append_branch();
>                   route(1);
>                   exit;
>         };
> };
>
> Thanks in advance for all your help.
>
> JB
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>  



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users