Dear Paul:
UA1(1011) ==> SER ==> UA(9012) ==> busy forward to ==> CISCO Trunking. Using Route[2] failure_route[1] Using route[6]
I find it go to route[6], but failed for a little bit seconds.
Please help me to find what's it wrong?
I add the log messages and ngrep result below:
Log from /var/log/messages: ------------------------------------------------------------------------------------------------------------------- ser[27626]: PDT:prefix2domain: no prefix found in [9012] ser[27626]: Time:[Fri 2005] Method:<INVITE> r-uri:9012@ser.xxx.net.tw ser[27626]: IP:<61.229.4.212> From:sip:1011@ser.xxx.net.tw To:sip:9012@ser.xxx.net.tw sip:1011@61.229.4.212:5060 ser[27626]: SER: a INT user ser[27626]: SER: BLIND CALL FORWARDING ser[27626]: SER: Look aliases ser[27626]: SER: Look location ser[27626]: SER isflagset (sip) ser[27626]: SER: Look aliases ser[27626]: SER: Look location ser[27626]: SER isflagset (sip) ser[27626]: SER: SIP Call On-Net section route(2) ser[27627]: PDT:prefix2domain: no prefix found in [9012] ser[27627]: Time:[Fri 2005] Method:<INVITE> r-uri:9012@ser.xxx.net.tw ser[27627]: IP:<61.229.4.212> From:sip:1011@ser.xxx.net.tw To:sip:9012@ser.xxx.net.tw sip:1011@61.229.4.212:5060 ser[27627]: SER: a INT user ser[27627]: SER: BLIND CALL FORWARDING ser[27627]: SER: Look aliases ser[27627]: SER: Look location ser[27627]: SER isflagset (sip) ser[27627]: SER: Look aliases ser[27627]: SER: Look location ser[27627]: SER isflagset (sip) ser[27627]: SER: SIP Call On-Net section route(2) ser proxydispatcher[27685]: command request 40088117-5908-46A9-8D9B-E872430672FE@10.18.1.70 61.229.4.212:8000:audio 61.229.4.212 ser.xxx.net.tw local 61.229.4.212 remote X-PRO=20build=201082 info=from:1011@ser.xxx.net.tw,to:9012@ser.xxx.net.tw,fromtag:903024600,totag: ser proxydispatcher[27685]: domain ser.xxx.net.tw doesn't define any mediaproxy. ser proxydispatcher[27685]: will use default mediaproxy for this call. ser mediaproxy[1087]: command request 40088117-5908-46A9-8D9B-E872430672FE@10.18.1.70 61.229.4.212:8000:audio 61.229.4.212 ser.xxx.net.tw local 61.229.4.212 remote X-PRO=20build=201082 info=from:1011@ser.xxx.net.tw,to:9012@ser.xxx.net.tw,fromtag:903024600,totag:,dispatcher ser mediaproxy[1087]: session 40088117-5908-46A9-8D9B-E872430672FE@10.18.1.70: started. listening on xxx.xxx.190.248:35120 ser mediaproxy[1087]: command execution time: 6.08 ms ser proxydispatcher[27685]: forwarding to mediaproxy on /var/run/mediaproxy.sock: got: 'xxx.xxx.190.248 35120' ser proxydispatcher[27685]: command execution time: 96.11 ms ser[27628]: SER: Failure Route section failure_route(1) ser[27628]: SER: fork to fwdbusy ser[27628]: SER: Busy Failure and Jump to route(6) ser[27628]: SER: Domestic Call Off-Net section route(6) ser proxydispatcher[27686]: command request 40088117-5908-46A9-8D9B-E872430672FE@10.18.1.70 61.229.4.212:8000:audio 61.229.4.212 ser.xxx.net.tw local xxx.xxx.190.243 remote X-PRO=20build=201082 info=from:1011@ser.xxx.net.tw,to:9012@ser.xxx.net.tw,fromtag:903024600,totag: Feb 25 15:56:46 ser proxydispatcher[27686]: domain ser.xxx.net.tw doesn't define any mediaproxy. Feb 25 15:56:46 ser proxydispatcher[27686]: will use default mediaproxy for this call. Feb 25 15:56:46 ser mediaproxy[1087]: command request 40088117-5908-46A9-8D9B-E872430672FE@10.18.1.70 61.229.4.212:8000:audio 61.229.4.212 ser.xxx.net.tw local xxx.xxx.190.243 remote X-PRO=20build=201082 info=from:1011@ser.xxx.net.tw,to:9012@ser.xxx.net.tw,fromtag:903024600,totag:,dispatcher Feb 25 15:56:46 ser mediaproxy[1087]: command execution time: 0.35 ms Feb 25 15:56:46 ser proxydispatcher[27686]: forwarding to mediaproxy on /var/run/mediaproxy.sock: got: 'xxx.xxx.190.248 35120' Feb 25 15:56:46 ser proxydispatcher[27686]: command execution time: 3763.49 ms Feb 25 15:57:05 ser[27627]: PDT:prefix2domain: no prefix found in [9012] Feb 25 15:57:05 ser[27627]: SER: SIP Call On-Net section route(2)
[root@ser root]#
Log from ngrep: --------------------------------------------------------------------------------------------------------
[root@ser root]# ngrep -d eth0 -W byline port 5060 interface: eth0 (xxx.xxx.190.240/255.255.255.240) filter: ip and ( port 5060 ) # U xxx.xxx.190.248:5060 -> 61.229.4.212:5060 .... # U xxx.xxx.190.248:5060 -> 61.217.225.150:1720 .... # U xxx.xxx.190.248:5060 -> 61.229.4.212:35375 ....
# U 61.229.4.212:35971 -> xxx.xxx.190.248:5060 INVITE sip:9012@ser.xxx.net.tw SIP/2.0. Via: SIP/2.0/UDP 61.229.4.212:5060;rport;branch=z9hG4bK2BD8C0F5D91D44FCBC6A145F42A8D0EA. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw. Contact: sip:1011@61.229.4.212:5060. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61468 INVITE. Max-Forwards: 70. Content-Type: application/sdp. User-Agent: X-PRO build 1082. Content-Length: 320. . v=0. o=1011 133082262 133082262 IN IP4 61.229.4.212. s=X-PRO. c=IN IP4 61.229.4.212. t=0 0. m=audio 8000 RTP/AVP 0 8 3 18 98 97 101. a=rtpmap:0 pcmu/8000. a=rtpmap:8 pcma/8000. a=rtpmap:3 gsm/8000. a=rtpmap:18 G729/8000. a=rtpmap:98 iLBC/8000. a=rtpmap:97 speex/8000. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15.
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35971 SIP/2.0 407 Proxy Authentication Required. Via: SIP/2.0/UDP 61.229.4.212:5060;rport=35971;branch=z9hG4bK2BD8C0F5D91D44FCBC6A145F42A8D0EA. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw;tag=67771a809cdfb71129a699a517fbb1f0.3a1e. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61468 INVITE. Proxy-Authenticate: Digest realm="ser.xxx.net.tw", nonce="421edc7e7c26aa218feb652ab31161d4f73a3fe6". Server: Sip EXpress router (0.10.99-dev0 (i386/linux)). Content-Length: 0. Warning: 392 xxx.xxx.190.248:5060 "Noisy feedback tells: pid=27628 req_src_ip=61.229.4.212 req_src_port=35971 in_uri=sip:9012@ser.xxx.net.tw out_uri=sip:9012@61.229.4.212:35375 via_cnt==1". .
# U 61.229.4.212:35971 -> xxx.xxx.190.248:5060 ACK sip:9012@ser.xxx.net.tw SIP/2.0. Via: SIP/2.0/UDP 61.229.4.212:5060;rport;branch=z9hG4bK2BD8C0F5D91D44FCBC6A145F42A8D0EA. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw;tag=67771a809cdfb71129a699a517fbb1f0.3a1e. Contact: sip:1011@61.229.4.212:5060. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61468 ACK. Max-Forwards: 70. Content-Length: 0. .
# U 61.229.4.212:35971 -> xxx.xxx.190.248:5060 INVITE sip:9012@ser.xxx.net.tw SIP/2.0. Via: SIP/2.0/UDP 61.229.4.212:5060;rport;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw. Contact: sip:1011@61.229.4.212:5060. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 INVITE. Proxy-Authorization: Digest username="1011",realm="ser.xxx.net.tw",nonce="421edc7e7c26aa218feb652ab31161d4f73a3fe6",response="67bf9eeee503891ded4971a4589719bd",uri="sip:9012@ser.xxx.net.tw". Max-Forwards: 70. Content-Type: application/sdp. User-Agent: X-PRO build 1082. Content-Length: 320. . v=0. o=1011 133083073 133083073 IN IP4 61.229.4.212. s=X-PRO. c=IN IP4 61.229.4.212. t=0 0. m=audio 8000 RTP/AVP 0 8 3 18 98 97 101. a=rtpmap:0 pcmu/8000. a=rtpmap:8 pcma/8000. a=rtpmap:3 gsm/8000. a=rtpmap:18 G729/8000. a=rtpmap:98 iLBC/8000. a=rtpmap:97 speex/8000. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15.
# U 61.229.4.212:35971 -> xxx.xxx.190.248:5060 INVITE sip:9012@ser.xxx.net.tw SIP/2.0. Via: SIP/2.0/UDP 61.229.4.212:5060;rport;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw. Contact: sip:1011@61.229.4.212:5060. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 INVITE. Proxy-Authorization: Digest username="1011",realm="ser.xxx.net.tw",nonce="421edc7e7c26aa218feb652ab31161d4f73a3fe6",response="67bf9eeee503891ded4971a4589719bd",uri="sip:9012@ser.xxx.net.tw". Max-Forwards: 70. Content-Type: application/sdp. User-Agent: X-PRO build 1082. Content-Length: 320. . v=0. o=1011 133084745 133084745 IN IP4 61.229.4.212. s=X-PRO. c=IN IP4 61.229.4.212. t=0 0. m=audio 8000 RTP/AVP 0 8 3 18 98 97 101. a=rtpmap:0 pcmu/8000. a=rtpmap:8 pcma/8000. a=rtpmap:3 gsm/8000. a=rtpmap:18 G729/8000. a=rtpmap:98 iLBC/8000. a=rtpmap:97 speex/8000. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15.
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35971 SIP/2.0 100 trying -- your call is important to us. Via: SIP/2.0/UDP 61.229.4.212:5060;rport=35971;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 INVITE. Server: Sip EXpress router (0.10.99-dev0 (i386/linux)). Content-Length: 0. Warning: 392 xxx.xxx.190.248:5060 "Noisy feedback tells: pid=27627 req_src_ip=61.229.4.212 req_src_port=35971 in_uri=sip:9012@ser.xxx.net.tw out_uri=sip:9012@61.229.4.212:35375 via_cnt==1". .
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35375 INVITE sip:9012@61.229.4.212:35375 SIP/2.0. Record-Route: sip:xxx.xxx.190.248;ftag=1163705917;lr=on. Via: SIP/2.0/UDP xxx.xxx.190.248;branch=z9hG4bK467d.fd6a4256.0. Via: SIP/2.0/UDP 61.229.4.212:5060;rport=35971;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw. Contact: sip:1011@61.229.4.212:5060. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 INVITE. Proxy-Authorization: Digest username="1011",realm="ser.xxx.net.tw",nonce="421edc7e7c26aa218feb652ab31161d4f73a3fe6",response="67bf9eeee503891ded4971a4589719bd",uri="sip:9012@ser.xxx.net.tw". Max-Forwards: 16. Content-Type: application/sdp. User-Agent: X-PRO build 1082. Content-Length: 323. . v=0. o=1011 133084745 133084745 IN IP4 61.229.4.212. s=X-PRO. c=IN IP4 xxx.xxx.190.248. t=0 0. m=audio 35122 RTP/AVP 0 8 3 18 98 97 101. a=rtpmap:0 pcmu/8000. a=rtpmap:8 pcma/8000. a=rtpmap:3 gsm/8000. a=rtpmap:18 G729/8000. a=rtpmap:98 iLBC/8000. a=rtpmap:97 speex/8000. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15.
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35375 INVITE sip:9012@61.229.4.212:35375 SIP/2.0. Record-Route: sip:xxx.xxx.190.248;ftag=1163705917;lr=on. Via: SIP/2.0/UDP xxx.xxx.190.248;branch=z9hG4bK467d.fd6a4256.0. Via: SIP/2.0/UDP 61.229.4.212:5060;rport=35971;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw. Contact: sip:1011@61.229.4.212:5060. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 INVITE. Proxy-Authorization: Digest username="1011",realm="ser.xxx.net.tw",nonce="421edc7e7c26aa218feb652ab31161d4f73a3fe6",response="67bf9eeee503891ded4971a4589719bd",uri="sip:9012@ser.xxx.net.tw". Max-Forwards: 16. Content-Type: application/sdp. User-Agent: X-PRO build 1082. Content-Length: 323. . v=0. o=1011 133084745 133084745 IN IP4 61.229.4.212. s=X-PRO. c=IN IP4 xxx.xxx.190.248. t=0 0. m=audio 35122 RTP/AVP 0 8 3 18 98 97 101. a=rtpmap:0 pcmu/8000. a=rtpmap:8 pcma/8000. a=rtpmap:3 gsm/8000. a=rtpmap:18 G729/8000. a=rtpmap:98 iLBC/8000. a=rtpmap:97 speex/8000. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15.
# U 61.229.4.212:35375 -> xxx.xxx.190.248:5060 SIP/2.0 486 Busy Here. Via: SIP/2.0/UDP xxx.xxx.190.248;branch=z9hG4bK467d.fd6a4256.0. Via: SIP/2.0/UDP 61.229.4.212:5060;rport=35971;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. Record-Route: sip:xxx.xxx.190.248;ftag=1163705917;lr=on. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 INVITE. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw;tag=dk09jcgubVdV7nmT. Contact: sip:9012@10.18.1.102:1718. Content-Length: 0. .
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35375 ACK sip:9012@61.229.4.212:35375 SIP/2.0. Via: SIP/2.0/UDP xxx.xxx.190.248;branch=z9hG4bK467d.fd6a4256.0. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. To: sip:9012@ser.xxx.net.tw;tag=dk09jcgubVdV7nmT. CSeq: 61469 ACK. User-Agent: Sip EXpress router(0.10.99-dev0 (i386/linux)). Content-Length: 0. .
# U 61.229.4.212:35375 -> xxx.xxx.190.248:5060 SIP/2.0 486 Busy Here. Via: SIP/2.0/UDP xxx.xxx.190.248;branch=z9hG4bK467d.fd6a4256.0. Via: SIP/2.0/UDP 61.229.4.212:5060;rport=35971;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. Record-Route: sip:xxx.xxx.190.248;ftag=1163705917;lr=on. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 INVITE. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw;tag=dk09jcgubVdV7nmT. Contact: sip:9012@10.18.1.102:1718. Content-Length: 0. .
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35375 ACK sip:9012@61.229.4.212:35375 SIP/2.0. Via: SIP/2.0/UDP xxx.xxx.190.248;branch=z9hG4bK467d.fd6a4256.0. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. To: sip:9012@ser.xxx.net.tw;tag=dk09jcgubVdV7nmT. CSeq: 61469 ACK. User-Agent: Sip EXpress router(0.10.99-dev0 (i386/linux)). Content-Length: 0. .
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35971 SIP/2.0 100 trying -- your call is important to us. Via: SIP/2.0/UDP 61.229.4.212:5060;rport=35971;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 INVITE. Server: Sip EXpress router (0.10.99-dev0 (i386/linux)). Content-Length: 0. Warning: 392 xxx.xxx.190.248:5060 "Noisy feedback tells: pid=27627 req_src_ip=61.229.4.212 req_src_port=35971 in_uri=sip:9012@ser.xxx.net.tw out_uri=sip:9012@61.229.4.212:35375 via_cnt==1". .
# U 61.229.4.212:35375 -> xxx.xxx.190.248:5060 REGISTER sip:ser.xxx.net.tw SIP/2.0. Via: SIP/2.0/UDP 10.18.1.102:1718;branch=z9hG4bKRSezesZsx. Max-Forwards: 70. User-Agent: PHONE. From: "9012" sip:9012@ser.xxx.net.tw;tag=bD35hL0X5YQwOZZg. To: "9012" sip:9012@ser.xxx.net.tw. Call-ID: jLNZpAzRan2jYdn5@10.18.1.102. CSeq: 29076 REGISTER. Contact: sip:9012@10.18.1.102:1718. Expires: 60. Content-Length: 0. .
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35375 SIP/2.0 401 Unauthorized. Via: SIP/2.0/UDP 10.18.1.102:1718;branch=z9hG4bKRSezesZsx;rport=35375;received=61.229.4.212. From: "9012" sip:9012@ser.xxx.net.tw;tag=bD35hL0X5YQwOZZg. To: "9012" sip:9012@ser.xxx.net.tw;tag=67771a809cdfb71129a699a517fbb1f0.d163. Call-ID: jLNZpAzRan2jYdn5@10.18.1.102. CSeq: 29076 REGISTER. WWW-Authenticate: Digest realm="ser.xxx.net.tw", nonce="421edc879a81096d6cc9e10d88f1aa394f199b57". Server: Sip EXpress router (0.10.99-dev0 (i386/linux)). Content-Length: 0. Warning: 392 xxx.xxx.190.248:5060 "Noisy feedback tells: pid=27627 req_src_ip=61.229.4.212 req_src_port=35375 in_uri=sip:ser.xxx.net.tw out_uri=sip:ser.xxx.net.tw via_cnt==1". .
# U 61.229.4.212:35375 -> xxx.xxx.190.248:5060 REGISTER sip:ser.xxx.net.tw SIP/2.0. Via: SIP/2.0/UDP 10.18.1.102:1718;branch=z9hG4bKzsFNXbhF2. Max-Forwards: 70. User-Agent: PHONE. From: "9012" sip:9012@ser.xxx.net.tw;tag=5GvyGNvy5GcfQrx1. To: "9012" sip:9012@ser.xxx.net.tw. Call-ID: jLNZpAzRan2jYdn5@10.18.1.102. CSeq: 29077 REGISTER. Contact: sip:9012@10.18.1.102:1718. Expires: 60. Authorization: Digest username="9012", realm="ser.xxx.net.tw", nonce="421edc879a81096d6cc9e10d88f1aa394f199b57", uri="sip:ser.xxx.net.tw", response="5c4a89bcb17c5bda756db998ee704fbe". Content-Length: 0. .
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35375 SIP/2.0 200 OK. Via: SIP/2.0/UDP 10.18.1.102:1718;branch=z9hG4bKzsFNXbhF2;rport=35375;received=61.229.4.212. From: "9012" sip:9012@ser.xxx.net.tw;tag=5GvyGNvy5GcfQrx1. To: "9012" sip:9012@ser.xxx.net.tw;tag=67771a809cdfb71129a699a517fbb1f0.2657. Call-ID: jLNZpAzRan2jYdn5@10.18.1.102. CSeq: 29077 REGISTER. P-NAT-Refresh: 15. Contact: sip:9012@61.229.4.212:35375;expires=60. Server: Sip EXpress router (0.10.99-dev0 (i386/linux)). Content-Length: 0. Warning: 392 xxx.xxx.190.248:5060 "Noisy feedback tells: pid=27628 req_src_ip=61.229.4.212 req_src_port=35375 in_uri=sip:ser.xxx.net.tw out_uri=sip:ser.xxx.net.tw via_cnt==1". .
# U xxx.xxx.190.248:5060 -> 61.229.4.212:35971 SIP/2.0 408 Request Timeout. <================ DISCONNECT HERE ======================== Via: SIP/2.0/UDP 61.229.4.212:5060;rport=35971;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw;tag=5f573bbafd260ada15def89f1b1724a2-cff8. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 INVITE. Server: Sip EXpress router (0.10.99-dev0 (i386/linux)). Content-Length: 0. Warning: 392 xxx.xxx.190.248:5060 "Noisy feedback tells: pid=27630 req_src_ip=61.229.4.212 req_src_port=35971 in_uri=sip:9012@ser.xxx.net.tw out_uri=sip:9012@61.229.4.212:35375 via_cnt==0". .
# U 61.229.4.212:35971 -> xxx.xxx.190.248:5060 ACK sip:9012@ser.xxx.net.tw SIP/2.0. Via: SIP/2.0/UDP 61.229.4.212:5060;rport;branch=z9hG4bKD4F73B7C0DFA47BD8441B0B8A028E621. From: 1011 sip:1011@ser.xxx.net.tw;tag=1163705917. To: sip:9012@ser.xxx.net.tw;tag=5f573bbafd260ada15def89f1b1724a2-cff8. Contact: sip:1011@61.229.4.212:5060. Call-ID: 4891EE7A-B7E2-40EA-B8E0-6CB7F5045F9F@10.18.1.70. CSeq: 61469 ACK. Max-Forwards: 70. Content-Length: 0. .
# U xxx.xxx.190.248:5060 -> 61.229.4.212:5060 .... # U xxx.xxx.190.248:5060 -> 61.217.225.150:1720 .... # U xxx.xxx.190.248:5060 -> 61.229.4.212:35375 .... exit 30 received, 0 dropped
Dear Paul:
It seems the URI error on my failure_route[1] to route[6].
I force to rewriteuser("0939749xxx") before failure_route[1] to route[6], the call will forward to my mobile phone(although only one way voice).
I store my forward number at some UA id's "fwdbusy" attribute and value is "sip:0939749xxx@ser.xxx.net.tw" in usr_preferences table. Using avp_write? How to implement it, please?
How can I change it to a dialed number?
Best Regard Charles
the snippet of ser.cfg: ------------------------------------------------------------------------------------------------------ failure_route[1] { log(1, "SER: Failure Route section failure_route(1)\n");
# if caller hung up then don't sent to voicemail if (t_check_status("487")) { break; }; if (isflagset(26) && t_check_status("486")) { # forward busy is flag 26 if (avp_pushto("$ruri", "s:fwdbusy")) { log(1, "SER: fork to fwdbusy\n"); avp_delete("s:fwdbusy"); append_branch(); resetflag(26); # test for domestic PSTN gateway if (uri=~"^sip:0[0-9]{9}@") { # if (avp_check("$fwd_busy_type", "eq/dom/i")) { # test for domestic PSTN gateway log(1, "SER: Busy Failure and Jump to route(6)\n"); route(6); } else if (uri=~"^sip:002[1-9][0-9]*@") { # } else if (avp_check("$fwd_busy_type", "eq/int/i")) { # test for international PSTN gateway log(1, "SER: Busy Failure and Jump to route(3)\n"); route(3); } else { # default to sip call log(1, "SER: Busy Failure and Jump to route(2)\n"); route(2); }; break; }; };
# here we can have either voicemail __OR__ forward no answer if (isflagset(27) && t_check_status("408")) { # forward no answer is flag 27 if (avp_db_load("$ruri/username", "s:fwdnoanswer")) { avp_pushto("$ruri", "s:fwdnoanswer"); log(1, "SER: fork to fwdnoanswer\n"); avp_delete("s:fwdnoanswer"); append_branch(); resetflag(27); if (uri=~"^sip:0[0-9]{9}@") { # if (avp_check("$fwd_no_answer_type", "eq/dom/i")) { # test for domestic PSTN gateway log(1, "SER: No Answer Failure and Jump to route(3)\n"); route(3); } else if (uri=~"^sip:002[1-9][0-9]*@") { # } else if (avp_check("$fwd_no_answer_type", "eq/int/i")) { # test for international PSTN gateway log(1, "SER: No Answer Failure and Jump to route(6)\n"); rewriteuser("0939749xxx"); <=== FORCE REWRITE HERE route(6); } else { # default to sip call log(1, "SER: No Answer Failure and Jump to route(2)\n"); route(2); }; break; }; } else if (isflagset(31) && avp_pushto("$ruri", "$voicemail")) { avp_delete("$voicemail"); log(1, "SER: No Answer Failure and Jump to route(4)\n"); route(4); break; }; }