[Spce-user] How to check rewrite rules matching

Tung Tran tung.tran at v247.com
Thu Sep 17 14:14:04 EDT 2015


Hi Marc

Its working as a charm, thank you very much for your guide. I took me days
and tried everything I could think but its didnt work,
Do you know where should I get the complete document  how to write the
rewrite rules in SPCE? and how to run debug on it?

Thank you once again,


---
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/>*


On Thu, Sep 17, 2015 at 1:01 PM, Marc Storck <mstorck at voipgate.com> wrote:

> 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 PatternReplacement PatternDescriptionEnabled
> <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#\1Insert 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 <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/6146875f/attachment-0001.html>


More information about the Spce-user mailing list