[Spce-user] need rewrite rules advise

Rogier Banis rogier at ningaloo.nl
Fri Mar 28 09:57:49 EDT 2014


When i put a ^at the beginning of the rule so it looks like ˆ([1-9][0-9]+)$ then the outbound CLI is 201234567 instead 31201234567. Still can’t get it working perfectly.



Op 27 mrt. 2014, om 21:45 heeft Andreas Granig <agranig at sipwise.com> het volgende geschreven:

> Hi,
> 
> At first glance, you need a "^" character at the beginning of your match
> pattern in order to match from the start of the CLI.
> 
> Andreas
> 
> On 03/27/2014 12:09 PM, Rogier Banis wrote:
>> Hello list,
>> 
>> I have a question about rewriting caller id’s in Sipwise. The situation is like this: behind SIPWise we have several PBX’es that use SIPwise to dial out to our trunk providers. Server A presents it’s caller id like 201234567 without country code. Server B presents like 0201234567 also without country code. The 3rd server presents E164 so 31201234567.
>> Now the outbound calls to our trunk provider need the CLI to be presented in E164 so 31201234567. On the trunk i created the following rewrite rules:
>> 
>> Outbound rewrite rules for caller
>> __
>> Match pattern: \A(?:06)
>> Replacement pattern: 316
>>>> Match pattern: ([1-9][0-9]+)$
>> Replacement pattern: 31\1
>> 
>> 
>> For some reason it works but not perfect. For example when a customer dials outbound and he has callerid 318123456 (that is without country code) the NL country code still has to be added so the number looks like 31318123456.
>> Can anyone help me or point me in the right direction? I have tried so many riles already and i just doesn’t work 100% every time.
>> 
>> Thank you very much.
>> 
>> With best regards,
>> 
>> Rogier B
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> http://lists.sipwise.com/listinfo/spce-user
>> 
> 
> _______________________________________________
> 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/20140328/1abf9c56/attachment-0001.html>


More information about the Spce-user mailing list