<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>[SOLVED]</div><div><br></div><div>The issue was in the vars.xml file.</div><div><br></div><div><br></div><div>







<p class="p1"><span class="s1">&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;external_ip=192.168.X.XXX&quot;/&gt;</span></p><p class="p1"><span class="s1">the ip address needed to be set to internet IP address connected to server.</span></p><p class="p1"> <br></p></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---------- Forwarded message ----------<br>From: Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Cc: <br>Date: Fri, 14 Aug 2015 21:32:10 +0100<br>Subject: Re: [Freeswitch-users] [ERR] mod_sofia.c:4921 Invalid Gateway &#39;provider<br><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8000001907349px">[ERR] mod_sofia.c:4921 Invalid Gateway &#39;provider&#39;</span></blockquote><div><br></div><div>This means you&#39;re using the dialstring sofia/gateway/provider/... and there&#39;s no gateway named &#39;provider&#39;. In your example you should use sofia/gateway/<span style="font-size:12.8000001907349px">callwithus-outbound/...</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8000001907349px">Invalid Profile [external]</span></blockquote><div><br></div><div>This means the profile hasn&#39;t been loaded. Try &#39;sofia profile external start&#39; and check for any error messages creating it. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 August 2015 at 23:48, Edwin Reed-Sanchez <span dir="ltr">&lt;<a href="mailto:ereedsanchez@gmail.com" target="_blank">ereedsanchez@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><br>
I am getting error<br>
<br>[ERR] mod_sofia.c:4921 Invalid Gateway &#39;provider&#39;<br>
<span><br>
when trying to make a long distance call.<br>
<br>
<br>
</span>My /freeswitch/sip-profiles/external/profile.xml is<br>
<span><br>
------<br>
<br>
&lt;include&gt;<br>
<br>
    &lt;gateway name=&quot;callwithus-outbound&quot;&gt;<br>
<br>
        &lt;param name=&quot;username&quot; value=&quot;05617XXXX&quot;/&gt;<br>
<br>
        &lt;param name=&quot;password&quot; value=&quot;05XXXX&quot;/&gt;<br>
<br>
        &lt;param name=&quot;realm&quot; value=&quot;callwithus&quot;/&gt;<br>
<br>
        &lt;param name=&quot;proxy&quot; value=&quot;<a href="http://sip.callwithus.com" rel="noreferrer" target="_blank">sip.callwithus.com</a>&quot;/&gt;<br>
<br>
        &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>
<br>
    &lt;/gateway&gt;<br>
<br>
&lt;/include&gt;<br>
<br>
------<br>
<br>
<br>
</span>In fs_cli I did<br>
<br>sofia profile external rescan <br>
<br>Invalid Profile [external]<br>
<br>
<br>
Thanks,<br>
<span><font color="#888888">--<br>
Edwin Reed-Sanchez<br>
</font></span></div><br><div><br></div>
</div>
</blockquote></div></div><br></blockquote></div>
</div></div>