[Spce-user] How to check rewrite rules matching
Marc Storck
mstorck at voipgate.com
Thu Sep 17 14:32:37 EDT 2015
You may use
regex101.com <http://regex101.com/>
regexpal.com <http://regexpal.com/>
to test your regular expressions.
Regards,
Marc
> On 17 Sep 2015, at 20:14, Tung Tran <tung.tran at v247.com> wrote:
>
> 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 <mailto: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 <mailto: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 <tel:713.358.2257> office | 281.857.3448 <tel:281.857.3448> cell
>> 9999 Bellaire Blvd., Ste. 1111 | Houston, TX 77036
>> tung.tran at V247.com <mailto:tung.tran at V247.com> | www.V247.com <http://www.v247.com/>
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>> https://lists.sipwise.com/listinfo/spce-user <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/2dd8703c/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/2dd8703c/attachment-0001.asc>
More information about the Spce-user
mailing list