[Spce-user] How to check rewrite rules matching
Marc Storck
mstorck at voipgate.com
Thu Sep 17 14:01:13 EDT 2015
You’re matching the exact string “9” not 9+destination.
Please use ^9(\d+)$ to match a string of digits starting with nine, but only select the digits after the 9.
BTW: copy-pasting the pattern from this email will probably not work, this has been discussed before, retype the pattern.
Regards,
Marc
> On 17 Sep 2015, at 19:53, Tung Tran <tung.tran at v247.com> wrote:
>
> Dear all
>
> I am trying to set rewrite-rule on the peer translate called number from 9+destination to prefix + destination ( for instant 6668# + destination) but the peering still get the dialed numbers, not translated one, so anyone knows where I can pull out the log files to see what is wrong.
>
> Here is my rewrite-rule
>
> Outbound Rewrite Rules for Callee
> <https://sip.v247.com:1443/rewrite/1/rules?back=https%3A%2F%2Fsip.v247.com%3A1443%2Frewrite#collapse_ocallee>
> Match Pattern Replacement Pattern Description Enabled
> <https://sip.v247.com:1443/rewrite/1/rules?move=4&where=up&back=https%3A%2F%2Fsip.v247.com%3A1443%2Frewrite%2F1%2Frules> <https://sip.v247.com:1443/rewrite/1/rules?move=4&where=down&back=https%3A%2F%2Fsip.v247.com%3A1443%2Frewrite%2F1%2Frules> ^(9)$ 6668#\1 Insert prefix 6668# yes <https://sip.v247.com:1443/rewrite/1/rules/4/edit?back=https://sip.v247.com:1443/rewrite/1/rules> <https://sip.v247.com:1443/rewrite/1/rules/4/delete?back=https%3A%2F%2Fsip.v247.com%3A1443%2Frewrite%2F1%2Frules>
> Thank you very much
> ---
>
> ---
> Best regards,
>
> Tung Tran
>
> V247 Enterprise Corp
> 713.358.2257 office | 281.857.3448 cell
> 9999 Bellaire Blvd., Ste. 1111 | Houston, TX 77036
> tung.tran at V247.com | www.V247.com <http://www.v247.com/>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://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/20150917/80f27653/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150917/80f27653/attachment-0001.asc>
More information about the Spce-user
mailing list