<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Yes, and unallocated number too, but I can't figure out why...
      :-(<br>
    </p>
    <div class="moz-cite-prefix">Il 15/06/19 08:35, Brian : ha scritto:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGPQfi8i1zNGkvro3vaN6v1S+CoPBeSdOfYd4oSwQyK6ddh4Zw@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">Hi Paolo,

  SIP/2.0 404 Not Found
   Via: SIP/2.0/UDP my_public_ip:5080;rport=5080;branch=z9hG4bK9X12v734KmrZe
   To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:number_to_call@123.ims.my_provider.net"><sip:number_to_call@123.ims.my_provider.net></a>;tag=ztesipsuDgPzVN*2-4-20481*giag.2
   From: "?"<a class="moz-txt-link-rfc2396E" href="mailto:sip:123456789@ims.my_provider.net"><sip:123456789@ims.my_provider.net></a>;tag=8g41KmQBgB0pm
   Call-ID: 9b55b86c-0972-1238-0aa8-080027755653
   CSeq: 5714138 INVITE
   X-ZTE-Cause: "CSCF-1.3154123179.miicscf1.ims.my_provider.net"
   Content-Length: 0

Thanks & Regards

On Sat, Jun 15, 2019 at 12:50 AM <a class="moz-txt-link-abbreviated" href="mailto:paolo.visnoviz@vipcomputers.it">paolo.visnoviz@vipcomputers.it</a>
<a class="moz-txt-link-rfc2396E" href="mailto:paolo.visnoviz@vipcomputers.it"><paolo.visnoviz@vipcomputers.it></a> wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">
Ok guys, I give up. So I must ask help. :-(

In summary: I configured two endpoints and I can call from one to the other. I can receive outbond calls too, through my gateway, and the registration to it seems fine. But I can't call outside. The outbound calls don't works. I don't know where I'm wrong, is there anyone who can put me on the right path, please?

This is my gateway conf:

<include>
  <gateway name="outbound-my_provider">
    <param name="username" value="123456789"/>
    <!-- param name="auth-username" value=<a class="moz-txt-link-rfc2396E" href="mailto:123456789@ims.my_provider.net">"123456789@ims.my_provider.net"</a>/ -->
    <!-- param name="password" value="my_password"/ -->
    <param name="realm" value="ims.my_provider.net"/>
    <param name="from-user" value="123456789"/>
    <param name="from-domain" value="ims.my_provider.net"/>
    <param name="caller-id-in-from" value="true"/>
    <param name="proxy" value="123.ims.my_provider.net:5060"/>
    <param name="register" value="false"/>
    <!-- param name="register-transport" value="udp"/ -->
    <param name="context" value="public"/>
    <param name="extension" value="123456789"/>
    <param name="extension-in-contact" value="true"/>
    <param name="expire-seconds" value="3600"/>
    <!--param name="cid-type" value="rpid"/-->
    <!-- param name="contact-params" value="domain_name=$${domain}"/ -->
  </gateway>
  <gateway name="123456789">
    <param name="username" value=<a class="moz-txt-link-rfc2396E" href="mailto:123456789@ims.my_provider.net">"123456789@ims.my_provider.net"</a>/>
    <param name="password" value="my_password"/>
    <param name="extension" value="123456789"/>
    <param name="proxy" value="ims.my_provider.net"/>
    <param name="from-user" value="123456789"/>
    <param name="from-domain" value="ims.my_provider.net"/>
    <param name="register-proxy" value="123.ims.my_provider.net:5060"/>
    <param name="expire-seconds" value="1800"/>
    <param name="retry-seconds" value="120"/>
    <param name="register" value="true"/>
    <param name="dtmf-type" value="rfc2833"/>
    <param name="register-transport" value="udp"/>
    <param name="context" value="public"/>
  </gateway>

This is my dialplan:

<!-- /etc/freeswitch/dialplan/public/my_gateway.xml -->
<include>
  <extension name="outbound_calls">
    <condition field="destination_number" expression="(^\d{5,14}$)">
     <action application="set" data="effective_caller_id_name=123456789"/>
     <action application="set" data="effective_caller_id_number=123456789"/>
     <!-- action application="set" data=<a class="moz-txt-link-rfc2396E" href="mailto:sip_h_P-Preferred-Identity=sip:123456789@ims.my_provider.net">"sip_h_P-Preferred-Identity=sip:123456789@ims.my_provider.net"</a>/ -->
     <action application="bridge" data="sofia/gateway/outbound-my_provider/$1"/>
    </condition>
  </extension>
</include>

I'm natted and the parts comments out are about various tests. The firewall is opened for 5080 versus freeswitch. My freeswitch local ip is 172.16.16.209.

This is my pastebin of my external call attempt: <a class="moz-txt-link-freetext" href="https://pastebin.freeswitch.org/view/05befe95">https://pastebin.freeswitch.org/view/05befe95</a>
Thank you in advance. Best regards

--
Distinti saluti
Paolo Visnoviz

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire <a class="moz-txt-link-freetext" href="https://signalwire.com">https://signalwire.com</a>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time <a class="moz-txt-link-freetext" href="https://signalwire.community">https://signalwire.community</a>

Professional FreeSWITCH Services
<a class="moz-txt-link-abbreviated" href="mailto:sales@freeswitch.com">sales@freeswitch.com</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="https://freeswitch.com/oss">https://freeswitch.com/oss</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a>
<a class="moz-txt-link-freetext" href="https://cluecon.com">https://cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a>
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire <a class="moz-txt-link-freetext" href="https://signalwire.com">https://signalwire.com</a>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time <a class="moz-txt-link-freetext" href="https://signalwire.community">https://signalwire.community</a>

Professional FreeSWITCH Services
<a class="moz-txt-link-abbreviated" href="mailto:sales@freeswitch.com">sales@freeswitch.com</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="https://freeswitch.com/oss">https://freeswitch.com/oss</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a>
<a class="moz-txt-link-freetext" href="https://cluecon.com">https://cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a></pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      Distinti saluti<br>
      <i>Paolo Visnoviz</i><br>
      <br>
    </div>
  </body>
</html>