<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Yes of course, because mobile number without CC prefix is
      matching the rule: </tt><br>
    <tt><tt><span style="font-size:10.0pt">^([1-9][0-9]+)$</span></tt><span
        style="font-size:10.0pt;font-family:"Courier
        New",serif"><br>
        <br>
        <br>
        But this is because you didn't probably rewrite in the INBOUND
        RR for callee the mobile to E164.<br>
        <br>
        so you should<br>
        <br>
        1. rewrite also MOBILE to E164 in your domain INBOUND RR for
        CALLEE (338 12345 --> </span></tt><tt><span
        style="font-size:10.0pt;font-family:"Courier
        New",serif">39338 12345 o +39 338 12345 --> </span></tt><tt><span
        style="font-size:10.0pt;font-family:"Courier
        New",serif"><tt><span
            style="font-size:10.0pt;font-family:"Courier
            New",serif"> </span></tt><tt><span
            style="font-size:10.0pt;font-family:"Courier
            New",serif">39338 12345 </span></tt>) <br>
        2. in the peer OUTBOUND RR for call you will then have:<br>
        <br>
        <br>
      </span></tt><br>
    <p class="MsoNormal">^39([0-9][0-9]+)$</p>
    <p class="MsoNormal">\1</p>
    <p class="MsoNormal">E.164 to Italia National FIXED<br>
    </p>
    <br>
    <br>
    <p class="MsoNormal">^39(3[1-9][0-9]+)$</p>
    <p class="MsoNormal">\1</p>
    <p class="MsoNormal">E.164 to Italian MOBILE <br>
    </p>
    <br>
    So the call to mobile will go out as 338 12345 ( 39 338 12345 -->
    338 12345).<br>
    Otherwise you can send out the call to mobile in international
    format and have the OUTBOUND RR for callee as:<br>
    <br>
    <br>
    <p class="MsoNormal">^(393[1-9][0-9]+)$</p>
    <p class="MsoNormal">+\1</p>
    <p class="MsoNormal">E.164 to Italian MOBILE </p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <tt><span style="font-size:10.0pt;font-family:"Courier
        New",serif"></span></tt>
    <pre class="moz-signature" cols="72">-- 
Daniel Grotti
Head of Customer Support
Sipwise GmbH, Campus 21/Europaring F15
AT-2345 Brunn am Gebirge

Office: +43(0)130120332
Email: <a class="moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>
Website: <a class="moz-txt-link-freetext" href="https://www.sipwise.com">https://www.sipwise.com</a>
</pre>
    <div class="moz-cite-prefix">On 11/14/18 2:46 PM, Alessandro Romano
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:007d01d47c20$813467c0$839d3740$@rpeng.it">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Preformattato HTML Carattere";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New",serif;
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.PreformattatoHTMLCarattere
        {mso-style-name:"Preformattato HTML Carattere";
        mso-style-priority:99;
        mso-style-link:"Preformattato HTML";
        font-family:Consolas;
        color:black;}
span.StileMessaggioDiPostaElettronica21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.StileMessaggioDiPostaElettronica22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.StileMessaggioDiPostaElettronica23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.StileMessaggioDiPostaElettronica24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi daniel,<o:p></o:p></p>
        <p class="MsoNormal">yes the roule is in the first position<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">and it works for local numbers the problemi
          s that the mobile number start with 3 and if they are called
          without 0039 sipwise add the 00 end it is not correct<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">when i call a italian fixed number with or
          without 0039 it works<o:p></o:p></p>
        <p class="MsoNormal">when i call a italian mobile number with
          0039 it works<o:p></o:p></p>
        <p class="MsoNormal">when i call a italian mobile number wirhout
          0039 spce add 00 and it not works<o:p></o:p></p>
        <p class="MsoNormal">when i call an international number it
          works<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">BR<o:p></o:p></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
                  style="mso-fareast-language:IT">Da:</span></b><span
                style="mso-fareast-language:IT"> Spce-user
                <a class="moz-txt-link-rfc2396E" href="mailto:spce-user-bounces@lists.sipwise.com"><spce-user-bounces@lists.sipwise.com></a> <b>Per
                  conto di </b>Daniel Grotti<br>
                <b>Inviato:</b> mercoledì 14 novembre 2018 14.34<br>
                <b>A:</b> <a class="moz-txt-link-abbreviated" href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a><br>
                <b>Oggetto:</b> Re: [Spce-user] R: International Call,
                problem with 00 on prefix<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><tt><span style="font-size:10.0pt">Alessandro,</span></tt><span
            style="font-size:10.0pt;font-family:"Courier
            New",serif"><br>
            <tt>be sure that rule</tt><br>
            <br>
            <tt>^39([0-9][0-9]+)$</tt><br>
            <br>
            <br>
            <tt>comes FIRST in the list, before rule</tt><br>
          </span><br>
          <tt><span style="font-size:10.0pt">^([1-9][0-9]+)$</span></tt><span
            style="font-size:10.0pt;font-family:"Courier
            New",serif"><br>
            <br>
            <br>
            <tt>otherwise 39 will match the ^([1-9][0-9]+)$ and call
              will be prefixed by 00.</tt><br>
            <br>
            <br>
            <br>
          </span><span style="mso-fareast-language:IT"><o:p></o:p></span></p>
        <pre>-- <o:p></o:p></pre>
        <pre>Daniel Grotti<o:p></o:p></pre>
        <pre>Head of Customer Support<o:p></o:p></pre>
        <pre>Sipwise GmbH, Campus 21/Europaring F15<o:p></o:p></pre>
        <pre>AT-2345 Brunn am Gebirge<o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>Office: +43(0)130120332<o:p></o:p></pre>
        <pre>Email: <a href="mailto:dgrotti@sipwise.com" moz-do-not-send="true">dgrotti@sipwise.com</a><o:p></o:p></pre>
        <pre>Website: <a href="https://www.sipwise.com" moz-do-not-send="true">https://www.sipwise.com</a><o:p></o:p></pre>
        <div>
          <p class="MsoNormal">On 11/14/18 2:14 PM, Alessandro Romano
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">Hi Daniel,<o:p></o:p></p>
          <p class="MsoNormal">i’ve created the rewrite roules for
            outboud calls for calee<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">^39([0-9][0-9]+)$<o:p></o:p></p>
          <p class="MsoNormal">\1<o:p></o:p></p>
          <p class="MsoNormal">E.164 to Italia National<o:p></o:p></p>
          <p class="MsoNormal">yes<o:p></o:p></p>
          <p class="MsoNormal">  <o:p></o:p></p>
          <p class="MsoNormal">^([1-9][0-9]+)$<o:p></o:p></p>
          <p class="MsoNormal">00\1<o:p></o:p></p>
          <p class="MsoNormal">E.164 to International<o:p></o:p></p>
          <p class="MsoNormal">Yes<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">Now i’ve the 00 on the internationall
            calls, but i’ve a problem with italian mobile phones because
            00 are added also in italian mobile phone numbers<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">Can you help me to write rewrite roules
            in correct way<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">BR<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <div>
            <div style="border:none;border-top:solid #E1E1E1
              1.0pt;padding:3.0pt 0cm 0cm 0cm">
              <p class="MsoNormal"><b><span
                    style="mso-fareast-language:IT">Da:</span></b><span
                  style="mso-fareast-language:IT"> Spce-user <a
                    href="mailto:spce-user-bounces@lists.sipwise.com"
                    moz-do-not-send="true"><spce-user-bounces@lists.sipwise.com></a>
                  <b>Per conto di </b>Daniel Grotti<br>
                  <b>Inviato:</b> mercoledì 14 novembre 2018 10.41<br>
                  <b>A:</b> <a
                    href="mailto:spce-user@lists.sipwise.com"
                    moz-do-not-send="true">spce-user@lists.sipwise.com</a><br>
                  <b>Oggetto:</b> Re: [Spce-user] International Call,
                  problem with 00 on prefix</span><o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal"><tt><span style="font-size:10.0pt">Hi
                Alessandro,</span></tt><span
              style="font-size:10.0pt;font-family:"Courier
              New",serif"><br>
              <tt>The URI I see in the INVITE is not international
                format: INVITE <a
                  href="mailto:sip:330183770101@185.29.248.37:5060;transport=udp"
                  moz-do-not-send="true">sip:330183770101@185.29.248.37:5060;transport=udp</a>
                SIP/2.0</tt><br>
              <br>
              <tt>It looks like a E.164 format. The leading 00 or + is
                missing (if you were calling +33xxx number).</tt><br>
              <br>
              <tt>BTW, what is exactly the problem. I don't get that.
                The trace is partial, it shows a 183 and some PRACKs.</tt><br>
              <br>
              <tt>Cheers,</tt><br>
              <br>
              <br>
              <br>
            </span><o:p></o:p></p>
          <pre>-- <o:p></o:p></pre>
          <pre>Daniel Grotti<o:p></o:p></pre>
          <pre>Head of Customer Support<o:p></o:p></pre>
          <pre>Sipwise GmbH, Campus 21/Europaring F15<o:p></o:p></pre>
          <pre>AT-2345 Brunn am Gebirge<o:p></o:p></pre>
          <pre> <o:p></o:p></pre>
          <pre>Office: +43(0)130120332<o:p></o:p></pre>
          <pre>Email: <a href="mailto:dgrotti@sipwise.com" moz-do-not-send="true">dgrotti@sipwise.com</a><o:p></o:p></pre>
          <pre>Website: <a href="https://www.sipwise.com" moz-do-not-send="true">https://www.sipwise.com</a><o:p></o:p></pre>
          <div>
            <p class="MsoNormal">On 11/14/18 10:33 AM, Alessandro Romano
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal">Dear All<o:p></o:p></p>
            <p class="MsoNormal">When i make international calls<o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">I retreive: <o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">Nov 14 10:31:49 c5 proxy[1521]: NOTICE:
              <script>: NAT-Reply - S=100 - Connecting M=INVITE
              IP=91.214.72.26:58742 (127.0.0.1:5080)
              ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI
              UA='<null>'<o:p></o:p></p>
            <p class="MsoNormal">Nov 14 10:31:50 c5 proxy[1525]: NOTICE:
              <script>: NAT-Reply - S=183 - Session Progress
              M=INVITE IP=91.214.72.26:58742 (127.0.0.1:5080)
              ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI
              UA='<null>'<o:p></o:p></p>
            <p class="MsoNormal">Nov 14 10:31:50 c5 proxy[1523]: NOTICE:
              <script>: New request on proxy - M=PRACK
              R=sip:127.0.0.1:5080;prxroute=1 <a
                href="mailto:F=sip:08118440101@sip.positivonet.it"
                moz-do-not-send="true">F=sip:08118440101@sip.positivonet.it</a>
              <a href="mailto:T=sip:00330183770101@sip.positivonet.it"
                moz-do-not-send="true">T=sip:00330183770101@sip.positivonet.it</a>
              IP=91.214.72.26:58742 (127.0.0.1:5060)
              ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI UA='Bria
              iOS release 3.9.7 stamp 38887.38893'<o:p></o:p></p>
            <p class="MsoNormal">Nov 14 10:31:50 c5 proxy[1529]: NOTICE:
              <script>: NAT-Reply - S=200 - OK M=PRACK
              IP=91.214.72.26:58742 (127.0.0.1:5080)
              ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI
              UA='<null>'<o:p></o:p></p>
            <p class="MsoNormal">Nov 14 10:31:50 c5 proxy[1520]: NOTICE:
              <script>: NAT-Reply - S=183 - Session Progress
              M=INVITE IP=91.214.72.26:58742 (127.0.0.1:5080)
              ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI
              UA='<null>'<o:p></o:p></p>
            <p class="MsoNormal">Nov 14 10:31:50 c5 proxy[1527]: NOTICE:
              <script>: New request on proxy - M=PRACK
              R=sip:127.0.0.1:5080;prxroute=1 <a
                href="mailto:F=sip:08118440101@sip.positivonet.it"
                moz-do-not-send="true">F=sip:08118440101@sip.positivonet.it</a>
              <a href="mailto:T=sip:00330183770101@sip.positivonet.it"
                moz-do-not-send="true">T=sip:00330183770101@sip.positivonet.it</a>
              IP=91.214.72.26:58742 (127.0.0.1:5060)
              ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI UA='Bria
              iOS release 3.9.7 stamp 38887.38893'<o:p></o:p></p>
            <p class="MsoNormal">Nov 14 10:31:50 c5 proxy[1533]: NOTICE:
              <script>: NAT-Reply - S=200 - OK M=PRACK
              IP=91.214.72.26:58742 (127.0.0.1:5080)
              ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI
              UA='<null>'<o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">But to my sbc used as peer the call is
              without 00 to the international prefix as you can see in
              the pcap file, captured on sbc<o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">BR <o:p></o:p></p>
            <p class="MsoNormal"><span style="mso-fareast-language:IT"><br>
                <br>
                <br>
              </span><o:p></o:p></p>
            <pre>_______________________________________________<o:p></o:p></pre>
            <pre>Spce-user mailing list<o:p></o:p></pre>
            <pre><a href="mailto:Spce-user@lists.sipwise.com" moz-do-not-send="true">Spce-user@lists.sipwise.com</a><o:p></o:p></pre>
            <pre><a href="https://lists.sipwise.com/listinfo/spce-user" moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a><o:p></o:p></pre>
          </blockquote>
          <p class="MsoNormal"><span style="mso-fareast-language:IT"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="mso-fareast-language:IT"><br>
              <br>
              <o:p></o:p></span></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>Spce-user mailing list<o:p></o:p></pre>
          <pre><a href="mailto:Spce-user@lists.sipwise.com" moz-do-not-send="true">Spce-user@lists.sipwise.com</a><o:p></o:p></pre>
          <pre><a href="https://lists.sipwise.com/listinfo/spce-user" moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a><o:p></o:p></pre>
        </blockquote>
        <p class="MsoNormal"><span style="mso-fareast-language:IT"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>