<div dir="ltr">Hi Marc<div><br></div><div>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>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><br></div><div>Thank you once again,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><br><div>---</div><div>Best regards,</div><div><br></div><div><b>Tung Tran</b></div><div><br></div><div><div><font color="#0000ff"><b>V247 Enterprise Corp<br></b>713.358.2257 office   |  281.857.3448 cell<br>9999 Bellaire Blvd., Ste. 1111<b> | </b>Houston, TX 77036<br></font></div><div><b><font color="#0000ff">tung.tran@V247.com | <a href="http://www.v247.com/" target="_blank">www.V247.com</a></font></b></div></div><div><br></div></div></div></div>
<br><div class="gmail_quote">On Thu, Sep 17, 2015 at 1:01 PM, Marc Storck <span dir="ltr"><<a href="mailto:mstorck@voipgate.com" target="_blank">mstorck@voipgate.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>You’re matching the exact string “9” not 9+destination.</div><div><br></div><div>Please use ^9(\d+)$ to match a string of digits starting with nine, but only select the digits after the 9.</div><div><br></div><div>BTW: copy-pasting the pattern from this email will probably not work, this has been discussed before, retype the pattern.</div><div><br></div><div>Regards,</div><div><br></div><div>Marc</div><div><br></div><div><br><blockquote type="cite"><div><div class="h5"><div>On 17 Sep 2015, at 19:53, Tung Tran <<a href="mailto:tung.tran@v247.com" target="_blank">tung.tran@v247.com</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><span style="font-size:12.8px">Dear all</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">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"><br></div><div style="font-size:12.8px">Here is my rewrite-rule</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><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"><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">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"><div style="padding:9px 15px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(229,229,229)"><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"><thead><tr style="background:linear-gradient(rgb(95,155,67),rgb(73,119,52)) repeat-x rgb(86,141,61)"><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"></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)">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)">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)">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)">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"></th></tr></thead><tbody><tr><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)"><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"><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"></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"><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"></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)">^(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)">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)">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)">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)"><div style="float:right"><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"><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"></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"><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"></i></a></div></td></tr></tbody></table></div></div></div><div style="font-size:12.8px"><div dir="ltr">Thank you very much<br><div>---</div></div></div><div><div><div dir="ltr"><br><div>---</div><div>Best regards,</div><div><br></div><div><b>Tung Tran</b></div><div><br></div><div><div><font color="#0000ff"><b>V247 Enterprise Corp<br></b><a href="tel:713.358.2257" value="+17133582257" target="_blank">713.358.2257</a> office   |  <a href="tel:281.857.3448" value="+12818573448" target="_blank">281.857.3448</a> cell<br>9999 Bellaire Blvd., Ste. 1111<b> | </b>Houston, TX 77036<br></font></div><div><b><font color="#0000ff"><a href="mailto:tung.tran@V247.com" target="_blank">tung.tran@V247.com</a> | <a href="http://www.v247.com/" target="_blank">www.V247.com</a></font></b></div></div><div><br></div></div></div></div>
</div></div></div>
_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br><a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br></div></blockquote></div><br></div></blockquote></div><br></div>