[OpenSIPS-Users] Opensips 1.6 - IP prioritisation _ use_next_gw funcion
AMPTEL PTY LTD | RuvixTel
ruvixtel at gmail.com
Tue Mar 18 13:52:59 CET 2014
Hi Nick,
Could you please help us to find out any sample "complete configuration"
file so that we can once test it, as we don't have much idea about that
use_next_gw funcion how it works with routing module? Or may be you have a
sample config file we can see.
As we are trying to implement priority and prefix based routing in our
opensips server.
Any assistance will be appreciated.
--
Best Regards +
Anup
________________________
AMPtel PTY LTD, ( RuvixTel )
ABN: 77 162 081
905<http://abr.business.gov.au/SearchByAbn.aspx?SearchText=77+162+081+905>
Ph: +61 413 777 075 (Anup)
Ph: +61 433 232 177 (Piyali)
E-mail: info at ruvixtel.net
On 18 March 2014 22:20, Nick Cameo <symack at gmail.com> wrote:
> My name is not Bogdan, and there are others on here that are just as
> helpful when
> he is swamped with work, as you would imagine a project leader to be
> at times. Could
> kindly post the snippets related to r_relay in your default route, and
> also the related
> snippet in your failure route. It should looks something like this:
>
> route[1] {
> if (is_method("INVITE")) {
> xlog("L_INFO","Start Call Route: From=$fu, To=$tu,
> RU=$ru, CI=$ci at IP=$si\n");
> t_on_reply("1");
> t_on_branch("1");
> t_on_failure("1");
>
>
> }
> else if (is_method("BYE|CANCEL")) {
> xlog("L_INFO","Unforing RTP Proxy From: $fu To: $tu IP:
> $si\n");
> unforce_rtp_proxy();
> }
>
> if (!t_relay()) {
> sl_reply_error();
> }
>
> exit;
> }
>
>
> failure_route[1] {
> if (t_was_cancelled()) {
> exit;
> }
>
> if (use_next_gw()) {
> xlog("L_INFO","Next Gateway: From=$fu, To=$tu,
> RU=$ru, CI=$ci IP=$si\n");
> t_on_failure("1");
> route(1);
> exit;
> }
> else {
> t_reply("503", "Service not available, no more
> gws");
> exit;
> }
>
>
>
>
> Nick from Toronto.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140318/da9ed66d/attachment.htm>
More information about the Users
mailing list