<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">You may use<div class=""><br class=""></div><div class=""><a href="http://regex101.com" class="">regex101.com</a></div><div class=""><a href="http://regexpal.com" class="">regexpal.com</a></div><div class=""><br class=""></div><div class="">to test your regular expressions.</div><div class=""><br class=""></div><div class="">Regards,</div><div class=""><br class=""></div><div class="">Marc<br class="">
<br class=""><div><blockquote type="cite" class=""><div class="">On 17 Sep 2015, at 20:14, Tung Tran <<a href="mailto:tung.tran@v247.com" class="">tung.tran@v247.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class="">Hi Marc<div class=""><br class=""></div><div class="">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, </div><div class="">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?</div><div class=""><br class=""></div><div class="">Thank you once again,</div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature"><div dir="ltr" class=""><br class=""><div class="">---</div><div class="">Best regards,</div><div class=""><br class=""></div><div class=""><b class="">Tung Tran</b></div><div class=""><br class=""></div><div class=""><div class=""><font color="#0000ff" class=""><b class="">V247 Enterprise Corp<br class=""></b>713.358.2257 office | 281.857.3448 cell<br class="">9999 Bellaire Blvd., Ste. 1111<b class=""> | </b>Houston, TX 77036<br class=""></font></div><div class=""><b class=""><font color="#0000ff" class=""><a href="mailto:tung.tran@V247.com" class="">tung.tran@V247.com</a> | <a href="http://www.v247.com/" target="_blank" class="">www.V247.com</a></font></b></div></div><div class=""><br class=""></div></div></div></div>
<br class=""><div class="gmail_quote">On Thu, Sep 17, 2015 at 1:01 PM, Marc Storck <span dir="ltr" class=""><<a href="mailto:mstorck@voipgate.com" target="_blank" class="">mstorck@voipgate.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">You’re matching the exact string “9” not 9+destination.</div><div class=""><br class=""></div><div class="">Please use ^9(\d+)$ to match a string of digits starting with nine, but only select the digits after the 9.</div><div class=""><br class=""></div><div class="">BTW: copy-pasting the pattern from this email will probably not work, this has been discussed before, retype the pattern.</div><div class=""><br class=""></div><div class="">Regards,</div><div class=""><br class=""></div><div class="">Marc</div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On 17 Sep 2015, at 19:53, Tung Tran <<a href="mailto:tung.tran@v247.com" target="_blank" class="">tung.tran@v247.com</a>> wrote:</div><br class=""></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><span style="font-size:12.8px" class="">Dear all</span><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">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.</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">Here is my rewrite-rule</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class=""><div style="border:1px solid rgb(152,87,22);color:rgb(255,255,255);border-radius:4px;font-family:'Open Sans',arial,sans-serif;font-size:12px;line-height:20.4px;background-image:linear-gradient(rgb(226,138,50),rgb(197,112,28));background-color:rgb(214,128,41);background-repeat:repeat-x" class=""><a href="https://sip.v247.com:1443/rewrite/1/rules?back=https%3A%2F%2Fsip.v247.com%3A1443%2Frewrite#collapse_ocallee" style="color:rgb(255,255,255);text-decoration:none;display:block;padding:8px 15px;font-size:13px;font-weight:600" target="_blank" class="">Outbound Rewrite Rules for Callee</a></div><div style="min-height:auto;overflow:hidden;color:rgb(51,51,51);font-family:'Open Sans',arial,sans-serif;font-size:12px;line-height:20.4px" class=""><div style="padding:9px 15px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(229,229,229)" class=""><table style="max-width:100%;border-spacing:0px;width:909px;margin-bottom:20px;border-width:1px 1px 1px 0px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-top-color:rgb(28,43,55);border-right-color:rgb(221,221,221);border-bottom-color:rgb(221,221,221);border-radius:4px;background-color:transparent" class=""><thead class=""><tr style="background:linear-gradient(rgb(95,155,67),rgb(73,119,52)) repeat-x rgb(86,141,61)" class=""><th style="padding:10px 8px;line-height:20px;vertical-align:bottom;border-top-width:0px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);font-size:13px;color:rgb(255,255,255);border-right-width:1px;border-right-style:solid;border-right-color:rgb(62,102,44);border-top-left-radius:4px" class=""></th><th style="padding:10px 8px;line-height:20px;vertical-align:bottom;border-top-width:0px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(119,183,90);font-size:13px;color:rgb(255,255,255);border-right-width:1px;border-right-style:solid;border-right-color:rgb(62,102,44)" class="">Match Pattern</th><th style="padding:10px 8px;line-height:20px;vertical-align:bottom;border-top-width:0px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(119,183,90);font-size:13px;color:rgb(255,255,255);border-right-width:1px;border-right-style:solid;border-right-color:rgb(62,102,44)" class="">Replacement Pattern</th><th style="padding:10px 8px;line-height:20px;vertical-align:bottom;border-top-width:0px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(119,183,90);font-size:13px;color:rgb(255,255,255);border-right-width:1px;border-right-style:solid;border-right-color:rgb(62,102,44)" class="">Description</th><th style="padding:10px 8px;line-height:20px;vertical-align:bottom;border-top-width:0px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(119,183,90);font-size:13px;color:rgb(255,255,255);border-right-width:1px;border-right-style:solid;border-right-color:rgb(62,102,44)" class="">Enabled</th><th style="width:10px;white-space:nowrap;padding:10px 8px;line-height:20px;vertical-align:bottom;border-top-width:0px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(119,183,90);font-size:13px;color:rgb(255,255,255);border-right-style:none;border-top-right-radius:4px" class=""></th></tr></thead><tbody class=""><tr class=""><td style="padding:13px 8px;line-height:20px;vertical-align:top;border-top-width:1px;border-top-style:solid;border-top-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);border-right-width:1px;border-right-style:solid;border-right-color:rgb(221,221,221);border-bottom-left-radius:4px;background-color:rgb(240,243,247)" class=""><a href="https://sip.v247.com:1443/rewrite/1/rules?move=4&where=up&back=https%3A%2F%2Fsip.v247.com%3A1443%2Frewrite%2F1%2Frules" style="color:rgb(0,136,204);text-decoration:none" target="_blank" class=""><i style="display:inline-block;width:14px;min-height:14px;margin-top:1px;line-height:14px;vertical-align:text-top;text-decoration:inherit;background:none" class=""></i> </a><a href="https://sip.v247.com:1443/rewrite/1/rules?move=4&where=down&back=https%3A%2F%2Fsip.v247.com%3A1443%2Frewrite%2F1%2Frules" style="color:rgb(0,136,204);text-decoration:none" target="_blank" class=""><i style="display:inline-block;width:14px;min-height:14px;margin-top:1px;line-height:14px;vertical-align:text-top;text-decoration:inherit;background:none" class=""></i></a></td><td style="padding:13px 8px;line-height:20px;vertical-align:top;border-top-width:1px;border-top-style:solid;border-top-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(255,255,255);border-right-width:1px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(240,243,247)" class="">^(9)$</td><td style="padding:13px 8px;line-height:20px;vertical-align:top;border-top-width:1px;border-top-style:solid;border-top-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(255,255,255);border-right-width:1px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(240,243,247)" class="">6668#\1</td><td style="padding:13px 8px;line-height:20px;vertical-align:top;border-top-width:1px;border-top-style:solid;border-top-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(255,255,255);border-right-width:1px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(240,243,247)" class="">Insert prefix 6668#</td><td style="padding:13px 8px;line-height:20px;vertical-align:top;border-top-width:1px;border-top-style:solid;border-top-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(255,255,255);border-right-width:1px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(240,243,247)" class="">yes</td><td style="width:10px;white-space:nowrap;padding:13px 8px;line-height:20px;vertical-align:top;border-top-width:1px;border-top-style:solid;border-top-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(255,255,255);border-right-style:none;border-bottom-right-radius:4px;background-color:rgb(240,243,247)" class=""><div style="float:right" class=""><a href="https://sip.v247.com:1443/rewrite/1/rules/4/edit?back=https://sip.v247.com:1443/rewrite/1/rules" style="color:rgb(255,255,255);text-decoration:none;display:inline;padding:2px 10px;margin-bottom:0px;font-size:11.9px;line-height:16px;text-align:center;vertical-align:middle;border-width:1px;border-style:solid;border-color:rgba(0,0,0,0.0980392) rgba(0,0,0,0.0980392) rgba(0,0,0,0.247059);border-radius:3px;margin-left:0px;background-image:linear-gradient(rgb(229,151,72),rgb(201,115,28));background-color:rgb(218,136,55);background-repeat:repeat-x" target="_blank" class=""><i style="display:inline-block;width:14px;min-height:14px;margin-top:4px;line-height:0.9em;vertical-align:text-top;text-decoration:inherit;background:none" class=""></i></a><a href="https://sip.v247.com:1443/rewrite/1/rules/4/delete?back=https%3A%2F%2Fsip.v247.com%3A1443%2Frewrite%2F1%2Frules" style="color:rgb(255,255,255);text-decoration:none;display:inline;padding:2px 10px;margin-bottom:0px;font-size:11.9px;line-height:16px;text-align:center;vertical-align:middle;border-width:1px;border-style:solid;border-color:rgba(0,0,0,0.0980392) rgba(0,0,0,0.0980392) rgba(0,0,0,0.247059);border-radius:3px;margin-left:5px;background-image:linear-gradient(rgb(198,78,70),rgb(151,53,46));background-color:rgb(179,68,61);background-repeat:repeat-x" target="_blank" class=""><i style="display:inline-block;width:14px;min-height:14px;margin-top:4px;line-height:0.9em;vertical-align:text-top;text-decoration:inherit;background:none" class=""></i></a></div></td></tr></tbody></table></div></div></div><div style="font-size:12.8px" class=""><div dir="ltr" class="">Thank you very much<br class=""><div class="">---</div></div></div><div class=""><div class=""><div dir="ltr" class=""><br class=""><div class="">---</div><div class="">Best regards,</div><div class=""><br class=""></div><div class=""><b class="">Tung Tran</b></div><div class=""><br class=""></div><div class=""><div class=""><font color="#0000ff" class=""><b class="">V247 Enterprise Corp<br class=""></b><a href="tel:713.358.2257" value="+17133582257" target="_blank" class="">713.358.2257</a> office | <a href="tel:281.857.3448" value="+12818573448" target="_blank" class="">281.857.3448</a> cell<br class="">9999 Bellaire Blvd., Ste. 1111<b class=""> | </b>Houston, TX 77036<br class=""></font></div><div class=""><b class=""><font color="#0000ff" class=""><a href="mailto:tung.tran@V247.com" target="_blank" class="">tung.tran@V247.com</a> | <a href="http://www.v247.com/" target="_blank" class="">www.V247.com</a></font></b></div></div><div class=""><br class=""></div></div></div></div>
</div></div></div>
_______________________________________________<br class="">Spce-user mailing list<br class=""><a href="mailto:Spce-user@lists.sipwise.com" target="_blank" class="">Spce-user@lists.sipwise.com</a><br class=""><a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank" class="">https://lists.sipwise.com/listinfo/spce-user</a><br class=""></div></blockquote></div><br class=""></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>