[OpenSIPS-Users] Local call

michel freiha michofr at gmail.com
Thu Jan 29 09:57:58 CET 2009


Hello Bogdan,

Kindly note that I tried the following method to configure local calls:

if($rU =~ "^111" || $rU =~ "^011.*" || $rU =~ "^00.*" || $rU =~ "^[+].*" )
{
if(!cr_route("default", "0", "$rU", "$rU", "call_id")){
       sl_send_reply("403", "Not allowed");
     } else {
         # In cas of failure, re-route the request
          t_on_failure("1");
          # Relay the request to the gateway
           t_relay();
   }


}

else
{

xlog("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    route(1);
}
}

When making a Long distance call that begis with 00 everything looks fine
and the call is routed correctly to its destination...The issue is when
trying a call that do not begin by 00 like calling "micho"...The system
access the else { xlog("XXXXXXXX.....and it enter inside a loop and nothing
will happen on the other side...

Can you advice please about what could be that issue?

Regards

On Wed, Jan 28, 2009 at 10:35 PM, michel freiha <michofr at gmail.com> wrote:

> Dear Bogdan,
>
> Please let me know before using the dynamic routing module if there is a
> possibility to make local calls with carrierroute
>
> regards
>
>
> On Wed, Jan 28, 2009 at 5:25 PM, Bogdan-Andrei Iancu <
> bogdan at voice-system.ro> wrote:
>
>> Hi Michel,
>>
>> Try using the dynamic Routing module - it is simple to configure and I can
>> help you there. You can achieve the same functionality.
>>
>> Regards,
>> Bogdan
>>
>> michel freiha wrote:
>>
>>> Dear All,
>>>
>>> I'm using carrierroute module fro load balancing as follow:
>>>
>>>
>>> if(!cr_route("default", "0", "$rU", "$rU", "call_id")){
>>>       sl_send_reply("403", "Not Allowed");
>>>     } else {
>>>
>>>
>>>         # In cas of failure, re-route the request
>>>          t_on_failure("1");
>>>          # Relay the request to the gateway
>>>           t_relay();
>>> }
>>>
>>> Everything looks fine when making a long distance call that begin with
>>> 00...The issue is when making a local call to opensips, the server return
>>> Not Allowed...
>>> Can you tell me please what is missing here?
>>>
>>> Regards
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> 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/20090129/9c4e7ef0/attachment.htm 


More information about the Users mailing list