[Spce-user] Rewrite Rule for SIP Peering

Andrew Pogrebennyk apogrebennyk at sipwise.com
Thu Jan 15 05:41:42 EST 2015


Hi,

On 01/14/2015 08:03 PM, Matthias Hohl wrote:
> If i compare this with a sipcall over the other trunk the only differnce
> is this:
> 
> Sip Peering it works: F=sip:436767788111@ Sip Peering doesn't work:
> F=sip:06767788111@

Ok, understood.

> So i believe i must rewrite the 0676 to 43676 to get it to work, but i
> don't know how i do this :/

You will find all the information here:
https://www.sipwise.com/doc/mr3.6.2/spce/ar01s06.html#dialplans

Specifically this example:

Replace 0 by caller’s country code:

    Match Pattern: ^0([1-9][0-9]+)$
    Replacement Pattern: ${caller_cc}\1
    Description: National to E.164
    Direction: Inbound
    Field: Caller

Hope this helps.
Andrew



More information about the Spce-user mailing list