[OpenSIPS-Users] Dynamic Routing for calls towards gateways

Alexander Mustafin mustafin.aleksandr at gmail.com
Thu Nov 14 18:39:29 CET 2013


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
mustafin.aleksandr at gmail.com




14 нояб. 2013 г., в 20:24, Ollie Potts <ollie at stourmarine.net> написал(а):

> 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
> 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/20131114/35de671e/attachment-0001.htm>


More information about the Users mailing list