[Spce-user] Rewrite Rules
Viraj Balgobind
ideatells at outlook.com
Fri Feb 19 11:36:05 EST 2021
Hi Walter,
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?
Kind regards,
Viraj
From: Walter Klomp <walter at myrepublic.net>
Sent: Thursday, 18 February 2021 15:40
To: Viraj Balgobind <ideatells at outlook.com>
Cc: 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:
^([1-9][0-9]+)$
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:
Hi,
I am using mr8.5.3
I created a rewrite rule Outbound for Callee with the following values:
Match:
^([1-9]+)$
Replace:
54545\1
Enabled:
yes
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?
Kind regards,
Viraj
--
Spce-user mailing list
Spce-user at lists.sipwise.com<mailto:Spce-user at lists.sipwise.com>
http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com
--
Warmest Regards,
[https://myrepublic.com.sg/resources/email-signature.png]<https://myrepublic.com.sg/>
Walter Klomp
Head of Voice & Systems
MyRepublic Limited
T: +65 6816 1120
F: +65 6717 2031
MyRepublic Limited
11 Lorong 3 Toa Payoh Block B Jackson Square
#04-11/15 Singapore 319579
myrepublic.com.sg<https://myrepublic.com.sg/>
Follow us on: Twitter<https://twitter.com/myrepublic> | Facebook<https://facebook.com/myrepublicsg> | LinkedIn<https://www.linkedin.com/company/myrepublic>
The contents of this email and any attachments are confidential and may also be privileged. You must not disseminate the contents of this email and any attachments without permission of the sender. If you have received this email by mistake, please delete all copies and inform the sender immediately. You may refer to our company's Privacy Policy here<https://myrepublic.net/sg/legal/terms-of-use-policies/privacy-policy/>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20210219/7d03a933/attachment-0002.html>
More information about the Spce-user
mailing list