[Freeswitch-users] 503 internal error for gateway calls....

Sergey Safarov s.safarov at gmail.com
Tue May 12 22:59:18 MSD 2015


I has similar error message on cisco gateway when T310 timer expires.

Sergey Safarov

On Tue, May 12, 2015 at 9:27 PM, Dmitry Saratsky <simpot at gmail.com> wrote:

> Hi All!
>
> I have very strange problem on one of my switches...
>
> when I calling through 1 specific gateway (gateway's config well be shown
> later) - I get internal error with code 503 and freeswitch even do not try
> to send invite to the remote gateway...
> This gateway have very special configured as shown below (after debug
> output) and digest registration. Digest registration is passed fine for me!
>
> part of relevant console debug:
> ------------------------------------------------------------------
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:40
> sofia/ext-ipv4/12121231122 Standard INIT
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:48
> (sofia/ext-ipv4/12121231122) State Change CS_INIT -> CS_ROUTING
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1396 Send signal
> sofia/ext-ipv4/12121231122 [BREAK]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:512
> (sofia/ext-ipv4/12121231122) State INIT going to sleep
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:472
> (sofia/ext-ipv4/12121231122) Running State Change CS_ROUTING
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:528
> (sofia/ext-ipv4/12121231122) State ROUTING
> 2015-05-12 21:15:36.462865 [DEBUG] mod_sofia.c:123
> sofia/ext-ipv4/12121231122 SOFIA ROUTING
> 2015-05-12 21:15:36.462865 [DEBUG] switch_ivr_originate.c:67
> (sofia/ext-ipv4/12121231122) State Change CS_ROUTING -> CS_CONSUME_MEDIA
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1396 Send signal
> sofia/ext-ipv4/12121231122 [BREAK]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:528
> (sofia/ext-ipv4/12121231122) State ROUTING going to sleep
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:472
> (sofia/ext-ipv4/12121231122) Running State Change CS_CONSUME_MEDIA
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:547
> (sofia/ext-ipv4/12121231122) State CONSUME_MEDIA
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:547
> (sofia/ext-ipv4/12121231122) State CONSUME_MEDIA going to sleep
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1061 Send signal
> sofia/ext-ipv4/12121231122 [BREAK]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1061 Send signal
> sofia/ext-ipv4/12121231122 [BREAK]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1061 Send signal
> sofia/ext-ipv4/12121231122 [BREAK]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1061 Send signal
> sofia/ext-ipv4/12121231122 [BREAK]
> 2015-05-12 21:15:36.462865 [DEBUG] sofia.c:6623 Channel
> sofia/ext-ipv4/12121231122 entering state [calling][0]
> 2015-05-12 21:15:36.462865 [DEBUG] sofia.c:6623 Channel
> sofia/ext-ipv4/12121231122 entering state [terminated][503]
> 2015-05-12 21:15:36.462865 [NOTICE] sofia.c:7539 Hangup
> sofia/ext-ipv4/12121231122 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_channel.c:3222 Send signal
> sofia/ext-ipv4/12121231122 [KILL]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1396 Send signal
> sofia/ext-ipv4/12121231122 [BREAK]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:472
> (sofia/ext-ipv4/12121231122) Running State Change CS_HANGUP
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:735
> (sofia/ext-ipv4/12121231122) Callstate Change DOWN -> HANGUP
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:737
> (sofia/ext-ipv4/12121231122) State HANGUP
> 2015-05-12 21:15:36.462865 [DEBUG] mod_sofia.c:413 Channel
> sofia/ext-ipv4/12121231122 hanging up, cause: NORMAL_TEMPORARY_FAILURE
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:60
> sofia/ext-ipv4/12121231122 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:737
> (sofia/ext-ipv4/12121231122) State HANGUP going to sleep
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:504
> (sofia/ext-ipv4/12121231122) State Change CS_HANGUP -> CS_REPORTING
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1396 Send signal
> sofia/ext-ipv4/12121231122 [BREAK]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:472
> (sofia/ext-ipv4/12121231122) Running State Change CS_REPORTING
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:823
> (sofia/ext-ipv4/12121231122) State REPORTING
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:104
> sofia/ext-ipv4/12121231122 Standard REPORTING, cause:
> NORMAL_TEMPORARY_FAILURE
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:823
> (sofia/ext-ipv4/12121231122) State REPORTING going to sleep
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_state_machine.c:498
> (sofia/ext-ipv4/12121231122) State Change CS_REPORTING -> CS_DESTROY
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1396 Send signal
> sofia/ext-ipv4/12121231122 [BREAK]
> 2015-05-12 21:15:36.462865 [DEBUG] switch_core_session.c:1623 Session 4
> (sofia/ext-ipv4/12121231122) Locked, Waiting on external entities
> 2015-05-12 21:15:36.462865 [DEBUG] switch_ivr_originate.c:3720 Originate
> Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE]
> 2015-05-12 21:15:36.462865 [INFO] mod_dptools.c:3244 Originate Failed.
> Cause: NORMAL_TEMPORARY_FAILURE
> ------------------------------------------------------------------
>
> no packet was sent to remote gateway (checked with tcpdump), so it is
> internal error...
> relevant gateway is registered well:
> ------------------------------------------------------------------
>
> =================================================================================================
> Name            gateway.name
> Profile         ext-ipv4
> Scheme          Digest
> Realm           realm.gateway.name
> Username        +12223334455
> Password        yes
> From            <sip:+12223334455 at realm.gateway.name>
> Contact         <sip:+12223334455 at 1.1.1.1:5060
> ;expires=3600;+g.oma.sip-im;+g.oma.sip-im.large-message;transport=udp;gw=
> gateway.name>
> Exten           +12223334455
> To              sip:+12223334455 at realm.gateway.name
> Proxy           sip:realm.gateway.name
> Context         ext
> Expires         3600
> Freq            3600
> Ping            0
> PingFreq        0
> PingTime        0.00
> PingState       0/0/0
> State           REGED
> Status          UP
> Uptime          554s
> CallsIN         0
> CallsOUT        2
> FailedCallsIN   0
> FailedCallsOUT  2
>
> =================================================================================================
> ------------------------------------------------------------------
>
> gateway config:
> ------------------------------------------------------------------
> <include>
>   <gateway name="gateway.name">
>     <param name="proxy" value="realm.gateway.name"/>
>     <param name="register-proxy" value="10.10.10.10"/>
>     <param name="contact-params"
> value="expires=3600;+g.oma.sip-im;+g.oma.sip-im.large-message"/>
>     <param name="username" value="+12223334455"/>
>     <param name="auth-username" value="+12223334455 at realm.gateway.name"/>
>     <param name="from-user" value="+12223334455"/>
>     <param name="from-domain" value="realm.gateway.name"/>
>     <param name="password" value="password"/>
>     <param name="expire-seconds" value="3600"/>
>     <param name="register" value="true"/>
>     <param name="register-transport" value="udp"/>
>     <param name="caller-id-in-from" value="false"/>
>     <param name="extension-in-contact" value="+12223334455"/>
>     <param name="retry-seconds" value="180"/>
>   </gateway>
> </include>
>
> ------------------------------------------------------------------
>
> what is special in this gateway configuration, is that gateway name is
> differers from proxy and both differs from register-proxy. this is required
> for my for successfully registration (bcz realm.gateway.name is not
> resolvable with DNS).
> In addition username is differs from auth-username - for some reason it is
> required by vendor...
>
> PS:
> FreeSWITCH (Version 1.5.15b git a41505f 2015-02-23 22:38:20Z 64bit) is
> ready
>
>
> Any ideas?
>
> Thanks,
> Dmitry.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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/20150512/db3ac9a6/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list