<div dir="ltr">hello,<div><br></div><div>Thanks for your information. Sad news to my project. To start, I need open solution and in the future, going to a PRO suit/application.</div><div><br></div><div>Regards,<br clear="all"><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 seg., 17 de fev. de 2020 às 09:04, 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>
please notice that Header Manipulation is a PRO/CARRIER feature, not <br>
available for CE.<br>
Even though web GUI is displaying it, changes with that regards will not <br>
take any effect.<br>
<br>
<br>
Cheers,<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/14/20 2:01 PM, Guilherme Lacerda wrote:<br>
> Hi,<br>
> <br>
> Thanks your reply.<br>
> <br>
> I think I understand now how rewrite rules works :-D<br>
> <br>
> Cenario 1: first rule is for remove "+". Second rule is for append a <br>
> prefix. Match first rule and stop here, not process second rule.<br>
> <br>
> Cenario 2: I changed rules from outbound callee to inbound callee (call <br>
> flow is Softphone => PBX => Sipwise => PSTN, Sipwise only for LB/LCR and <br>
> rewrite headers).<br>
> <br>
> When I insert rewrite rules in Inbound and use normalization + add <br>
> prefix in one rule, it works.<br>
> <br>
> Now start a new battle: header manipulations (handbook do not have <br>
> detailed examples or explain all options).<br>
> <br>
> Thanks for your help.<br>
> <br>
> 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>
> Em sex., 14 de fev. de 2020 às 04:54, Daniel Grotti <<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a> <br>
> <mailto:<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>>> escreveu:<br>
> <br>
>     Hi,<br>
>     Have you assigned the the Rewrite rule set to the peering server used?<br>
>     Anyway, your number cannot not match, as long as it is +554....<br>
>     Because you have no "+" in your pattern ^([0-9]+)$.<br>
> <br>
>     Rewrite rules is quite simple, and well explained in the documention, I<br>
>     have to say.<br>
> <br>
> <br>
>     Also, it would help to see the full kamailo-proxy.log for this call in<br>
>     order to understand exactly wha is the number that is supposed to match<br>
>     your Outbound RR. It also depends if you are using Inbound RR and if<br>
>     you<br>
>     are rewriting the callee number into E164 number, first.<br>
> <br>
>     Cheers,<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> <mailto:<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>>                 <br>
>         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> <<a href="http://www.sipwise.com" rel="noreferrer" target="_blank">http://www.sipwise.com</a>>   FN: 305595f   FG: LG<br>
>     Wiener Neustadt<br>
> <br>
>     On 2/13/20 6:45 PM, Guilherme Lacerda wrote:<br>
>      > Hi Daniel,<br>
>      ><br>
>      > I tried this outbound rewrite rules to callee:<br>
>      >      Match Pattern: ^([0-9]+)$<br>
>      >      Replacement Pattern: 1001#\1<br>
>      >      Description: Prefix<br>
>      >      Direction: Outbound<br>
>      >      Field: Callee<br>
>      ><br>
>      > In "Call Routing Verification", show the correct rewrite. My INVITE<br>
>      > remains unchanged. Sipwise Devs to do: keep it simple like<br>
>     dSIPRouter,<br>
>      > please :-)<br>
>      ><br>
>      ><br>
>      > --- Log:<br>
>      > found caller subscriber '<a href="mailto:sip%3Akazoo@54.233.79.7" target="_blank">sip:kazoo@54.233.79.7</a><br>
>     <mailto:<a href="mailto:sip%253Akazoo@54.233.79.7" target="_blank">sip%3Akazoo@54.233.79.7</a>><br>
>      > <mailto:<a href="mailto:sip%253Akazoo@54.233.79.7" target="_blank">sip%3Akazoo@54.233.79.7</a><br>
>     <mailto:<a href="mailto:sip%25253Akazoo@54.233.79.7" target="_blank">sip%253Akazoo@54.233.79.7</a>>>' with id 1<br>
>      > call from +554130129701 using subscriber '<a href="mailto:kazoo@54.233.79.7" target="_blank">kazoo@54.233.79.7</a><br>
>     <mailto:<a href="mailto:kazoo@54.233.79.7" target="_blank">kazoo@54.233.79.7</a>><br>
>      > <mailto:<a href="mailto:kazoo@54.233.79.7" target="_blank">kazoo@54.233.79.7</a> <mailto:<a href="mailto:kazoo@54.233.79.7" target="_blank">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<br>
>      > 554130129701<br>
>      > callee +5541998970007 is rewritten based on the inbound rules into<br>
>      > 5541998970007<br>
>      > caller 554130129701 is rejected as it does not match subscriber's<br>
>      > 'allowed_clis'<br>
>      > 'allowed_cli' reject policy is 'override_by_usernpn', taken from<br>
>     'cli'<br>
>      > 554130304040<br>
>      > callee subscriber lookup based on 5541998970007<br>
>      > no callee subscriber found, performing peer lookup with caller uri<br>
>      > <a href="mailto:sip%3A554130304040@54.233.79.7" target="_blank">sip:554130304040@54.233.79.7</a><br>
>     <mailto:<a href="mailto:sip%253A554130304040@54.233.79.7" target="_blank">sip%3A554130304040@54.233.79.7</a>><br>
>     <mailto:<a href="mailto:sip%253A554130304040@54.233.79.7" target="_blank">sip%3A554130304040@54.233.79.7</a><br>
>     <mailto:<a href="mailto:sip%25253A554130304040@54.233.79.7" target="_blank">sip%253A554130304040@54.233.79.7</a>>> and<br>
>      > callee uri <a href="mailto:sip%3A5541998970007@187.60.60.189" target="_blank">sip:5541998970007@187.60.60.189</a><br>
>     <mailto:<a href="mailto:sip%253A5541998970007@187.60.60.189" target="_blank">sip%3A5541998970007@187.60.60.189</a>><br>
>      > <mailto:<a href="mailto:sip%253A5541998970007@187.60.60.189" target="_blank">sip%3A5541998970007@187.60.60.189</a><br>
>     <mailto:<a href="mailto:sip%25253A5541998970007@187.60.60.189" target="_blank">sip%253A5541998970007@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)<br>
>     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<br>
>      > 04130304040<br>
>      > callee 5541998970007 is rewritten based on the outbound rules into<br>
>      > 1001#5541998970007    <br>
>     <===============================================<br>
>      ><br>
>      > --- Invite:<br>
>      > 2020/02/13 17:41:33.154303 <a href="http://172.31.37.142:5060" rel="noreferrer" target="_blank">172.31.37.142:5060</a><br>
>     <<a href="http://172.31.37.142:5060" rel="noreferrer" target="_blank">http://172.31.37.142:5060</a>><br>
>      > <<a href="http://172.31.37.142:5060" rel="noreferrer" target="_blank">http://172.31.37.142:5060</a>> -> <a href="http://187.60.60.189:5060" rel="noreferrer" target="_blank">187.60.60.189:5060</a><br>
>     <<a href="http://187.60.60.189:5060" rel="noreferrer" target="_blank">http://187.60.60.189:5060</a>><br>
>      > <<a href="http://187.60.60.189:5060" rel="noreferrer" target="_blank">http://187.60.60.189:5060</a>><br>
>      > INVITE <a href="mailto:sip%3A%2B5541998970007@187.60.60." target="_blank">sip:+5541998970007@187.60.60.</a><br>
>     <mailto:<a href="mailto:sip%253A%252B5541998970007@187.60.60" target="_blank">sip%3A%2B5541998970007@187.60.60</a>.>189:5060;transport=udp<br>
>     SIP/2.0<br>
>      > <===============================================<br>
>      > Record-Route:<br>
>      ><br>
>     <sip:54.233.79.7:5060;r2=on;lr=on;ftag=4EFB872A-5E458A4D000257AC-14A4B700;ngcplb=yes><br>
>      > Record-Route:<br>
>      ><br>
>     <sip:127.0.0.1;r2=on;lr=on;ftag=4EFB872A-5E458A4D000257AC-14A4B700;ngcplb=yes><br>
>      > Via: SIP/2.0/UDP<br>
>      ><br>
>     54.233.79.7:5060;branch=z9hG4bK593e.45abd9c26a210f56603d610401ca3397.0<br>
>      > Via: SIP/2.0/UDP<br>
>      > 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" target="_blank">sip:554130129701@169.57.148.23</a><br>
>     <mailto:<a href="mailto:sip%253A554130129701@169.57.148.23" target="_blank">sip%3A554130129701@169.57.148.23</a>><br>
>      > <mailto:<a href="mailto:sip%253A554130129701@169.57.148.23" target="_blank">sip%3A554130129701@169.57.148.23</a><br>
>     <mailto:<a href="mailto:sip%25253A554130129701@169.57.148.23" target="_blank">sip%253A554130129701@169.57.148.23</a>>>>;tag=4EFB872A-5E458A4D000257AC-14A4B700<br>
>      > To: <<a href="mailto:sip%3A%2B5541998970007@187.60.60.189" target="_blank">sip:+5541998970007@187.60.60.189</a><br>
>     <mailto:<a href="mailto:sip%253A%252B5541998970007@187.60.60.189" target="_blank">sip%3A%2B5541998970007@187.60.60.189</a>><br>
>      > <mailto:<a href="mailto:sip%253A%252B5541998970007@187.60.60.189" target="_blank">sip%3A%2B5541998970007@187.60.60.189</a><br>
>     <mailto:<a href="mailto:sip%25253A%25252B5541998970007@187.60.60.189" target="_blank">sip%253A%252B5541998970007@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,<br>
>      > NOTIFY, PUBLISH, SUBSCRIBE<br>
>      > Supported: path, replaces<br>
>      > Content-Disposition: session<br>
>      > P-Asserted-Identity: <<a href="mailto:sip%3A554130304040@54.233.79.7" target="_blank">sip:554130304040@54.233.79.7</a><br>
>     <mailto:<a href="mailto:sip%253A554130304040@54.233.79.7" target="_blank">sip%3A554130304040@54.233.79.7</a>><br>
>      > <mailto:<a href="mailto:sip%253A554130304040@54.233.79.7" target="_blank">sip%3A554130304040@54.233.79.7</a><br>
>     <mailto:<a href="mailto:sip%25253A554130304040@54.233.79.7" target="_blank">sip%253A554130304040@54.233.79.7</a>>>><br>
>      > Content-Type: application/sdp<br>
>      > Content-Length: 736<br>
>      > Contact:<br>
>      > <<a href="http://sip:ngcp-lb@54.233.79.7:5060" rel="noreferrer" target="_blank">sip:ngcp-lb@54.233.79.7:5060</a><br>
>     <<a href="http://sip:ngcp-lb@54.233.79.7:5060" rel="noreferrer" target="_blank">http://sip:ngcp-lb@54.233.79.7:5060</a>>;ngcpct=7369703a3132372e302e302e313a35303830><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>
>      > Em qua., 12 de fev. de 2020 às 11:07, Daniel Grotti<br>
>     <<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a> <mailto:<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>><br>
>      > <mailto:<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a> <mailto:<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>>>> escreveu:<br>
>      ><br>
>      >     Hi,<br>
>      >     under the "Outbound rewrite rules for callee", assigned to<br>
>     your peering<br>
>      >     server.<br>
>      >     See chapter:<br>
>      ><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> <mailto:<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>><br>
>     <mailto:<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a> <mailto:<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>>><br>
>      >         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> <<a href="http://www.sipwise.com" rel="noreferrer" target="_blank">http://www.sipwise.com</a>><br>
>     <<a href="http://www.sipwise.com" rel="noreferrer" target="_blank">http://www.sipwise.com</a>>   FN: 305595f   FG: LG<br>
>      >     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>><br>
>      >     <mailto:<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>>><br>
>      >      > <mailto:<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>><br>
>      >     <mailto:<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<br>
>      >     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> <mailto:<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>><br>
>     <mailto:<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
>     <mailto:<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>
>      ><br>
> <br>
</blockquote></div>