[Freeswitch-users] External profile fails to restart after IP change, Sofia trying to bind to old IP?
Mike
empx at gmx.de
Tue Oct 7 00:14:54 MSD 2014
Hello,
I'm trying Freeswitch on a small home box on a dynamic IP address.
However, after i reconnect with a new address, the external
profile/gateway fails to restart. I have included the logs below, and it
seems Sofia is trying to bind to the old IP address instead of the new one?
With a "sofia profile external start" the profile loads fine again.
Might this be a bug? Any help is appreciated.
Logs:
2014-10-06 05:52:53.295903 [INFO] mod_sofia.c:5299 EVENT_TRAP: IP change
detected
2014-10-06 05:52:53.295903 [INFO] mod_sofia.c:5300 IP change detected
[84.157.91.77]->[84.157.97.195] []->[]
2014-10-06 05:52:53.975902 [NOTICE] sofia_reg.c:135 UN-Registering sipgate
tport.c:3636 tport_send_fatal() tport_vsend(0x7fe960004500): Invalid
argument with (s=27 udp/217.10.79.9:5060)
nta.c:10225 outgoing_graylist() nta: reduced priority of 1
_sip._udp.sipgate.de SRV records (increase value to 1)
tport.c:3636 tport_send_fatal() tport_vsend(0x7fe960004500): Invalid
argument with (s=27 udp/217.10.79.9:5060)
nta.c:8494 outgoing_print_tport_error() nta: REGISTER (65916545):
Invalid argument (22) with udp/[217.10.79.9]:5060
2014-10-06 05:52:54.975902 [NOTICE] sofia.c:3009 Waiting for worker thread
2014-10-06 05:52:54.995903 [INFO] switch_core_sqldb.c:1684
sofia:external Destroying SQL queue.
2014-10-06 05:52:55.195901 [INFO] switch_core_sqldb.c:1647
sofia:external Stopping SQL thread.
2014-10-06 05:52:55.195901 [NOTICE] sofia_glue.c:1806 deleted gateway
sipgate from profile external
2014-10-06 05:52:55.215905 [NOTICE] sofia.c:5495 Started Profile
external [sofia_reg_external]
nta.c:2240 nta_agent_add_tport() nta:
bind(84.157.91.77:5080;transport=*): Cannot assign requested address
nua_stack.c:195 nua_stack_init() nua: initializing SIP stack failed
2014-10-06 05:52:55.215905 [ERR] sofia.c:2820 Error Creating SIP UA for
profile: external (sip:mod_sofia at 84.157.91.77:5080;transport=udp,tcp)
ATTEMPT 1 (RETRY IN 5 SEC)
nta.c:2240 nta_agent_add_tport() nta:
bind(84.157.91.77:5080;transport=*): Cannot assign requested address
nua_stack.c:195 nua_stack_init() nua: initializing SIP stack failed
2014-10-06 05:53:00.215902 [ERR] sofia.c:2820 Error Creating SIP UA for
profile: external (sip:mod_sofia at 84.157.91.77:5080;transport=udp,tcp)
ATTEMPT 2 (RETRY IN 5 SEC)
nta.c:2240 nta_agent_add_tport() nta:
bind(84.157.91.77:5080;transport=*): Cannot assign requested address
nua_stack.c:195 nua_stack_init() nua: initializing SIP stack failed
2014-10-06 05:53:05.215903 [ERR] sofia.c:2820 Error Creating SIP UA for
profile: external (sip:mod_sofia at 84.157.91.77:5080;transport=udp,tcp)
ATTEMPT 3 (RETRY IN 5 SEC)
2014-10-06 05:53:05.215903 [ERR] sofia.c:2830 Error Creating SIP UA for
profile: external (sip:mod_sofia at 84.157.91.77:5080;transport=udp,tcp)
The likely causes for this are:
1) Another application is already listening on the specified address.
2) The IP the profile is attempting to bind to is not local to this system.
Regards,
Mike
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list