<div dir="ltr">Hi Daniel,<div><br></div><div>I tried this outbound rewrite rules to callee:</div><div>    Match Pattern: ^([0-9]+)$<br>    Replacement Pattern: 1001#\1<br>    Description: Prefix<br>    Direction: Outbound<br>    Field: Callee </div><div><br></div><div>In "Call Routing Verification", show the correct rewrite. My INVITE remains unchanged. Sipwise Devs to do: keep it simple like dSIPRouter, please :-) </div><div><br></div><div><br>--- Log:<br>found caller subscriber '<a href="mailto:sip%3Akazoo@54.233.79.7">sip:kazoo@54.233.79.7</a>' with id 1<br>call from +554130129701 using subscriber '<a href="mailto:kazoo@54.233.79.7">kazoo@54.233.79.7</a>' id 1<br>using caller rewrite rule set 'regra padrao' with id 1<br>caller +554130129701 is rewritten based on the inbound rules into 554130129701<br>callee +5541998970007 is rewritten based on the inbound rules into 5541998970007<br>caller 554130129701 is rejected as it does not match subscriber's 'allowed_clis'<br>'allowed_cli' reject policy is 'override_by_usernpn', taken from 'cli' 554130304040<br>callee subscriber lookup based on 5541998970007<br>no callee subscriber found, performing peer lookup with caller uri <a href="mailto:sip%3A554130304040@54.233.79.7">sip:554130304040@54.233.79.7</a> and callee uri <a href="mailto:sip%3A5541998970007@187.60.60.189">sip:5541998970007@187.60.60.189</a> and callee 5541998970007<br>matched peer 'Endpoints' with id 1<br>call to +5541998970007 and peer host 'Datora' (ip: 187.60.60.189) with id 4<br>using callee rewrite rule set 'regra padrao' with id 1<br>caller 554130304040 is rewritten based on the outbound rules into 04130304040<br>callee 5541998970007 is rewritten based on the outbound rules into 1001#5541998970007     <===============================================</div><div><br></div><div>--- Invite:</div><div>2020/02/13 17:41:33.154303 <a href="http://172.31.37.142:5060">172.31.37.142:5060</a> -> <a href="http://187.60.60.189:5060">187.60.60.189:5060</a><br>INVITE sip:+5541998970007@187.60.60.189:5060;transport=udp SIP/2.0    <===============================================<br>Record-Route: <sip:54.233.79.7:5060;r2=on;lr=on;ftag=4EFB872A-5E458A4D000257AC-14A4B700;ngcplb=yes><br>Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=4EFB872A-5E458A4D000257AC-14A4B700;ngcplb=yes><br>Via: SIP/2.0/UDP 54.233.79.7:5060;branch=z9hG4bK593e.45abd9c26a210f56603d610401ca3397.0<br>Via: SIP/2.0/UDP 127.0.0.1:5080;received=127.0.0.1;branch=z9hG4bKtMGdHa.1;rport=5080<br>From: <<a href="mailto:sip%3A554130129701@169.57.148.23">sip:554130129701@169.57.148.23</a>>;tag=4EFB872A-5E458A4D000257AC-14A4B700<br>To: <<a href="mailto:sip%3A%2B5541998970007@187.60.60.189">sip:+5541998970007@187.60.60.189</a>><br>CSeq: 10 INVITE<br>Call-ID: 1848f154-4e88-11ea-8701-d574145c6a81_b2b-1<br>Max-Forwards: 69<br>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, REGISTER, NOTIFY, PUBLISH, SUBSCRIBE<br>Supported: path, replaces<br>Content-Disposition: session<br>P-Asserted-Identity: <<a href="mailto:sip%3A554130304040@54.233.79.7">sip:554130304040@54.233.79.7</a>><br>Content-Type: application/sdp<br>Content-Length: 736<br>Contact: <sip:ngcp-lb@54.233.79.7:5060;ngcpct=7369703a3132372e302e302e313a35303830><br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br>--<br><table border="0" cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;font-family:proxima-nova-1,proxima-nova-2,Tahoma,Helvetica,Verdana,sans-serif;vertical-align:baseline;border-spacing:0px;color:rgb(51,51,51);line-height:18.2000007629395px"><tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:auto;height:30px"> </td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;width:auto"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;line-height:0"><a href="http://about.me/lacerdaguilherme?promo=email_sig" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;color:rgb(43,130,173);text-decoration:none;display:inline-block" target="_blank"><table border="0" cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;border-spacing:0px"><tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td align="left" valign="top" style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:top;width:auto;line-height:1"><img alt="--" width="0" height="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block;width:0px;height:0px;overflow:hidden"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-size:18px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline;line-height:1;color:rgb(51,51,51)">Guilherme Lacerda</div><div style="margin:3px 0px 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-size:12px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline"><img alt="http://" width="0" height="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block;width:0px;height:0px;overflow:hidden">about.me/lacerdaguilherme</div></td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td align="left" valign="top" style="padding:8px 0px 0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:top;width:auto;line-height:1"><div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;text-align:right;height:4px;background-color:rgb(197,208,224)"><img src="http://d13pix9kaak6wt.cloudfront.net/signature/colorbar.png" alt="" width="88" height="4" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;float:right;display:block"></div></td></tr></tbody></table></a>                                </div></td></tr><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:auto;height:20px"> </td></tr></tbody></table></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua., 12 de fev. de 2020 às 11:07, Daniel Grotti <<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
under the "Outbound rewrite rules for callee", assigned to your peering <br>
server.<br>
See chapter: <br>
<a href="https://www.sipwise.com/doc/mr7.5.3/spce/?_href=ar01s06.html#dialplans" rel="noreferrer" target="_blank">https://www.sipwise.com/doc/mr7.5.3/spce/?_href=ar01s06.html#dialplans</a><br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
Daniel Grotti<br>
<br>
Head of Customer Support                     Sipwise GmbH<br>
e: <a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>                     Europaring F15<br>
t: +43(0)130120332                A-2345 Brunn Am Gebirge<br>
w: <a href="http://www.sipwise.com" rel="noreferrer" target="_blank">www.sipwise.com</a>   FN: 305595f   FG: LG Wiener Neustadt<br>
<br>
On 2/11/20 8:52 PM, Guilherme Lacerda wrote:<br>
> Hi,<br>
> <br>
> Simple question: where I add a prefix to make my calls?  :-P<br>
> <br>
> My peer need a prefix ( 1001#<a href="mailto:5541998980908@111.112.113.114" target="_blank">5541998980908@111.112.113.114</a> <br>
> <mailto:<a href="mailto:5541998980908@111.112.113.114" target="_blank">5541998980908@111.112.113.114</a>> ) to complete calls.<br>
> <br>
> I've tried in peer details -> Outbound peering Rules and in Rewrite Rules.<br>
> <br>
> Thanks and regards.<br>
> <br>
> --<br>
> --<br>
> Guilherme Lacerda<br>
> <a href="http://about.me/lacerdaguilherme" rel="noreferrer" target="_blank">http://about.me/lacerdaguilherme</a><br>
> <br>
> <<a href="http://about.me/lacerdaguilherme?promo=email_sig" rel="noreferrer" target="_blank">http://about.me/lacerdaguilherme?promo=email_sig</a>><br>
> <br>
> <br>
<br>
-- <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="http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com" rel="noreferrer" target="_blank">http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com</a><br>
</blockquote></div>