[Spce-user] Rewrite Rules
matthias.hohl at telematica.at
Fri Feb 19 17:16:07 EST 2021
you need one rewrite rule on subscriber for normalize 0049 to 49
then you need an additional rewrite rule for peering where you set the prefix 54545 in front of your 49 number.
Inbound Rewrite Rules for Callee
Match Pattern: ^(00|\+)([1-9][0-9]+)$
Replacement Pattern: \2
Outbound Rewrite Rules for Callee
Match Pattern: ^([0-9]+)$
Replacement Pattern: 54545\1
I would herbily recommend you to read the handbook in detail.
This information you will find there too…
Von: Viraj Balgobind <ideatells at outlook.com>
Gesendet: Freitag, 19. Februar 2021 17:36
An: Walter Klomp <walter at myrepublic.net>
Cc: spce-user at lists.sipwise.com
Betreff: Re: [Spce-user] Rewrite Rules
Thanks for your reply!
What I try to achieve is the following:
1. The subscriber is calling the following outbound number 00491234567
2. The rewrite rules applied to the subscriber removed the leading 0 to 491234567
3. The peering party requires a prefix of 54545 before the number 491234567 before it is going on the trunk to the peer.
I need to make a rewrite rule Outbound for Callee. Could you help me wat I need to put as Match en replace statement?
From: Walter Klomp <walter at myrepublic.net <mailto:walter at myrepublic.net> >
Sent: Thursday, 18 February 2021 15:40
To: Viraj Balgobind <ideatells at outlook.com <mailto:ideatells at outlook.com> >
Cc: spce-user at lists.sipwise.com <mailto:spce-user at lists.sipwise.com>
Subject: Re: [Spce-user] Rewrite Rules
That is because you omit all numbers with 0 ...
I think you want to do this:
If you want to only allow numbers starting with 1-9...
On Thu, 18 Feb 2021 at 21:54, Viraj Balgobind <ideatells at outlook.com <mailto:ideatells at outlook.com> > wrote:
I am using mr8.5.3
I created a rewrite rule Outbound for Callee with the following values:
When I try to place a call wilt outbound number: 1800654123 or 9165475633 than the prefix is not added in front of the number 1 or 9.
But when I call a number in the range of 2-8 for example: 5975644555 than the prefix of 54545 is being placed in front of 5975644555 .
Is this a bug in the current system?
Spce-user mailing list
Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
Head of Voice & Systems
T: +65 6816 1120
F: +65 6717 2031
11 Lorong 3 Toa Payoh Block B Jackson Square
#04-11/15 Singapore 319579
Follow us on: <https://twitter.com/myrepublic> Twitter | <https://facebook.com/myrepublicsg> Facebook | <https://www.linkedin.com/company/myrepublic> LinkedIn
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Spce-user