<div dir="ltr">Thank you Fernando for suggesting the process to better understand this issue.<div>I now understand the issue, but don&#39;t have the FS knowledge to fix it.</div><div><br></div><div><b>The gw requires:</b></div>
<div><b>a)  All packets go to -&gt; udp/[204.101.5.67]:5065</b></div><div><b>b)  The realm to be: <a href="http://sip.babytel.ca">sip.babytel.ca</a></b></div><div><br></div><div>I can&#39;t find the gw profile that will satisfy both requirements, for both REGISTER and outbound calling (INVITE).</div>
<div><br></div><div>SCENARIO 1:  Set gw &lt;register-proxy&gt; only:  REGISTER works, but INVITE fails</div><div><br></div><div><div>&lt;gateway name=&quot;babytel&quot;&gt;</div><div>                &lt;param name=&quot;username&quot; value=&quot;16477240904&quot;/&gt;</div>
<div>                &lt;param name=&quot;password&quot; value=&quot;xxxxxx&quot;/&gt;</div><div>                &lt;param name=&quot;realm&quot; value=&quot;<a href="http://sip.babytel.ca">sip.babytel.ca</a>&quot;/&gt;</div>
<div>                &lt;param name=&quot;register-proxy&quot; value=&quot;<a href="http://nat.babytel.ca:5065">nat.babytel.ca:5065</a>&quot;/&gt;</div><div>                &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;</div>
<div>&lt;/gateway&gt;</div></div><div><br></div><div>RESULT:  The REGISTER packet is correct.  Packet goes to correct address/port, and the REGISTER packet is addressed to correct realm.</div><div><br></div><div>Log file:<br>
<div><div>send 856 bytes to <b>udp/[204.101.5.67]:5065</b> at 16:33:32.049675:</div><div>   ------------------------------------------------------------------------</div><div>   REGISTER <b>sip:<a href="http://sip.babytel.ca">sip.babytel.ca</a></b>;transport=udp SIP/2.0</div>
</div><div><br></div></div><div>However, the problem is outbound calling.  The packets are NOT sent to the proxy:</div><div><div><br></div><div>send 1085 bytes to <b>udp/[204.101.5.20]:5060</b> at 16:39:28.697709:</div><div>
   ------------------------------------------------------------------------</div><div>   INVITE <a href="mailto:sip%3A19058305602@sip.babytel.ca">sip:19058305602@sip.babytel.ca</a> SIP/2.0</div></div><div><br></div><div>SCENARIO 2:  Set gw &lt;proxy&gt;:</div>
<div><br></div><div><div>        &lt;gateway name=&quot;babytel&quot;&gt;</div><div>                &lt;param name=&quot;username&quot; value=&quot;16477240904&quot;/&gt;</div><div>                &lt;param name=&quot;password&quot; value=&quot;xxxxxx&quot;/&gt;</div>
<div>                &lt;param name=&quot;realm&quot; value=&quot;<a href="http://sip.babytel.ca">sip.babytel.ca</a>&quot;/&gt;</div><div>                &lt;param name=&quot;proxy&quot; value=&quot;<a href="http://nat.babytel.ca:5065">nat.babytel.ca:5065</a>&quot;/&gt;</div>
<div>                &lt;param name=&quot;register-proxy&quot; value=&quot;<a href="http://nat.babytel.ca:5065">nat.babytel.ca:5065</a>&quot;/&gt;</div><div>                &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;</div>
<div>        &lt;/gateway&gt;</div><div><br></div></div><div>Result:</div><div><br></div><div>send 651 bytes to <b>udp/[204.101.5.67]:5065</b> at 16:43:59.536788:</div><div><div>   ------------------------------------------------------------------------</div>
<div>   REGISTER <b>sip:<a href="http://nat.babytel.ca:5065">nat.babytel.ca:5065</a></b>;transport=udp SIP/2.0</div><div><br></div><div>Problem is that the realm switches to the proxy, and I don&#39;t get registered.</div>
<div>I have tried removing &lt;register-proxy&gt; (i.e. just have &lt;proxy&gt;) and get the exact same problem.</div></div><div><br></div><div>SUMMARY:</div><div>Does anyone know how to configure the gateway such the realm is consistently set to the realm configuration for both REGISTER and INVITE,</div>
<div>and have the proxy works consistently?</div><div><br></div><div>Thank you so much,</div><div>Ian.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 15, 2014 at 5:48 AM, Fernando - NextBilling IP Solutions <span dir="ltr">&lt;<a href="mailto:freeswitch@nextbilling.com.br" target="_blank">freeswitch@nextbilling.com.br</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello.<div><br></div><div>Try to set the loglevel to 7 ( <b>/log 7 </b>) and enable siptrace on sofia profile (<b>sofia profile external siptrace on</b>).</div>
<div><br></div><div>WIth a good level of debug and the siptrace we can know if the call reached your gateway and what kind of response FS receive from gw.</div><div><br></div><div><br><div><div style="text-indent:0px;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-wrap:break-word;word-spacing:0px">
<div style="text-indent:0px;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-wrap:break-word;word-spacing:0px"><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px">
<b style="color:rgb(51,51,51)"><font color="#000066">Best regards,<br></font><br>Fernando da Silva Santos</b></div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px">
<b style="color:rgb(51,51,51)">CIO - NextBilling IP Solutions</b></div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px">
<b style="color:rgb(51,51,51)">$ 55 (11) 3090-0077</b></div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px">
<b style="color:rgb(51,51,51)">$ 55 (21) 3090-0017</b></div><div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<b style="color:rgb(51,51,51);font-size:12px">$ 0800 580-9200 <br></b></div></div></div>
</div>
<br><div><div>Em 14/01/2014, à(s) 19:31, Ian McMaster &lt;<a href="mailto:ian.mcmaster@gmail.com" target="_blank">ian.mcmaster@gmail.com</a>&gt; escreveu:</div><div><div class="h5"><br><blockquote type="cite"><div dir="ltr">
<div>I have tried two dialplan routes:</div><div><br></div><div>1)  Freeswitch cookbook suggests putting in conf/dialplan/default.xml</div><div><br></div><div>    &lt;extension name=&quot;dial-10-digit-number no prefix&quot;&gt;</div>

<div>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{10})$&quot;&gt;</div><div>        &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/babytel/$1&quot;/&gt;</div><div>      &lt;/condition&gt;</div>

<div>    &lt;/extension&gt;</div><div><br></div><div>2)  Freeswitch 1.0.6 book suggest putting in conf/default/01_babytel.xml</div><div><br></div><div><div>       &lt;extension name=&quot;Outbound Babytel calls - prefix 91&quot;&gt;</div>

<div>                &lt;condition field=&quot;destination_number&quot; expression=&quot;^9(1\d{10})$&quot;&gt;</div><div>                        &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/babytel/$1&quot;/&gt;</div>

<div>                &lt;/condition&gt;</div><div>        &lt;/extension&gt;</div></div><div><br></div><div>Both give the same symptom:</div><div><div>freeswitch@internal&gt; /log 6</div><div>+OK log level 6 [6]</div><div>

freeswitch@internal&gt;</div><div>2014-01-14 16:28:33.238770 [NOTICE] switch_channel.c:1055 New Channel sofia/internal/<a href="mailto:101@192.168.2.7" target="_blank">101@192.168.2.7</a> [b5bdf358-5142-4b0e-8753-d15a84922e18]</div>
<div>
2014-01-14 16:28:33.378781 [INFO] mod_dialplan_xml.c:558 Processing 101 &lt;101&gt;-&gt;<a href="tel:9058305602" value="+19058305602" target="_blank">9058305602</a> in context default</div><div>2014-01-14 16:28:33.378781 [NOTICE] switch_channel.c:1055 New Channel sofia/external/<a href="tel:9058305602" value="+19058305602" target="_blank">9058305602</a> [9ddd008b-3e75-46ed-a864-858554737aeb]</div>

</div><div>&lt;then nothing....&gt;</div><div>After about 30 seconds, </div><div>2014-01-14 16:29:33.019000 [INFO] mod_dptools.c:3201 Originate Failed.  Cause: NO_ANSWER</div><div><br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Tue, Jan 14, 2014 at 3:59 PM, Vik Killa <span dir="ltr">&lt;<a href="mailto:vipkilla@gmail.com" target="_blank">vipkilla@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">What dialplan entry is executing?</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Tue, Jan 14, 2014 at 3:39 PM, Ian McMaster <span dir="ltr">&lt;<a href="mailto:ian.mcmaster@gmail.com" target="_blank">ian.mcmaster@gmail.com</a>&gt;</span> wrote:<br>


</div></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"><div><div><div dir="ltr">Apologies for a simple newbie question.  Following examples in the first two FreeSWITCH books, have been able to set up a SIP gateway, register, and receive calls.<div>


However I can&#39;t make calls.  The dialplan is being entered, but &#39;hangs&#39; at</div>
<div><br></div><div>switch_channel.c:1055 New Channel sofia/external/<a href="tel:16475551212" value="+16475551212" target="_blank">16475551212</a></div><div><br></div><div>a)  The provider name is &quot;babytel&quot;.<br>


</div><div>b)  The dial plan bridge is to data=&quot;sofia/gateway/babytel/$1&quot;  (as per the books)</div>
<div>c)  The provider xml file is in conf/sip_profiles/external  (as per the books)</div><div><br></div><div>d)  sofia status</div><div>Name:  external::babytel</div><div>Type:  gateway</div><div>State:  REGED</div><div>


<br>
</div><div>Why is the bridge channel called &quot;sofia/external/....&quot;?  And not &quot;sofia/babytel/...&quot;?   </div><div>Why does sofia status show &quot;external::&lt;provider&gt;&quot; (the books just show the provider name)?</div>



<div><br></div><div>Can anyone explain why the bridge to the gateway does not occur?<br><br>Thank you,</div><div>Ian.</div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div></div><br></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>