[Spce-user] Rewrite rule

Andrew Pogrebennyk apogrebennyk at sipwise.com
Thu Nov 8 08:15:42 EST 2012


Jeremie,

On 11/08/2012 05:15 AM, Jeremie Chism wrote:
> This is my first rewrite rule. I'm in the US and want to make it when the customer dials a 7 digit number that it adds the subscribers country code and area code. Used the example in the guide but I guess I'm missing something. Does anyone have that rewrite rule. Also any other standard rewrite rules that I might need. Any help will be greatly appreciated. 

What about the following?

Set
Match Pattern: ^([1-9][0-9]{6})$
Replacement Pattern: ${caller_cc}${caller_ac}\1
as inbound rewrite rule for callee in the set attached to your domain.

Andrew




More information about the Spce-user mailing list