Error Creating SIP UA for profile: internal (sip:mod_sofia@$NULL:5060;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
关键信息
Profile: internal(SIP 内部 profile)
错误: $NULL 域名
重试: 尝试 3 次后失败
🔍 日志分析
完整启动日志
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
2026-01-07 16:27:54.029312 100.00% [DEBUG] mod_event_socket.c:2984 Socket up listening on 0.0.0.0:8014 2026-01-07 16:27:54.030339 100.00% [NOTICE] switch_utils.c:667 Adding 172.0.0.1/32 (allow) [] to list lan 2026-01-07 16:27:54.030343 100.00% [NOTICE] switch_utils.c:667 Adding 172.17.0.0/16 (allow) [] to list lan 2026-01-07 16:27:54.030349 100.00% [NOTICE] switch_utils.c:667 Adding 172.17.0.0/16 (allow) [] to list domains 2026-01-07 16:27:54.032076 100.00% [WARNING] switch_core.c:1643 Cannot locate domain $NULL 2026-01-07 16:27:54.034281 100.00% [INFO] switch_core.c:2553 FreeSWITCH Version 1.10.7-release+git~20250617T113953Z~c31d212e02~64bit (git c31d212 2025-06-17 11:39:53Z 64bit)
FreeSWITCH Started Max Sessions [1000] Session Rate [100] SQL [Enabled] 2026-01-07 16:27:54.038162 100.00% [WARNING] switch_console.c:1056 We've become an orphan, no more console for us. 2026-01-07 16:27:54.038182 100.00% [DEBUG] switch_console.c:1088 Editline thread exiting 2026-01-07 16:27:56.846730 99.67% [ERR] sofia.c:3342 Error Creating SIP UA for profile: internal (sip:mod_sofia@$NULL:5060;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC) 2026-01-07 16:28:01.846654 99.40% [ERR] sofia.c:3342 Error Creating SIP UA for profile: internal (sip:mod_sofia@$NULL:5060;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC) 2026-01-07 16:28:01.846654 99.40% [ERR] sofia.c:3353 Error Creating SIP UA for profile: internal (sip:mod_sofia@$NULL:5060;transport=udp,tcp) The likely causes for this are: 1) Another application is already listening on the specified address.
# 4. 验证修复 echo"[4/4] Verifying fix..." STATUS=$(systemctl is-active freeswitch) if [ "$STATUS" = "active" ]; then echo"✓ FreeSWITCH is running"
# 检查是否还有 $NULL 错误 iftail -20 /usr/local/freeswitch/log/freeswitch.log | grep -q '\$NULL'; then echo"✗ Error still exists: $NULL found in logs" exit 1 else echo"✓ No $NULL errors found" fi else echo"✗ FreeSWITCH failed to start" exit 1 fi