Hi, Ollie!

What are you really want to do with calls from another gateway? In practice, 
these calls are dropping with error 404.

Or you may to do something in other route...

> if (is_method("INVITE")) {
> 
>               if(!is_from_gw()) {
>                               
>                               route(ROUTE_FOR_MISTERY_CALLS);                 
>         
>               }
 }
 
Best regards,
Alexander Mustafin
[email protected]




14 нояб. 2013 г., в 20:24, Ollie Potts <[email protected]> написал(а):

> Hi all,
> 
> I’ve noticed some very strange behaviour with our opensips config and can’t 
> seem to figure out why it is happening. 
> 
> I use this method (brief) to determine when to use dynamic routing,
> 
>       if (is_method("INVITE")) {
> 
>               t_on_failure("missed_call");
> 
>               if(!is_from_gw()) {
>                               
>                               ### xlog("Call from downstream account");
>                               if(do_routing("0")){  } 
>                               
>               }
> 
> }
> 
> In this case, it uses drouting for any invites that do not originate from our 
> gateways. However, if we receive a call from a gateway destined for a number 
> that is not local, it then tries to send the call back to the gateway using 
> dynamic routing, causing a loop. The invite messages loop 10 times and then 
> the failure route is called.
> 
> I would like it to call the failure route immediately if it cannot find the 
> number locally, rather than send an invite back to the originating gateway.
> 
> Is there any way I can do this?
> 
> Thanks,
> Ollie
> 
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

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

Reply via email to