1 ------------------------------------------------------------------------ 2 recv 839 bytes from udp/[10.2.32.112]:5060 at 20:13:12.270989: 3 ------------------------------------------------------------------------ 4 BYE sip:9001@10.2.32.116:5080;transport=udp SIP/2.0 5 Via: SIP/2.0/UDP 10.2.32.112:5060;branch=z9hG4bK4a88.a1534783.0 6 Via: SIP/2.0/UDP 10.32.26.19:1150;branch=z9hG4bK-d87543-eb259935be711165-1--d87543- 7 Max-Forwards: 69 8 Contact: <sip:9003@10.32.26.19:1150;transport=udp> 9 To: "9001"<sip:9001@10.2.32.112>;tag=p4v8FyNvv3S5D 10 From: "9003"<sip:9003@10.2.32.112>;tag=e7553b0b 11 Call-ID: NzA5YjM0OGVlM2JmMDA4NTAyZDliZmNhZWE2NjhiMDA. 12 CSeq: 3 BYE 13 Proxy-Authorization: Digest username="9003",realm="10.2.32.112",nonce="5f2bf37b000000d2afc1e61869246645da21b40ab086deaf",uri="sip:9001@10.2.32.116:5080;transport=udp",response="6a89ecdf3476a98ce0a89ee15ba29312",algorithm=MD5 14 User-Agent: eyeBeam release 1011d stamp 40820 15 Reason: SIP;description="User Hung Up" 16 Content-Length: 0 17 18 ------------------------------------------------------------------------ 19 send 375 bytes to udp/[10.2.32.112]:5060 at 20:13:12.271131: 20 ------------------------------------------------------------------------ 21 SIP/2.0 500 Internal Server Error 22 Via: SIP/2.0/UDP 10.2.32.112:5060;branch=z9hG4bK4a88.a1534783.0 23 Via: SIP/2.0/UDP 10.32.26.19:1150;branch=z9hG4bK-d87543-eb259935be711165-1--d87543- 24 From: "9003"<sip:9003@10.2.32.112>;tag=e7553b0b 25 To: "9001"<sip:9001@10.2.32.112>;tag=p4v8FyNvv3S5D 26 Call-ID: NzA5YjM0OGVlM2JmMDA4NTAyZDliZmNhZWE2NjhiMDA. 27 CSeq: 3 BYE 28 Content-Length: 0
loadmodule "dialog.so" modparam("dialog", "db_mode", 1) modparam("dialog", "dlg_match_mode", 1) modparam("dialog", "default_timeout", 10800) # 3 hours timeout 【正確配置】 #modparam("dialog", "default_timeout", 240) # 4 mins 【錯誤配置 :若是使用了create_dialog("Pp"),當一同電話超過 default_timout + options_pint_interval ,就會出現終端返回500】 modparam("dialog", "profiles_with_value", "caller ; callee") modparam("dialog", "options_ping_interval", 60) # 1 mins route{ if (is_method("INVITE")) { if ( !create_dialog("Pp") ) { # 對OpenSIPS上進出兩個dialog(如主/被叫)都進行OPTIONS探測 xlog("create_dialog error : Internal Server Error"); send_reply("500","Internal Server Error"); exit(); } } }