<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I cant remember where I found the sip-port usage setting<br><br>Taking your advise I set the port on the realm on my gateway setting, it does appear to now use port 443<br><br>However it still does not seem to be connecting to the gateway. It is not hitting through to the gateway nothing appears on the console<br><br>sip trace pasted of command <br>originate sofia/gateway/testgw/0044020734 100<br><br>http://pastebin.freeswitch.org/13999<br><br><br>--- On <b>Fri, 24/9/10, Steven Ayre <i>&lt;steveayre@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Steven Ayre &lt;steveayre@gmail.com&gt;<br>Subject: Re: [Freeswitch-users] gateway setup check<br>To: "FreeSWITCH Users Help" &lt;freeswitch-users@lists.freeswitch.org&gt;<br>Date: Friday, 24 September, 2010, 10:37<br><br><div
 id="yiv100748015">The sip-port parameter is valid for a SIP profile, but not for a gateway. Did you find that in the documentation somewhere? If so, it's wrong.<br><br>Try specifying the port in the realm:<br>&lt;param name="realm" value="xxx.xxx.xxx.xxx:443" /&gt;<br>
<br>Looks like it gets the realm from the name if it isn't specified - I actually didn't know it'd allow that.<br><br>Just a note, the gateway name doesn't have to be an IP. Personally I prefer names relating to what the gateway is so that it's separated from the IP.<br>
<br>-Steve<br><br><br><br><div class="yiv100748015gmail_quote">On 24 September 2010 08:45, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:ktngl@yahoo.co.uk" target="_blank" href="/mc/compose?to=ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="yiv100748015gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">this is from the sip trace.<br><br>send 1119 bytes to udp/[xxx.xxx.xxx.xxx]:5060 at 07:28:59.826991:&nbsp; <br><br>It seems to be trying to send to port 5060 even though I have set a different port as the sip-port on my gateway config?<div class="yiv100748015im">
<br><br>&lt;gateway name="xxx.xxx.xxx.xxx"&gt;<br></div>
&nbsp;&nbsp;&nbsp; &lt;param name="username" value="test" /&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;param name="password" value="test" /&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;param name="sip-port" value="443"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;param name="register" value="false" /&gt; <br>
&lt;/gateway&gt;<br><br>The gateway is able to accept calls tested with a sip ua client<br>Port 443 is used because it is a open port in my setup<br><br>--- On <b>Fri, 24/9/10, Steven Ayre <i>&lt;<a rel="nofollow" ymailto="mailto:steveayre@gmail.com" target="_blank" href="/mc/compose?to=steveayre@gmail.com">steveayre@gmail.com</a>&gt;</i></b> wrote:<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Steven Ayre &lt;<a rel="nofollow" ymailto="mailto:steveayre@gmail.com" target="_blank" href="/mc/compose?to=steveayre@gmail.com">steveayre@gmail.com</a>&gt;<div class="yiv100748015im"><br>
Subject: Re: [Freeswitch-users] gateway setup check<br>To: "FreeSWITCH Users Help" &lt;<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br></div>
Date: Friday, 24 September, 2010, 6:48<div><div></div><div class="yiv100748015h5"><br><br><div>Looks like the gateway isn't replying to the INVITE.<br><br>Can you pastebin:<br>- Your gateway configuration<br>- Your debug log with sip trace on (sofia profile &lt;name&gt; siptrace on)<br>
<br>-Steve<br><br><br><br>
<div>On 23 September 2010 22:55, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">It needed a reloadxml.<br><br>The gateway now shows on sofia status but still not able to connect to the test gateway. The same command now gives me<br>

<br><br>010-09-23 21:47:11.546900 [NOTICE] switch_channel.c:756 New Channel sofia/external/0044020734 [e58395d4-f970-4bf9-8a52-3b80f7d7db7b]<br>freeswitch@internal&gt; 2010-09-23 21:47:11.546900 [DEBUG] mod_sofia.c:3807 (sofia/external/0044020734) State Change CS_NEW -&gt; CS_INIT<br>

2010-09-23 21:47:11.546900 [DEBUG] switch_core_session.c:1023 Send signal sofia/external/0044020734 [BREAK]<br>2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:314 (sofia/external/0044020734) Running State Change CS_INIT<br>

2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:338 (sofia/external/0044020734) State INIT<br>2010-09-23 21:47:11.546900 [DEBUG] mod_sofia.c:83 sofia/external/0044020734 SOFIA
 INIT<br>2010-09-23 21:47:11.546900 [DEBUG] mod_sofia.c:117 (sofia/external/0044020734) State Change CS_INIT -&gt; CS_ROUTING<br>2010-09-23 21:47:11.546900 [DEBUG] switch_core_session.c:1023 Send signal sofia/external/0044020734 [BREAK]<br>

2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:338 (sofia/external/0044020734) State INIT going to sleep<br>2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:314 (sofia/external/0044020734) Running State Change CS_ROUTING<br>

2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:341 (sofia/external/0044020734) State ROUTING<br>2010-09-23 21:47:11.546900 [DEBUG] mod_sofia.c:140 sofia/external/0044020734 SOFIA ROUTING<br>2010-09-23 21:47:11.546900 [DEBUG] switch_ivr_originate.c:64 (sofia/external/0044020734) State Change CS_ROUTING -&gt; CS_CONSUME_MEDIA<br>

2010-09-23 21:47:11.546900 [DEBUG] switch_core_session.c:1023 Send signal sofia/external/0044020734 [BREAK]<br>2010-09-23
 21:47:11.546900 [DEBUG] switch_core_state_machine.c:341 (sofia/external/0044020734) State ROUTING going to sleep<br>2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:314 (sofia/external/0044020734) Running State Change CS_CONSUME_MEDIA<br>

2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:360 (sofia/external/0044020734) State CONSUME_MEDIA<br>2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:360 (sofia/external/0044020734) State CONSUME_MEDIA going to sleep<br>

2010-09-23 21:47:11.546900 [DEBUG] sofia.c:4269 Channel sofia/external/0044020734 entering state [calling][0]<br>2010-09-23 21:47:43.556882 [DEBUG] sofia.c:4269 Channel sofia/external/0044020734 entering state [terminated][408]<br>

2010-09-23 21:47:43.556882 [NOTICE] sofia.c:4875 Hangup sofia/external/0044020734 [CS_CONSUME_MEDIA] [RECOVERY_ON_TIMER_EXPIRE]<br>2010-09-23 21:47:43.556882 [DEBUG] switch_channel.c:2255 Send signal sofia/external/0044020734
 [KILL]<br>2010-09-23 21:47:43.556882 [DEBUG] switch_core_session.c:1023 Send signal sofia/external/0044020734 [BREAK]<br>2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:314 (sofia/external/0044020734) Running State Change CS_HANGUP<br>

2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:498 (sofia/external/0044020734) State HANGUP<br>2010-09-23 21:47:43.556882 [DEBUG] mod_sofia.c:435 sofia/external/0044020734 Overriding SIP cause 504 with 408 from the other leg<br>

2010-09-23 21:47:43.556882 [DEBUG] mod_sofia.c:441 Channel sofia/external/0044020734 hanging up, cause: RECOVERY_ON_TIMER_EXPIRE<br>2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:46 sofia/external/0044020734 Standard HANGUP, cause: RECOVERY_ON_TIMER_EXPIRE<br>

2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:498 (sofia/external/0044020734) State HANGUP going to sleep<br>2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:333
 (sofia/external/0044020734) State Change CS_HANGUP -&gt; CS_REPORTING<br>2010-09-23 21:47:43.556882 [DEBUG] switch_core_session.c:1023 Send signal sofia/external/0044020734 [BREAK]<br>2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:314 (sofia/external/0044020734) Running State Change CS_REPORTING<br>

2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:589 (sofia/external/0044020734) State REPORTING<br>2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:53 sofia/external/0044020734 Standard REPORTING, cause: RECOVERY_ON_TIMER_EXPIRE<br>

2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:589 (sofia/external/0044020734) State REPORTING going to sleep<br>2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:327 (sofia/external/0044020734) State Change CS_REPORTING -&gt; CS_DESTROY<br>

2010-09-23 21:47:43.556882 [DEBUG] switch_core_session.c:1023 Send signal sofia/external/0044020734
 [BREAK]<br>2010-09-23 21:47:43.556882 [DEBUG] switch_core_session.c:1171 Session 189 (sofia/external/0044020734) Locked, Waiting on external entities<br>2010-09-23 21:47:43.566859 [DEBUG] switch_ivr_originate.c:3310 Originate Resulted in Error Cause: 102 [RECOVERY_ON_TIMER_EXPIRE]<br>

2010-09-23 21:47:43.566859 [NOTICE] switch_core_session.c:1189 Session 189 (sofia/external/0044020734) Ended<br>2010-09-23 21:47:43.566859 [NOTICE] switch_core_session.c:1191 Close Channel sofia/external/0044020734 [CS_DESTROY]<br>

2010-09-23 21:47:43.566859 [DEBUG] switch_core_state_machine.c:428 (sofia/external/0044020734) Running State Change CS_DESTROY<br>2010-09-23 21:47:43.566859 [DEBUG] switch_core_state_machine.c:438 (sofia/external/0044020734) State DESTROY<br>

2010-09-23 21:47:43.566859 [DEBUG] mod_sofia.c:350 sofia/external/0044020734 SOFIA DESTROY<br>2010-09-23 21:47:43.566859 [DEBUG] switch_core_state_machine.c:60 sofia/external/0044020734 Standard
 DESTROY<br>2010-09-23 21:47:43.566859 [DEBUG] switch_core_state_machine.c:438 (sofia/external/0044020734) State DESTROY going to sleep<br><br><br><br><br>--- On <b>Thu, 23/9/10, DJB International <i>&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=djbinter@gmail.com">djbinter@gmail.com</a>&gt;</i></b> wrote:<br>

<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: DJB International &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=djbinter@gmail.com">djbinter@gmail.com</a>&gt;<br>
Subject: Re: [Freeswitch-users] gateway setup check<br>
To: "FreeSWITCH Users Help" &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Date: Thursday, 23 September, 2010, 21:06<div>
<div></div><div>
<br><br><div>When you issue a command "sofia status", do you see your gateway in there? &nbsp;If not, try "sofia profile &lt;your profile&gt; rescan"<div><br></div><div>-djbinter<br><br><div>On Thu, Sep 23, 2010 at 1:48 PM, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br>


<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">I want to check my gateway setup and that calls are able to be sent<br>


<br>originate sofia/gateway/xxx.xxx.xxx.xxx/0044207343 100<br>-ERR INVALID_NUMBER_FORMAT<br><br>xxx.xxx.xxx.xxx is a public ip address and the gateway name is called the same<br><br>&lt;gateway name="xxx.xxx.xxx.xxx"&gt;<br>


<br>Why do I get invalid gateway error?<br><br><br>2010-09-23 20:43:34.756883 [ERR] mod_sofia.c:3603 Invalid Gateway<br>freeswitch@internal&gt; 2010-09-23 20:43:34.756883 [NOTICE] mod_sofia.c:3899 Close Channel N/A [CS_NEW]<br>


2010-09-23 20:43:34.756883 [DEBUG] switch_core_state_machine.c:428 () Running State Change CS_DESTROY<br>2010-09-23 20:43:34.756883 [DEBUG] switch_core_state_machine.c:438 (N/A) State DESTROY<br>2010-09-23 20:43:34.756883 [DEBUG] mod_sofia.c:350 N/A SOFIA DESTROY<br>


2010-09-23 20:43:34.756883 [DEBUG] switch_core_state_machine.c:438 (N/A) State
 DESTROY going to sleep<br>2010-09-23 20:43:34.756883 [ERR] switch_ivr_originate.c:2491 Cannot create outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]<br>2010-09-23 20:43:34.756883 [DEBUG] switch_ivr_originate.c:3310 Originate Resulted in Error Cause: 28 [INVALID_NUMBER_FORMAT]<br>


<br></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div><br></div></div>-----Inline Attachment Follows-----<div><br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>

<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></div></blockquote></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></div></div></blockquote></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="/mc/compose?to=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></div></blockquote></td></tr></table><br>