[Freeswitch-users] gateway setup check

Steven Ayre steveayre at gmail.com
Fri Sep 24 08:07:36 PDT 2010


It does look like it's sending now, but still isn't getting the required 100
Trying response to the INVITE. Can you confirm on the gateway whether it
receives the INVITE?

-Steve


On 24 September 2010 14:16, Nigel Kent <ktngl at yahoo.co.uk> wrote:

> I cant remember where I found the sip-port usage setting
>
> Taking your advise I set the port on the realm on my gateway setting, it
> does appear to now use port 443
>
> 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
>
> sip trace pasted of command
> originate sofia/gateway/testgw/0044020734 100
>
> http://pastebin.freeswitch.org/13999
>
>
>
> --- On *Fri, 24/9/10, Steven Ayre <steveayre at gmail.com>* wrote:
>
>
> From: Steven Ayre <steveayre at gmail.com>
> Subject: Re: [Freeswitch-users] gateway setup check
> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
> Date: Friday, 24 September, 2010, 10:37
>
>
> 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.
>
> Try specifying the port in the realm:
> <param name="realm" value="xxx.xxx.xxx.xxx:443" />
>
> Looks like it gets the realm from the name if it isn't specified - I
> actually didn't know it'd allow that.
>
> 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.
>
> -Steve
>
>
>
> On 24 September 2010 08:45, Nigel Kent <ktngl at yahoo.co.uk<http://mc/compose?to=ktngl@yahoo.co.uk>
> > wrote:
>
> this is from the sip trace.
>
> send 1119 bytes to udp/[xxx.xxx.xxx.xxx]:5060 at 07:28:59.826991:
>
> 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?
>
>
> <gateway name="xxx.xxx.xxx.xxx">
>     <param name="username" value="test" />
>     <param name="password" value="test" />
>     <param name="sip-port" value="443"/>
>     <param name="register" value="false" />
> </gateway>
>
> The gateway is able to accept calls tested with a sip ua client
> Port 443 is used because it is a open port in my setup
>
> --- On *Fri, 24/9/10, Steven Ayre <steveayre at gmail.com<http://mc/compose?to=steveayre@gmail.com>
> >* wrote:
>
>
> From: Steven Ayre <steveayre at gmail.com<http://mc/compose?to=steveayre@gmail.com>
> >
>
> Subject: Re: [Freeswitch-users] gateway setup check
> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org<http://mc/compose?to=freeswitch-users@lists.freeswitch.org>
> >
> Date: Friday, 24 September, 2010, 6:48
>
>
> Looks like the gateway isn't replying to the INVITE.
>
> Can you pastebin:
> - Your gateway configuration
> - Your debug log with sip trace on (sofia profile <name> siptrace on)
>
> -Steve
>
>
>
> On 23 September 2010 22:55, Nigel Kent <ktngl at yahoo.co.uk<http://mc/compose?to=ktngl@yahoo.co.uk>
> > wrote:
>
> It needed a reloadxml.
>
> The gateway now shows on sofia status but still not able to connect to the
> test gateway. The same command now gives me
>
>
> 010-09-23 21:47:11.546900 [NOTICE] switch_channel.c:756 New Channel
> sofia/external/0044020734 [e58395d4-f970-4bf9-8a52-3b80f7d7db7b]
> freeswitch at internal> 2010-09-23 21:47:11.546900 [DEBUG] mod_sofia.c:3807
> (sofia/external/0044020734) State Change CS_NEW -> CS_INIT
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_session.c:1023 Send signal
> sofia/external/0044020734 [BREAK]
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:314
> (sofia/external/0044020734) Running State Change CS_INIT
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:338
> (sofia/external/0044020734) State INIT
> 2010-09-23 21:47:11.546900 [DEBUG] mod_sofia.c:83 sofia/external/0044020734
> SOFIA INIT
> 2010-09-23 21:47:11.546900 [DEBUG] mod_sofia.c:117
> (sofia/external/0044020734) State Change CS_INIT -> CS_ROUTING
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_session.c:1023 Send signal
> sofia/external/0044020734 [BREAK]
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:338
> (sofia/external/0044020734) State INIT going to sleep
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:314
> (sofia/external/0044020734) Running State Change CS_ROUTING
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:341
> (sofia/external/0044020734) State ROUTING
> 2010-09-23 21:47:11.546900 [DEBUG] mod_sofia.c:140
> sofia/external/0044020734 SOFIA ROUTING
> 2010-09-23 21:47:11.546900 [DEBUG] switch_ivr_originate.c:64
> (sofia/external/0044020734) State Change CS_ROUTING -> CS_CONSUME_MEDIA
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_session.c:1023 Send signal
> sofia/external/0044020734 [BREAK]
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:341
> (sofia/external/0044020734) State ROUTING going to sleep
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:314
> (sofia/external/0044020734) Running State Change CS_CONSUME_MEDIA
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:360
> (sofia/external/0044020734) State CONSUME_MEDIA
> 2010-09-23 21:47:11.546900 [DEBUG] switch_core_state_machine.c:360
> (sofia/external/0044020734) State CONSUME_MEDIA going to sleep
> 2010-09-23 21:47:11.546900 [DEBUG] sofia.c:4269 Channel
> sofia/external/0044020734 entering state [calling][0]
> 2010-09-23 21:47:43.556882 [DEBUG] sofia.c:4269 Channel
> sofia/external/0044020734 entering state [terminated][408]
> 2010-09-23 21:47:43.556882 [NOTICE] sofia.c:4875 Hangup
> sofia/external/0044020734 [CS_CONSUME_MEDIA] [RECOVERY_ON_TIMER_EXPIRE]
> 2010-09-23 21:47:43.556882 [DEBUG] switch_channel.c:2255 Send signal
> sofia/external/0044020734 [KILL]
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_session.c:1023 Send signal
> sofia/external/0044020734 [BREAK]
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:314
> (sofia/external/0044020734) Running State Change CS_HANGUP
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:498
> (sofia/external/0044020734) State HANGUP
> 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
> 2010-09-23 21:47:43.556882 [DEBUG] mod_sofia.c:441 Channel
> sofia/external/0044020734 hanging up, cause: RECOVERY_ON_TIMER_EXPIRE
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:46
> sofia/external/0044020734 Standard HANGUP, cause: RECOVERY_ON_TIMER_EXPIRE
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:498
> (sofia/external/0044020734) State HANGUP going to sleep
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:333
> (sofia/external/0044020734) State Change CS_HANGUP -> CS_REPORTING
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_session.c:1023 Send signal
> sofia/external/0044020734 [BREAK]
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:314
> (sofia/external/0044020734) Running State Change CS_REPORTING
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:589
> (sofia/external/0044020734) State REPORTING
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:53
> sofia/external/0044020734 Standard REPORTING, cause:
> RECOVERY_ON_TIMER_EXPIRE
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:589
> (sofia/external/0044020734) State REPORTING going to sleep
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_state_machine.c:327
> (sofia/external/0044020734) State Change CS_REPORTING -> CS_DESTROY
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_session.c:1023 Send signal
> sofia/external/0044020734 [BREAK]
> 2010-09-23 21:47:43.556882 [DEBUG] switch_core_session.c:1171 Session 189
> (sofia/external/0044020734) Locked, Waiting on external entities
> 2010-09-23 21:47:43.566859 [DEBUG] switch_ivr_originate.c:3310 Originate
> Resulted in Error Cause: 102 [RECOVERY_ON_TIMER_EXPIRE]
> 2010-09-23 21:47:43.566859 [NOTICE] switch_core_session.c:1189 Session 189
> (sofia/external/0044020734) Ended
> 2010-09-23 21:47:43.566859 [NOTICE] switch_core_session.c:1191 Close
> Channel sofia/external/0044020734 [CS_DESTROY]
> 2010-09-23 21:47:43.566859 [DEBUG] switch_core_state_machine.c:428
> (sofia/external/0044020734) Running State Change CS_DESTROY
> 2010-09-23 21:47:43.566859 [DEBUG] switch_core_state_machine.c:438
> (sofia/external/0044020734) State DESTROY
> 2010-09-23 21:47:43.566859 [DEBUG] mod_sofia.c:350
> sofia/external/0044020734 SOFIA DESTROY
> 2010-09-23 21:47:43.566859 [DEBUG] switch_core_state_machine.c:60
> sofia/external/0044020734 Standard DESTROY
> 2010-09-23 21:47:43.566859 [DEBUG] switch_core_state_machine.c:438
> (sofia/external/0044020734) State DESTROY going to sleep
>
>
>
>
> --- On *Thu, 23/9/10, DJB International <djbinter at gmail.com<http://mc/compose?to=djbinter@gmail.com>
> >* wrote:
>
>
> From: DJB International <djbinter at gmail.com<http://mc/compose?to=djbinter@gmail.com>
> >
> Subject: Re: [Freeswitch-users] gateway setup check
> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org<http://mc/compose?to=freeswitch-users@lists.freeswitch.org>
> >
> Date: Thursday, 23 September, 2010, 21:06
>
>
> When you issue a command "sofia status", do you see your gateway in there?
>  If not, try "sofia profile <your profile> rescan"
>
> -djbinter
>
> On Thu, Sep 23, 2010 at 1:48 PM, Nigel Kent <ktngl at yahoo.co.uk<http://mc/compose?to=ktngl@yahoo.co.uk>
> > wrote:
>
> I want to check my gateway setup and that calls are able to be sent
>
> originate sofia/gateway/xxx.xxx.xxx.xxx/0044207343 100
> -ERR INVALID_NUMBER_FORMAT
>
> xxx.xxx.xxx.xxx is a public ip address and the gateway name is called the
> same
>
> <gateway name="xxx.xxx.xxx.xxx">
>
> Why do I get invalid gateway error?
>
>
> 2010-09-23 20:43:34.756883 [ERR] mod_sofia.c:3603 Invalid Gateway
> freeswitch at internal> 2010-09-23 20:43:34.756883 [NOTICE] mod_sofia.c:3899
> Close Channel N/A [CS_NEW]
> 2010-09-23 20:43:34.756883 [DEBUG] switch_core_state_machine.c:428 ()
> Running State Change CS_DESTROY
> 2010-09-23 20:43:34.756883 [DEBUG] switch_core_state_machine.c:438 (N/A)
> State DESTROY
> 2010-09-23 20:43:34.756883 [DEBUG] mod_sofia.c:350 N/A SOFIA DESTROY
> 2010-09-23 20:43:34.756883 [DEBUG] switch_core_state_machine.c:438 (N/A)
> State DESTROY going to sleep
> 2010-09-23 20:43:34.756883 [ERR] switch_ivr_originate.c:2491 Cannot create
> outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]
> 2010-09-23 20:43:34.756883 [DEBUG] switch_ivr_originate.c:3310 Originate
> Resulted in Error Cause: 28 [INVALID_NUMBER_FORMAT]
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100924/04798103/attachment-0001.html 


More information about the FreeSWITCH-users mailing list