[Spce-user] inbound calls

gerry kernan gerry.kernan at infinityit.ie
Mon Feb 17 08:26:31 EST 2014


Thanks to all , sort once I has correct regex

Best regards

Gerry 

Sent from my iPhone

> On 17 Feb 2014, at 13:07, "Barry Flanagan" <barry at flanagan.ie> wrote:
> 
>> On 17 February 2014 12:40, gerry kernan <gerry.kernan at infinityit.ie> wrote:
>> Looks like my inbound rule is never getting called, when I grep kmailio-proxy.log for “rewrite” I don’t get any entries back.
>> 
>> Rule I’ve added to change inbound local to E.164
>> 
>>  
>> 
>> <image003.png>
>> 
> 
> 
> You definitely should get results grepping for rewrite in the kamailio log, even if none are applied.
> 
> The rule you have set above will not match an  incoming call to 01XXXXXXX - you are matching on numbers beginning with 1-9 only. Match pattern should be "^0([1-9][0-9]+)$" if you want to match 01XXXXXXX and replace it with 3531XXXXXXX
>  
> 
> -Barry
> 
>>  
>> 
>>  
>> 
>> And then in peering.  I’ve set the rewrite rule to the rule above call local. Am I missing something
>> 
>>  
>> 
>> <image004.png>
>> 
>> 
>> From: Barry Flanagan [mailto:barry at flanagan.ie] 
>> Sent: 17 February 2014 11:44
>> To: gerry kernan
>> Cc: spce-user at lists.sipwise.com
>> Subject: Re: [Spce-user] inbound calls
>> 
>>  
>> 
>> Hi Gerry,
>> 
>>  
>> 
>> You need to place these rewrite rules into the inbound section of your peer, not the subscriber. Additionally, inthe peer section you cannot use the ${caller_cc} because it is unknown.
>> 
>>  
>> 
>> What you want to have is something like this in the rewrite rule used by the peer the calls are coming in from:
>> 
>> <image005.png>
>> 
>>  
>> 
>> Hope this helps.
>> 
>>  
>> 
>> -Barry Flanagan
>> 
>>  
>> 
>>  
>> 
>> 
>> 
>> -Barry Flanagan
>> 
>> 
>> 
>> 
>> 
>>  
>> 
>> On 17 February 2014 11:26, gerry kernan <gerry.kernan at infinityit.ie> wrote:
>> 
>> Hi all
>> 
>>  
>> 
>> I have a question about inbound calls that I can’t seem to resolve, hopefully someone can help,  my incoming calls are stamped as local numbers EG 01XXXXXXX ,  so there is no country code, would this cause me to get
>> 
>>  This error “Call to unknown user - R=sip:01XXXXX at spce-ip>> 
>> I have created inbound rewrite rules but they don’t seem to be getting applied. Is this debug I can check to see if the rules are being checked?
>> 
>>  
>> 
>> <image006.png>
>> 
>>  
>> 
>> Best Regards,
>> 
>>  
>> 
>> Gerry Kernan
>> 
>> InfinityIT
>> 
>>  
>> 
>> Suite 17 The Mall | Beacon Court | Sandyford | Dublin 18
>> 
>> p: +35312930090 | f: +35312930137 | m: +353861709790
>> 
>> <image007.jpg>
>> 
>>  
>> 
>>  
>> 
>>  
>> 
>>  
>> 
>> 
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> http://lists.sipwise.com/listinfo/spce-user
>> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140217/0c5698f8/attachment-0001.html>


More information about the Spce-user mailing list