当前位置:网站首页>Record an opensips DNS problem

Record an opensips DNS problem

2022-06-09 05:37:00 Die hard audio and video

The phenomenon

invite To opensips When , Find out opensips No response , This situation is not fixed , It's cyclical , Like a few invite once .

journal

Adjust log to debug After the level , View the information of the Key log

DBG:core:mk_proxy: doing DNS lookup...
Aug 19 19:42:25 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25820]: DBG:core:sip_resolvehost: no port, no proto -> do NAPTR lookup!Aug 19 19:42:27 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25819]: DBG:tm:timer_routine: timer routine:2,tl=0x7f7d193b7c10 next=(nil), timeout=65Aug 19 19:42:27 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25819]: DBG:tm:wait_handler: removing 0x7f7d193b7b90 from table
Aug 19 19:42:27 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25819]: DBG:tm:delete_cell: delete transaction 0x7f7d193b7b90
Aug 19 19:42:27 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25819]: DBG:tm:wait_handler: done
Aug 19 19:43:05 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25820]: DBG:core:get_record: lookup({}, 35) failed
Aug 19 19:43:05 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25820]: DBG:core:sip_resolvehost: no valid NAPTR record found for {}, trying direct SRV lookup...Aug 19 19:43:45 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25820]: DBG:core:get_record: lookup(_sip._udp.{}, 33) failed
Aug 19 19:43:45 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25820]: DBG:core:sip_resolvehost: no valid SRV record found for _sip._udp.{}, trying A record lookup...
Aug 19 19:43:45 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25820]: CRITICAL:core:mk_proxy: could not resolve hostname: "{}"Aug 19 19:43:45 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25820]: ERROR:tm:uri2proxy: bad host name in URI <SIP:{}>Aug 19 19:43:45 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25820]: ERROR:tm:t_forward_nonack: failure to add branches
Aug 19 19:43:45 tv7-inbound-proxy-1 /usr/local/sbin/opensips[25820]: DBG:tm:t_relay_to: t_forward_nonack returned error

It can be judged that dns The problem solved

terms of settlement

stay opensips Add on script

dns=no
rev_dns=no
dns_try_naptr=no

increase DNS
vim /etc/resolv.conf

nameserver 119.29.29.29
nameserver 114.114.114.114
原网站

版权声明
本文为[Die hard audio and video]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203021427409570.html