How to force sip profile to refresh

Status
Not open for further replies.
Jul 15, 2021
102
9
18
34
I have fusionpbx/freeswitch running behind a NAT router with a dynamic IP which gets DDNS resolved when it changes. I have sip clients connecting from the internet to the server. Everything works well even when the IP gets updated except the external sip IP address - I have set it to host:hostname -> this gets resolved only once when the profile is started, I have set external RTP ip as - autonat:hostname -> this gets resolved every time when a SIP request is made.

So in the SIP invite, in the SDP message the freeswitch sends the correct RTP ip address - after an external IP address change.

When I set the external IP as autonat:hostname -> the call doesn't connect at all, I get the following error. Why is autonat:host:hostname not supported for SIP IP when it works for rtp ip.

------------------------------------------------------------------------ SIP/2.0 500 Internal Server Error Via: SIP/2.0/TCP 192.168.1.10:49545;branch=z9hG4bK-524287-1---8624784fcb2fd373;rport=50097 From: <sip:11@192.168.1.2;transport=TCP>;tag=e9cfd354 To: <sip:21@192.168.1.2>;tag=B4eS4gyc6pcrc Call-ID: xQ5Jjxig4XLx6yX2erJXCA.. CSeq: 2 INVITE Content-Length: 0 021-08-06 18:56:53.807364 [DEBUG] switch_ivr_originate.c:3995 Originate Resulted in Error Cause: 31 [NORMAL_UNSPECIFIED] 2021-08-06 18:56:53.807364 [NOTICE] switch_core_session.c:1744 Session 647 (sofia/external_for_internet/21@externalsipclientip:26413) Ended 2021-08-06 18:56:53.807364 [NOTICE] switch_core_session.c:1748 Close Channel sofia/external_for_internet/21@externalsipclientip:26413 [CS_DESTROY] 2021-08-06 18:56:53.807364 [DEBUG] switch_core_state_machine.c:739 (sofia/external_for_internet/21@externalsipclientip:26413) Running State Change CS_DESTROY (Cur 1 Tot 647) 2021-08-06 18:56:53.807364 [DEBUG] switch_core_state_machine.c:749 (sofia/external_for_internet/21@externalsipclientip:26413) State DESTROY 2021-08-06 18:56:53.807364 [DEBUG] mod_sofia.c:364 sofia/external_for_internet/21@externalsipclientip:26413 SOFIA DESTROY 2021-08-06 18:56:53.807364 [DEBUG] switch_core_state_machine.c:181 sofia/external_for_internet/21@externalsipclientip:26413 Standard DESTROY 2021-08-06 18:56:53.807364 [DEBUG] switch_core_state_machine.c:749 (sofia/external_for_internet/21@externalsipclientip:26413) State DESTROY going to sleep 2021-08-06 18:56:53.807364 [NOTICE] switch_ivr_originate.c:2999 Cannot create outgoing channel of type [user] cause: [NORMAL_UNSPECIFIED] 2021-08-06 18:56:53.807364 [DEBUG] switch_ivr_originate.c:3995 Originate Resulted in Error Cause: 31 [NORMAL_UNSPECIFIED] 2021-08-06 18:56:53.807364 [INFO] mod_dptools.c:3631 Originate Failed. Cause: NORMAL_UNSPECIFIED EXECUTE [depth=0] sofia/internal/11@192.168.1.2 lua(app.lua failure_handler) 2021-08-06 18:56:53.827386 [DEBUG] switch_cpp.cpp:1191 sofia/internal/11@192.168.1.2 destroy/unlink session from object 2021-08-06 18:56:53.827386 [NOTICE] switch_core_state_machine.c:386 sofia/internal/11@192.168.1.2 has executed the last dialplan instruction, hanging up. 2021-08-06 18:56:53.827386 [NOTICE] switch_core_state_machine.c:388 Hangup sofia/internal/11@192.168.1.2 [CS_EXECUTE] [NORMAL_CLEARING]
 
Jul 15, 2021
102
9
18
34
I have added a script to run fs_cli -x "sofia status profile profile_name rescan" during the ip update as a work around
 
Status
Not open for further replies.