Hello!
When i'm trying to call from UA to PSTN i have a call failure after 40 sec. All my UA's (private and public ip) works fine when calling each other. Calls from PSTN ---> UA's also works fine. But when i'm calling to PSTN i may talk only 40 sec. I'm tried from NAT UA's and UA's with public ip, softphones and ipphones - same result. I don't know what to do, someone please help me.
UA (Sjphone) - 192.168.97.88 (symmetric nat) - 211.211.211.211 (outside ip) Openser - 212.212.212.212 PSTN Gateway (Alterteks CallSwitch)- 213.213.213.213
U 2005/11/02 16:39:14.124767 211.211.211.211:60584 -> 212.212.212.212:5060 INVITE sip:989099037259@212.212.212.212 SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1bc000013fc00000a32. l: 186. m: sip:102@192.168.97.88:5060. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. c: application/sdp. CSeq: 1 INVITE. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. t: sip:989099037259@212.212.212.212. . v=0. o=- 3339927612 3339927612 IN IP4 192.168.97.88. s=SJphone. c=IN IP4 192.168.97.88. t=0 0. a=direction:active. m=audio 49212 RTP/AVP 8 0. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000.
# U 2005/11/02 16:39:14.125680 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 407 Proxy Authentication Required. v: SIP/2.0/UDP 192.168.97.88;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc000013fc00000a32;received=211.211.211.211. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 1 INVITE. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. t: sip:989099037259@212.212.212.212;tag=32db283f0ca9dc011800edf1773bf961.9b08. Proxy-Authenticate: Digest realm="212.212.212.212", nonce="4368c2aeba95bc13805d7ec3dc6a876f41f57727", qop="auth". Content-Length: 0. .
# U 2005/11/02 16:39:14.161313 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212 SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1bc000013fc00000a32. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 1 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. t: sip:989099037259@212.212.212.212;tag=32db283f0ca9dc011800edf1773bf961.9b08. .
# U 2005/11/02 16:39:14.175284 211.211.211.211:60584 -> 212.212.212.212:5060 INVITE sip:989099037259@212.212.212.212 SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. l: 186. m: sip:102@192.168.97.88:5060. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. c: application/sdp. CSeq: 2 INVITE. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. t: sip:989099037259@212.212.212.212. Proxy-Authorization: Digest username="102",realm="212.212.212.212",nonce="4368c2aeba95bc13805d7ec3dc6a876f41f57727",uri="sip:989099037259@212.212.212.212",response="e4235b528eb7d339d41e4cb7186d6f3d",cnonce="2245531214743",qop="auth",nc="00000001". . v=0. o=- 3339927612 3339927612 IN IP4 192.168.97.88. s=SJphone. c=IN IP4 192.168.97.88. t=0 0. a=direction:active. m=audio 49212 RTP/AVP 8 0. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000.
# U 2005/11/02 16:39:14.194971 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 100 trying -- your call is important to us. v: SIP/2.0/UDP 192.168.97.88;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33;received=211.211.211.211. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. t: sip:989099037259@212.212.212.212. Content-Length: 0. .
# U 2005/11/02 16:39:14.195599 212.212.212.212:5060 -> 213.213.213.213:5060 INVITE sip:989099037259@213.213.213.213 SIP/2.0. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. v: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Content-Length: 187. m: sip:102@211.211.211.211:60584. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. c: application/sdp. CSeq: 2 INVITE. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 16. t: sip:989099037259@212.212.212.212. P-hint: Local Destination. . v=0. o=- 3339927612 3339927612 IN IP4 192.168.97.88. s=SJphone. c=IN IP4 212.212.212.212. t=0 0. a=direction:active. m=audio 35252 RTP/AVP 8 0. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000.
# U 2005/11/02 16:39:14.226940 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 100 Trying. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Length: 0. .
# U 2005/11/02 16:39:14.254568 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 183 Call Proceeding. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 153. . v=0. o=213.213.213.213 15435 15435 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:14.257017 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 183 Call Proceeding. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 153. P-hint: NATed Reply. . v=0. o=213.213.213.213 15435 15435 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 212.212.212.212. t=0 0. m=audio 35252 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:16.420642 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 183 Progress. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9796 9796 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:16.422563 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 183 Progress. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. P-hint: NATed Reply. . v=0. o=213.213.213.213 9796 9796 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 212.212.212.212. t=0 0. m=audio 35252 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:20.940301 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 180 Ringing. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 153. . v=0. o=213.213.213.213 13550 13550 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:20.942433 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 180 Ringing. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 153. P-hint: NATed Reply. . v=0. o=213.213.213.213 13550 13550 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 212.212.212.212. t=0 0. m=audio 35252 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:21.229331 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:21.231643 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. P-hint: NATed Reply. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 212.212.212.212. t=0 0. m=audio 35252 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:21.282286 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1c300007a4400000a39. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
# U 2005/11/02 16:39:21.852393 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:21.854375 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. P-hint: NATed Reply. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 212.212.212.212. t=0 0. m=audio 35252 RTP/AVP 8. a=ptime:20.
# ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1c400000e6c00000a3b. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
# U 2005/11/02 16:39:23.100422 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:23.102447 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. P-hint: NATed Reply. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 212.212.212.212. t=0 0. m=audio 35252 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:23.143039 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1c5000046cd00000a3d. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:25.601457 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. P-hint: NATed Reply. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 212.212.212.212. t=0 0. m=audio 35252 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:25.701745 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1c800003e8d00000a3f. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
# U 2005/11/02 16:39:30.602673 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:30.602992 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:30.643020 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1cd0000365000000a41. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
# U 2005/11/02 16:39:35.601857 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:35.602200 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:35.640413 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1d200002cf000000a43. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
U 2005/11/02 16:39:40.601018 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:40.601360 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:40.643358 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1d700007e8300000a45. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
# U 2005/11/02 16:39:45.600242 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:45.600587 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:45.640985 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1dc00003be400000a47. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
# U 2005/11/02 16:39:50.600485 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:50.600831 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:50.643167 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1e10000362100000a49. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
# U 2005/11/02 16:39:52.900945 211.211.211.211:5060 -> 212.212.212.212:5060 REGISTER sip:212.212.212.212 SIP/2.0. Via: SIP/2.0/UDP 192.168.97.234:5060;branch=z9hG4bKeU7FGO95Q. Max-Forwards: 70. User-Agent: PA168S. From: "105" sip:105@212.212.212.212;tag=6Bf55ba2e0h1TmPV. To: "105" sip:105@212.212.212.212. Call-ID: yc75i6rZUpdaIHhb@192.168.97.234. CSeq: 23653 REGISTER. Contact: sip:105@192.168.97.234:5060. Expires: 300. Content-Length: 0. .
# U 2005/11/02 16:39:52.901377 212.212.212.212:5060 -> 211.211.211.211:5060 SIP/2.0 401 Unauthorized. Via: SIP/2.0/UDP 192.168.97.234:5060;branch=z9hG4bKeU7FGO95Q;rport=5060;received=211.211.211.211. From: "105" sip:105@212.212.212.212;tag=6Bf55ba2e0h1TmPV. To: "105" sip:105@212.212.212.212;tag=32db283f0ca9dc011800edf1773bf961.f2c5. Call-ID: yc75i6rZUpdaIHhb@192.168.97.234. CSeq: 23653 REGISTER. WWW-Authenticate: Digest realm="212.212.212.212", nonce="4368c2d4935659bb5c3b365613f4d0e88ad5b13f", qop="auth". Content-Length: 0. .
# U 2005/11/02 16:39:53.118213 211.211.211.211:5060 -> 212.212.212.212:5060 REGISTER sip:212.212.212.212 SIP/2.0. Via: SIP/2.0/UDP 192.168.97.234:5060;branch=z9hG4bKOhHh4mXia. Max-Forwards: 70. User-Agent: PA168S. From: "105" sip:105@212.212.212.212;tag=pWYCPrNjthWpPEsS. To: "105" sip:105@212.212.212.212. Call-ID: yc75i6rZUpdaIHhb@192.168.97.234. CSeq: 23654 REGISTER. Contact: sip:105@192.168.97.234:5060. Expires: 300. Authorization: Digest username="105", realm="212.212.212.212", nonce="4368c2d4935659bb5c3b365613f4d0e88ad5b13f", uri="sip:212.212.212.212", qop=auth, nc=00000001, cnonce="0a4f113b", response="37fd096cde5f418acbe914551ef79842". Content-Length: 0. .
# U 2005/11/02 16:39:53.120270 212.212.212.212:5060 -> 211.211.211.211:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.234:5060;branch=z9hG4bKOhHh4mXia;rport=5060;received=211.211.211.211. From: "105" sip:105@212.212.212.212;tag=pWYCPrNjthWpPEsS. To: "105" sip:105@212.212.212.212;tag=32db283f0ca9dc011800edf1773bf961.6560. Call-ID: yc75i6rZUpdaIHhb@192.168.97.234. CSeq: 23654 REGISTER. Date: Wed, 02 Nov 2005 13:39:53 GMT. Contact: sip:105@192.168.97.234:5060;q=0.1;expires=300;received="sip:211.211.211.211:5060". Content-Length: 0. .
# U 2005/11/02 16:39:55.602545 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:55.602872 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:39:55.641383 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1e60000163800000a4b. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
# U 2005/11/02 16:40:00.601769 213.213.213.213:5060 -> 212.212.212.212:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe7b5.18fe27b3.0. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:40:00.602053 212.212.212.212:5060 -> 211.211.211.211:60584 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.97.88;received=211.211.211.211;rport=60584;branch=z9hG4bKc0a86158000000ce4368c1bc0000318000000a33. Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on. Contact: outbound sip:989099037259@212.212.212.212. From: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. To: sip:989099037259@212.212.212.212;tag=9796-15435-32134. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 INVITE. Content-Type: application/sdp. Content-Length: 151. . v=0. o=213.213.213.213 9442 9442 IN IP4 213.213.213.213. s= Alter Proxy Softswitch. c=IN IP4 213.213.213.213. t=0 0. m=audio 30340 RTP/AVP 8. a=ptime:20.
# U 2005/11/02 16:40:00.644051 211.211.211.211:60584 -> 212.212.212.212:5060 ACK sip:989099037259@212.212.212.212:5060;nat=yes SIP/2.0. v: SIP/2.0/UDP 192.168.97.88;rport;branch=z9hG4bKc0a86158000000ce4368c1eb000017ba00000a4d. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 2 ACK. f: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. Max-Forwards: 70. Route: sip:989099037259@212.212.212.212. t: sip:989099037259@212.212.212.212;tag=9796-15435-32134. .
# U 2005/11/02 16:40:01.288291 213.213.213.213:5060 -> 212.212.212.212:5060 BYE sip:102@212.212.212.212 SIP/2.0. Via: SIP/2.0/UDP 213.213.213.213. Route: sip:102@211.211.211.211:60584. From: outbound sip:989099037259@212.212.212.212;tag=9796-15435-32134. To: Anonymous sip:102@212.212.212.212;tag=2245526517777. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 20391 BYE. Content-Length: 0. Date: Wed, 02 Nov 2005 13:42:16 GMT. .
# U 2005/11/02 16:40:01.290540 212.212.212.212:5060 -> 211.211.211.211:60584 BYE sip:102@211.211.211.211:60584 SIP/2.0. Max-Forwards: 10. Record-Route: sip:102@212.212.212.212:5060;ftag=9796-15435-32134;lr=on. Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bK0c1c.e5e9e194.0. Via: SIP/2.0/UDP 213.213.213.213. From: outbound sip:989099037259@212.212.212.212;tag=9796-15435-32134. To: Anonymous sip:102@212.212.212.212;tag=2245526517777. Call-ID: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 20391 BYE. Content-Length: 0. Date: Wed, 02 Nov 2005 13:42:16 GMT. P-hint: Loose Routed. .
# U 2005/11/02 16:40:01.332573 211.211.211.211:60584 -> 212.212.212.212:5060 SIP/2.0 200 OK. v: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bK0c1c.e5e9e194.0,SIP/2.0/UDP 213.213.213.213. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 20391 BYE. f: outboundsip:989099037259@212.212.212.212;tag=9796-15435-32134. t: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. .
# U 2005/11/02 16:40:01.333074 212.212.212.212:5060 -> 213.213.213.213:5060 SIP/2.0 200 OK. v: SIP/2.0/UDP 213.213.213.213. l: 0. i: C406C981-D6DB-4FF3-B716-D046FC871087@192.168.97.88. CSeq: 20391 BYE. f: outboundsip:989099037259@212.212.212.212;tag=9796-15435-32134. t: "Anonymous"sip:102@212.212.212.212;tag=2245526517777. P-hint: NATed Reply. .
On Nov 02, 2005 at 18:48, deviator deviator@inbox.ru wrote:
Hello!
When i'm trying to call from UA to PSTN i have a call failure after 40 sec. All my UA's (private and public ip) works fine when calling each other. Calls from PSTN ---> UA's also works fine. But when i'm calling to PSTN i may talk only 40 sec. I'm tried from NAT UA's and UA's with public ip, softphones and ipphones - same result. I don't know what to do, someone please help me.
The ACK doesn't reach the gateway. Do you drop it in your ser.cfg? Anyway the UA seems broken, it uses strict routing, but it does not copy the entire uri from Record-Route:
ACK sip:989099037259@212.212.212.212:5060;nat=yes
for Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on.
(notice the missing lr=on in the ACK uri).
Andrei
[...]
Thanks for reply!
This is part of my openser.cfg
..........
route {
# ------------------------------------------------------------------------ # Record Route Section # ------------------------------------------------------------------------ if (method=="INVITE" && client_nat_test("3")) { setflag(7); record_route_preset("212.212.212.212:5060;nat=yes"); } else if (method!="REGISTER") { record_route_preset("212.212.212.212:5060"); };
......
# ------------------------------------------------------------------------ # Message Handler Logic # ------------------------------------------------------------------------ if (loose_route()) { append_hf("P-hint: Loose Routed\r\n"); if (has_totag() && (method=="INVITE" || method=="ACK")) { if (isflagset(7) || search("^Route:.*;nat=yes")) { setflag(6); use_media_proxy(); }; }; route(1); break; }; if (uri!=myself) { append_hf("P-hint: External Destination\r\n"); route(1); break; }; if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9); break; } else if (method=="CANCEL") { route(5); break; } else if (method=="INVITE") { setflag(1); route(5); break; } else if (method=="REFER") { route(5); break; } else if (method=="REGISTER") { setflag(1); route(3); break; } else if (method=="OPTIONS") { options_reply(); break; } else if (method=="SUBSCRIBE") { route(4); break; }; lookup("aliases"); if (uri!=myself) { append_hf("P-hint: Alias External Destination\r\n"); route(1); break; }; if (!lookup("location")) { sl_send_reply("404", "User Not Found"); break; }; }; append_hf("P-hint: USRLOC Applied\r\n"); route(1); }
route[1] { remove_hf("Proxy-Authorization"); t_on_reply("1"); if (!t_relay()) { if (method=="INVITE" || method=="ACK") { end_media_session(); }; sl_reply_error(); }; } route[2] { # ------------------------------------------------------------------------ # Call Forwarding Reply Route Handler # ------------------------------------------------------------------------ if (!lookup("location")) { rewritehost("195.135.204.85"); # PSTN GW IP ADDRESSS GOES HERE } else { route(8); route(1); }; }
........... ........... ...........
route[7] {
# ------------------------------------------------------------------------ # PSTN Handler # ------------------------------------------------------------------------
rewritehost("195.135.204.85"); # PSTN GW IP ADDRESSS GOES HERE if (method!="CANCEL") { if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "1"); break; }; consume_credentials(); avp_write("i:45", "inv_timeout"); route(8); }; t_on_failure("1"); route(1); }
route[8] { if (isflagset(6) || isflagset(7)) { use_media_proxy(); }; }
........
onreply_route[1] {
if (isflagset(6) || isflagset(7) || search("212.212.212.212")) { if (status=~"(180)|(183)|2[0-9][0-9]") { if (!search("^Content-Length:\ +0")) { append_hf("P-hint: NATed Reply\r\n"); use_media_proxy(); }; }; }; if (client_nat_test("1")) { fix_nated_contact(); }; }
.........
I dont think that my UA is broken, same results have all my ipphones and softphones :(
-----Original Message----- From: Andrei Pelinescu-Onciul andrei@iptel.org To: deviator deviator@inbox.ru Date: Wed, 2 Nov 2005 19:58:06 +0100 Subject: Re: [Serusers] Strange problem - SIP-->PSTN - 40 sec calls duration
On Nov 02, 2005 at 18:48, deviator deviator@inbox.ru wrote:
Hello!
When i'm trying to call from UA to PSTN i have a call failure after 40 sec. All my UA's (private and public ip) works fine when calling each other. Calls from PSTN ---> UA's also works fine. But when i'm calling to PSTN i may talk only 40 sec. I'm tried from NAT UA's and UA's with public ip, softphones and ipphones - same result. I don't know what to do, someone please help me.
The ACK doesn't reach the gateway. Do you drop it in your ser.cfg? Anyway the UA seems broken, it uses strict routing, but it does not copy the entire uri from Record-Route:
ACK sip:989099037259@212.212.212.212:5060;nat=yes
for Record-Route: sip:989099037259@212.212.212.212:5060;nat=yes;ftag=2245526517777;lr=on.
(notice the missing lr=on in the ACK uri).
Andrei
[...]
On Nov 03, 2005 at 09:50, deviator deviator@inbox.ru wrote:
Thanks for reply!
This is part of my openser.cfg
[...]
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9);
^^^^^^^^ - you haven't sent route[9], check it to see if you drop the ACKs in there (you should treat them almost the same as the invites)
break; } else if (method=="CANCEL") { route(5); break; } else if (method=="INVITE") { setflag(1); route(5); break;
[...]
I dont think that my UA is broken, same results have all my ipphones and softphones :(
The ACK was not dropped because the UA was broken, but nevertheless you the UA didn't properly handle record-routing.
Andrei
Thank you for your reply!
But i'm still misundestand what to do, sorry i'm a beginner :(
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9); break;
.......... route[9] { if (method=="ACK") { t_relay(); return; };
lookup("aliases"); if (uri!=myself) { route(1); break; }; lookup("location"); route(1); }
is it right ???
in syslog i see LOOP DETECTED and warning: sl_send_reply:i won't send a reply for ack
the whole route block route {
# ------------------------------------------------------------------------ # Sanity Check Section # ------------------------------------------------------------------------ if (!mf_process_maxfwd_header("10")) { log(1, "LOOP DETECTED"); sl_send_reply("483", "Nah, too many hops"); break; };
if (msg:len > max_len) { log(1, "MESSAGE OVERFLOW"); sl_send_reply("513", "Fucking shit, ═essage too large"); break; };
# ------------------------------------------------------------------------ # Record Route Section # ------------------------------------------------------------------------ if (method=="INVITE" && client_nat_test("3")) { setflag(7); record_route_preset("212.212.212.212:5060;nat=yes"); } else if (method!="REGISTER") { record_route_preset("212.212.212.212:5060"); };
# ------------------------------------------------------------------------ # Media Proxy Tear Down # ------------------------------------------------------------------------ if (method=="BYE" || method=="CANCEL") { setflag(1); end_media_session(); };
# ------------------------------------------------------------------------ # Message Handler Logic # ------------------------------------------------------------------------ if (loose_route()) { append_hf("P-hint: Loose Routed\r\n"); if (has_totag() && (method=="INVITE" || method=="ACK")) { if (isflagset(7) || search("^Route:.*;nat=yes")) { setflag(6); use_media_proxy(); }; }; route(1); break; };
if (uri!=myself) { append_hf("P-hint: External Destination\r\n"); route(1); break; };
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9); break; } else if (method=="CANCEL") { route(5); break; } else if (method=="INVITE") { setflag(1); route(5); break; } else if (method=="REFER") { route(5); break; } else if (method=="REGISTER") { setflag(1); route(3); break; } else if (method=="OPTIONS") { options_reply(); break; };
lookup("aliases"); if (uri!=myself) { append_hf("P-hint: Alias External Destination\r\n"); route(1); break; };
if (!lookup("location")) { sl_send_reply("404", "User Not Found"); break; }; };
append_hf("P-hint: USRLOC Applied\r\n"); route(1); }
route[1] { # ------------------------------------------------------------------------ # Default Message Handler # ------------------------------------------------------------------------ remove_hf("Proxy-Authorization"); t_on_reply("1"); if (!t_relay()) { if (method=="INVITE" || method=="ACK") { end_media_session(); }; sl_reply_error(); }; }
route[2] { # ------------------------------------------------------------------------ # Call Forwarding Reply Route Handler # ------------------------------------------------------------------------
if (!lookup("location")) { rewritehost("213.213.213.213"); # PSTN GW IP ADDRESSS GOES HERE } else { route(8); route(1); }; }
route[3] { # ------------------------------------------------------------------------ # REGISTER Message Handler # ------------------------------------------------------------------------
# ------------------------------------------------------------------------ # NAT Test Section # ------------------------------------------------------------------------ if (!search("^Contact:\ +*") && client_nat_test("7")) { setflag(6); fix_nated_register(); force_rport(); };
if (!www_authorize("", "subscriber")) { www_challenge("", "1"); break; };
consume_credentials();
add_rcv_param(); append_time();
if (!save("location")) { sl_reply_error(); break; }; }
route[5] { # ------------------------------------------------------------------------ # NAT Test # ------------------------------------------------------------------------ if (client_nat_test("3")) { setflag(7); force_rport(); fix_nated_contact(); };
# ------------------------------------------------------------------------ # Aliases Section # ------------------------------------------------------------------------ lookup("aliases"); if (uri!=myself) { append_hf("P-hint: Alias External Destination\r\n"); route(1); break; };
# ------------------------------------------------------------------------ # Load ACL Section # ------------------------------------------------------------------------ if ((method=="INVITE") && (uri=~"^sip:9[0-9]*@")) {
if (!allow_trusted()) {
if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "1"); break; };
if (is_from_local() || is_uri_host_local()) {
if (is_user_in("credentials", "int")) { setflag(29); };
};
consume_credentials();
};
# ---------------------------------------------------------------- # 9 International Call Test # ---------------------------------------------------------------- if (uri=~"^sip:9[0-9]*@") { if (isflagset(29)) { route(7); } else { acc_db_request("403 - Int Disabled", "acc"); sl_send_reply("403", "Service Unavailable"); }; break; }; };
# ------------------------------------------------------------------------ # Call Routing Section # ------------------------------------------------------------------------ if (!lookup("location")) { if (method=="CANCEL") { route(1); break; };
};
# ------------------------------------------------------------------------ # CANCEL message branch # ------------------------------------------------------------------------ if (method=="CANCEL") { route(1); break; };
# ------------------------------------------------------------------------ # NAT Test # ------------------------------------------------------------------------ if (isflagset(6) && !isflagset(7)) { force_rport(); fix_nated_contact(); };
# ------------------------------------------------------------------------ # Final Call Routing Decision # ------------------------------------------------------------------------ route(8); t_on_failure("1");
route(1); }
route[7] {
# ------------------------------------------------------------------------ # PSTN Handler # ------------------------------------------------------------------------
rewritehost("195.135.204.85"); # PSTN GW IP ADDRESSS GOES HERE
if (method!="CANCEL") {
if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "1"); break; };
consume_credentials(); route(8); };
t_on_failure("1"); route(1); }
route[8] {
# ------------------------------------------------------------------------ # RTP Proxy Enabler # ------------------------------------------------------------------------
if (isflagset(6) || isflagset(7)) { use_media_proxy(); }; }
route[9] {
# ------------------------------------------------------------------------ # ACK Handler # ------------------------------------------------------------------------ if (method=="ACK") { t_relay(); return; };
# ------------------------------------------------------------------------ # Aliases Section # ------------------------------------------------------------------------ lookup("aliases"); if (uri!=myself) { route(1); break; };
lookup("location");
route(1); }
onreply_route[1] {
# Not all 2xx messages have a content body so here we # make sure our Content-Length > 0 to avoid a parse error
if (isflagset(6) || isflagset(7) || search("212.212.212.212")) {
if (status=~"(180)|(183)|2[0-9][0-9]") {
if (!search("^Content-Length:\ +0")) { append_hf("P-hint: NATed Reply\r\n"); use_media_proxy(); }; }; };
if (client_nat_test("1")) { fix_nated_contact(); }; }
failure_route[1] {
if (t_check_status("487")) { break; };
if (t_check_status("5[0-9]{2}")) { if (t_check_status("500")) { acc_db_request("500 - PSTN GW Says Internal Server Error", "acc"); } else if (t_check_status("501")) { acc_db_request("501 - PSTN GW Says Not Implemented", "acc"); } else if (t_check_status("502")) { acc_db_request("502 - PSTN GW Says Bad Gateway", "acc"); } else if (t_check_status("503")) { acc_db_request("503 - PSTN GW Says Service Unavailable", "acc"); } else if (t_check_status("504")) { acc_db_request("504 - PSTN GW Says Server Time Out", "acc"); }; };
if (isflagset(27) && t_check_status("408")) {
# forward no answer is flag 27 if (avp_pushto("$ruri", "s:fwdnoanswer")) { append_hf("P-hint: Forward No Answer\r\n"); avp_delete("s:fwdnoanswer"); resetflag(27); route(2); break; }; };
end_media_session(); }; }
help me please, my head is burning :(
-----Original Message----- From: Andrei Pelinescu-Onciul andrei@iptel.org To: deviator deviator@inbox.ru Date: Thu, 3 Nov 2005 14:45:21 +0100 Subject: Re: [Serusers] Strange problem - SIP-->PSTN - 40 sec calls duration
On Nov 03, 2005 at 09:50, deviator deviator@inbox.ru wrote:
Thanks for reply!
This is part of my openser.cfg
[...]
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9);
^^^^^^^^ - you haven't sent route[9], check it to see if you drop the ACKs in there (you should treat them almost the same as the invites)
break; } else if (method=="CANCEL") { route(5); break; } else if (method=="INVITE") { setflag(1); route(5); break;
[...]
I dont think that my UA is broken, same results have all my ipphones and softphones :(
The ACK was not dropped because the UA was broken, but nevertheless you the UA didn't properly handle record-routing.
Andrei
On Nov 07, 2005 at 15:20, deviator deviator@inbox.ru wrote:
Thank you for your reply!
But i'm still misundestand what to do, sorry i'm a beginner :(
In general ACKs and CANCELs must be treated like the INVITE when request uri's are rewritten. This means that if you rewrite the uri in the INVITE in the PSTN case, you must do the same for ACKs and CANCELs (but don't challenge/auth. them!).
What happens in your case is you send an INVITE like 91234@ser_ip which gets rewritten to 9123@pstn_ip by ser and forwarded to the pstn gw. When the pstn replies it sets the Contact to the ser ip (91234@ser_ip). Now when your UA sends the ACK is sends it to the Contact in the 200 Ok, so it will send and ACK to 91234@ser_ip. However in your ser cfg the ACK is handled differently and the uri won't get rewritten to 91234@pstn_ip. The ACK will be forwarded untouched instead, which results in a loop (it will be forwarded to ser_ip).
You will have the same problem for CANCELs (you won't be able to cancel a call to the pstn).
Andrei
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9); break;
.......... route[9] { if (method=="ACK") { t_relay(); return; };
lookup("aliases"); if (uri!=myself) { route(1); break; }; lookup("location"); route(1); }
is it right ???
in syslog i see LOOP DETECTED and warning: sl_send_reply:i won't send a reply for ack
the whole route block route {
# ------------------------------------------------------------------------ # Sanity Check Section # ------------------------------------------------------------------------ if (!mf_process_maxfwd_header("10")) { log(1, "LOOP DETECTED"); sl_send_reply("483", "Nah, too many hops"); break; };
if (msg:len > max_len) { log(1, "MESSAGE OVERFLOW"); sl_send_reply("513", "Fucking shit, ═essage too large"); break; };
# ------------------------------------------------------------------------ # Record Route Section # ------------------------------------------------------------------------ if (method=="INVITE" && client_nat_test("3")) { setflag(7); record_route_preset("212.212.212.212:5060;nat=yes"); } else if (method!="REGISTER") { record_route_preset("212.212.212.212:5060"); };
# ------------------------------------------------------------------------ # Media Proxy Tear Down # ------------------------------------------------------------------------ if (method=="BYE" || method=="CANCEL") { setflag(1); end_media_session(); };
# ------------------------------------------------------------------------ # Message Handler Logic # ------------------------------------------------------------------------ if (loose_route()) { append_hf("P-hint: Loose Routed\r\n"); if (has_totag() && (method=="INVITE" || method=="ACK")) { if (isflagset(7) || search("^Route:.*;nat=yes")) { setflag(6); use_media_proxy(); }; }; route(1); break; };
if (uri!=myself) { append_hf("P-hint: External Destination\r\n"); route(1); break; };
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9); break; } else if (method=="CANCEL") { route(5); break; } else if (method=="INVITE") { setflag(1); route(5); break; } else if (method=="REFER") { route(5); break; } else if (method=="REGISTER") { setflag(1); route(3); break; } else if (method=="OPTIONS") { options_reply(); break; };
lookup("aliases"); if (uri!=myself) { append_hf("P-hint: Alias External Destination\r\n"); route(1); break; }; if (!lookup("location")) { sl_send_reply("404", "User Not Found"); break; };
};
append_hf("P-hint: USRLOC Applied\r\n"); route(1); }
route[1] { # ------------------------------------------------------------------------ # Default Message Handler # ------------------------------------------------------------------------ remove_hf("Proxy-Authorization"); t_on_reply("1"); if (!t_relay()) { if (method=="INVITE" || method=="ACK") { end_media_session(); }; sl_reply_error(); }; }
route[2] { # ------------------------------------------------------------------------ # Call Forwarding Reply Route Handler # ------------------------------------------------------------------------
if (!lookup("location")) { rewritehost("213.213.213.213"); # PSTN GW IP ADDRESSS GOES HERE } else { route(8); route(1); }; }
route[3] { # ------------------------------------------------------------------------ # REGISTER Message Handler # ------------------------------------------------------------------------
# ------------------------------------------------------------------------ # NAT Test Section # ------------------------------------------------------------------------ if (!search("^Contact:\ +*") && client_nat_test("7")) { setflag(6); fix_nated_register(); force_rport(); };
if (!www_authorize("", "subscriber")) { www_challenge("", "1"); break; }; consume_credentials(); add_rcv_param(); append_time(); if (!save("location")) { sl_reply_error(); break; };
}
route[5] { # ------------------------------------------------------------------------ # NAT Test # ------------------------------------------------------------------------ if (client_nat_test("3")) { setflag(7); force_rport(); fix_nated_contact(); };
# ------------------------------------------------------------------------ # Aliases Section # ------------------------------------------------------------------------ lookup("aliases"); if (uri!=myself) { append_hf("P-hint: Alias External Destination\r\n"); route(1); break; };
# ------------------------------------------------------------------------ # Load ACL Section # ------------------------------------------------------------------------ if ((method=="INVITE") && (uri=~"^sip:9[0-9]*@")) {
if (!allow_trusted()) { if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "1"); break; }; if (is_from_local() || is_uri_host_local()) { if (is_user_in("credentials", "int")) { setflag(29); }; }; consume_credentials(); }; # ---------------------------------------------------------------- # 9 International Call Test # ---------------------------------------------------------------- if (uri=~"^sip:9[0-9]*@") { if (isflagset(29)) { route(7); } else { acc_db_request("403 - Int Disabled", "acc"); sl_send_reply("403", "Service Unavailable"); }; break; };
};
# ------------------------------------------------------------------------ # Call Routing Section # ------------------------------------------------------------------------ if (!lookup("location")) { if (method=="CANCEL") { route(1); break; };
};
# ------------------------------------------------------------------------ # CANCEL message branch # ------------------------------------------------------------------------ if (method=="CANCEL") { route(1); break; };
# ------------------------------------------------------------------------ # NAT Test # ------------------------------------------------------------------------ if (isflagset(6) && !isflagset(7)) { force_rport(); fix_nated_contact(); };
# ------------------------------------------------------------------------ # Final Call Routing Decision # ------------------------------------------------------------------------ route(8); t_on_failure("1");
route(1); }
route[7] {
# ------------------------------------------------------------------------ # PSTN Handler # ------------------------------------------------------------------------
rewritehost("195.135.204.85"); # PSTN GW IP ADDRESSS GOES HERE
if (method!="CANCEL") {
if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "1"); break; }; consume_credentials(); route(8);
};
t_on_failure("1"); route(1); }
route[8] {
# ------------------------------------------------------------------------ # RTP Proxy Enabler # ------------------------------------------------------------------------
if (isflagset(6) || isflagset(7)) { use_media_proxy(); }; }
route[9] {
# ------------------------------------------------------------------------ # ACK Handler # ------------------------------------------------------------------------ if (method=="ACK") { t_relay(); return; };
# ------------------------------------------------------------------------ # Aliases Section # ------------------------------------------------------------------------ lookup("aliases"); if (uri!=myself) { route(1); break; };
lookup("location");
route(1); }
onreply_route[1] {
# Not all 2xx messages have a content body so here we # make sure our Content-Length > 0 to avoid a parse error
if (isflagset(6) || isflagset(7) || search("212.212.212.212")) {
if (status=~"(180)|(183)|2[0-9][0-9]") { if (!search("^Content-Length:\ +0")) { append_hf("P-hint: NATed Reply\r\n"); use_media_proxy(); }; };
};
if (client_nat_test("1")) { fix_nated_contact(); }; }
failure_route[1] {
if (t_check_status("487")) { break; };
if (t_check_status("5[0-9]{2}")) { if (t_check_status("500")) { acc_db_request("500 - PSTN GW Says Internal Server Error", "acc"); } else if (t_check_status("501")) { acc_db_request("501 - PSTN GW Says Not Implemented", "acc"); } else if (t_check_status("502")) { acc_db_request("502 - PSTN GW Says Bad Gateway", "acc"); } else if (t_check_status("503")) { acc_db_request("503 - PSTN GW Says Service Unavailable", "acc"); } else if (t_check_status("504")) { acc_db_request("504 - PSTN GW Says Server Time Out", "acc"); }; };
if (isflagset(27) && t_check_status("408")) {
# forward no answer is flag 27 if (avp_pushto("$ruri", "s:fwdnoanswer")) { append_hf("P-hint: Forward No Answer\r\n"); avp_delete("s:fwdnoanswer"); resetflag(27); route(2); break; };
};
end_media_session(); }; }
help me please, my head is burning :(
-----Original Message----- From: Andrei Pelinescu-Onciul andrei@iptel.org To: deviator deviator@inbox.ru Date: Thu, 3 Nov 2005 14:45:21 +0100 Subject: Re: [Serusers] Strange problem - SIP-->PSTN - 40 sec calls duration
On Nov 03, 2005 at 09:50, deviator deviator@inbox.ru wrote:
Thanks for reply!
This is part of my openser.cfg
[...]
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9);
^^^^^^^^ - you haven't sent route[9], check it to see if you drop the ACKs in there (you should treat them almost the same as the invites)
break; } else if (method=="CANCEL") { route(5); break; } else if (method=="INVITE") { setflag(1); route(5); break;
[...]
I dont think that my UA is broken, same results have all my ipphones and softphones :(
The ACK was not dropped because the UA was broken, but nevertheless you the UA didn't properly handle record-routing.
Andrei
Huge thanks, all is clear for me now! i'm solved the problem, which was in pstn gateway (auth incoming calls problems and (404 - user not found) replies in packets on it).
script is right.
thanks one more time, Andrei!
-----Original Message----- From: Andrei Pelinescu-Onciul andrei@iptel.org To: deviator deviator@inbox.ru Date: Tue, 8 Nov 2005 14:29:28 +0100 Subject: Re: [Serusers] Strange problem - SIP-->PSTN - 40 sec calls duration
On Nov 07, 2005 at 15:20, deviator deviator@inbox.ru wrote:
Thank you for your reply!
But i'm still misundestand what to do, sorry i'm a beginner :(
In general ACKs and CANCELs must be treated like the INVITE when request uri's are rewritten. This means that if you rewrite the uri in the INVITE in the PSTN case, you must do the same for ACKs and CANCELs (but don't challenge/auth. them!).
What happens in your case is you send an INVITE like 91234@ser_ip which gets rewritten to 9123@pstn_ip by ser and forwarded to the pstn gw. When the pstn replies it sets the Contact to the ser ip (91234@ser_ip). Now when your UA sends the ACK is sends it to the Contact in the 200 Ok, so it will send and ACK to 91234@ser_ip. However in your ser cfg the ACK is handled differently and the uri won't get rewritten to 91234@pstn_ip. The ACK will be forwarded untouched instead, which results in a loop (it will be forwarded to ser_ip).
You will have the same problem for CANCELs (you won't be able to cancel a call to the pstn).
Andrei
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9); break;
.......... route[9] { if (method=="ACK") { t_relay(); return; };
lookup("aliases"); if (uri!=myself) { route(1); break; }; lookup("location"); route(1); }
is it right ???
in syslog i see LOOP DETECTED and warning: sl_send_reply:i won't send a reply for ack
the whole route block route {
# ------------------------------------------------------------------------ # Sanity Check Section # ------------------------------------------------------------------------ if (!mf_process_maxfwd_header("10")) { log(1, "LOOP DETECTED"); sl_send_reply("483", "Nah, too many hops"); break; };
if (msg:len > max_len) { log(1, "MESSAGE OVERFLOW"); sl_send_reply("513", "Fucking shit, ═essage too large"); break; };
# ------------------------------------------------------------------------ # Record Route Section # ------------------------------------------------------------------------ if (method=="INVITE" && client_nat_test("3")) { setflag(7); record_route_preset("212.212.212.212:5060;nat=yes"); } else if (method!="REGISTER") { record_route_preset("212.212.212.212:5060"); };
# ------------------------------------------------------------------------ # Media Proxy Tear Down # ------------------------------------------------------------------------ if (method=="BYE" || method=="CANCEL") { setflag(1); end_media_session(); };
# ------------------------------------------------------------------------ # Message Handler Logic # ------------------------------------------------------------------------ if (loose_route()) { append_hf("P-hint: Loose Routed\r\n"); if (has_totag() && (method=="INVITE" || method=="ACK")) { if (isflagset(7) || search("^Route:.*;nat=yes")) { setflag(6); use_media_proxy(); }; }; route(1); break; };
if (uri!=myself) { append_hf("P-hint: External Destination\r\n"); route(1); break; };
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9); break; } else if (method=="CANCEL") { route(5); break; } else if (method=="INVITE") { setflag(1); route(5); break; } else if (method=="REFER") { route(5); break; } else if (method=="REGISTER") { setflag(1); route(3); break; } else if (method=="OPTIONS") { options_reply(); break; };
lookup("aliases"); if (uri!=myself) { append_hf("P-hint: Alias External Destination\r\n"); route(1); break; }; if (!lookup("location")) { sl_send_reply("404", "User Not Found"); break; };
};
append_hf("P-hint: USRLOC Applied\r\n"); route(1); }
route[1] { # ------------------------------------------------------------------------ # Default Message Handler # ------------------------------------------------------------------------ remove_hf("Proxy-Authorization"); t_on_reply("1"); if (!t_relay()) { if (method=="INVITE" || method=="ACK") { end_media_session(); }; sl_reply_error(); }; }
route[2] { # ------------------------------------------------------------------------ # Call Forwarding Reply Route Handler # ------------------------------------------------------------------------
if (!lookup("location")) { rewritehost("213.213.213.213"); # PSTN GW IP ADDRESSS GOES HERE } else { route(8); route(1); }; }
route[3] { # ------------------------------------------------------------------------ # REGISTER Message Handler # ------------------------------------------------------------------------
# ------------------------------------------------------------------------ # NAT Test Section # ------------------------------------------------------------------------ if (!search("^Contact:\ +*") && client_nat_test("7")) { setflag(6); fix_nated_register(); force_rport(); };
if (!www_authorize("", "subscriber")) { www_challenge("", "1"); break; }; consume_credentials(); add_rcv_param(); append_time(); if (!save("location")) { sl_reply_error(); break; };
}
route[5] { # ------------------------------------------------------------------------ # NAT Test # ------------------------------------------------------------------------ if (client_nat_test("3")) { setflag(7); force_rport(); fix_nated_contact(); };
# ------------------------------------------------------------------------ # Aliases Section # ------------------------------------------------------------------------ lookup("aliases"); if (uri!=myself) { append_hf("P-hint: Alias External Destination\r\n"); route(1); break; };
# ------------------------------------------------------------------------ # Load ACL Section # ------------------------------------------------------------------------ if ((method=="INVITE") && (uri=~"^sip:9[0-9]*@")) {
if (!allow_trusted()) { if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "1"); break; }; if (is_from_local() || is_uri_host_local()) { if (is_user_in("credentials", "int")) { setflag(29); }; }; consume_credentials(); }; # ---------------------------------------------------------------- # 9 International Call Test # ---------------------------------------------------------------- if (uri=~"^sip:9[0-9]*@") { if (isflagset(29)) { route(7); } else { acc_db_request("403 - Int Disabled", "acc"); sl_send_reply("403", "Service Unavailable"); }; break; };
};
# ------------------------------------------------------------------------ # Call Routing Section # ------------------------------------------------------------------------ if (!lookup("location")) { if (method=="CANCEL") { route(1); break; };
};
# ------------------------------------------------------------------------ # CANCEL message branch # ------------------------------------------------------------------------ if (method=="CANCEL") { route(1); break; };
# ------------------------------------------------------------------------ # NAT Test # ------------------------------------------------------------------------ if (isflagset(6) && !isflagset(7)) { force_rport(); fix_nated_contact(); };
# ------------------------------------------------------------------------ # Final Call Routing Decision # ------------------------------------------------------------------------ route(8); t_on_failure("1");
route(1); }
route[7] {
# ------------------------------------------------------------------------ # PSTN Handler # ------------------------------------------------------------------------
rewritehost("195.135.204.85"); # PSTN GW IP ADDRESSS GOES HERE
if (method!="CANCEL") {
if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "1"); break; }; consume_credentials(); route(8);
};
t_on_failure("1"); route(1); }
route[8] {
# ------------------------------------------------------------------------ # RTP Proxy Enabler # ------------------------------------------------------------------------
if (isflagset(6) || isflagset(7)) { use_media_proxy(); }; }
route[9] {
# ------------------------------------------------------------------------ # ACK Handler # ------------------------------------------------------------------------ if (method=="ACK") { t_relay(); return; };
# ------------------------------------------------------------------------ # Aliases Section # ------------------------------------------------------------------------ lookup("aliases"); if (uri!=myself) { route(1); break; };
lookup("location");
route(1); }
onreply_route[1] {
# Not all 2xx messages have a content body so here we # make sure our Content-Length > 0 to avoid a parse error
if (isflagset(6) || isflagset(7) || search("212.212.212.212")) {
if (status=~"(180)|(183)|2[0-9][0-9]") { if (!search("^Content-Length:\ +0")) { append_hf("P-hint: NATed Reply\r\n"); use_media_proxy(); }; };
};
if (client_nat_test("1")) { fix_nated_contact(); }; }
failure_route[1] {
if (t_check_status("487")) { break; };
if (t_check_status("5[0-9]{2}")) { if (t_check_status("500")) { acc_db_request("500 - PSTN GW Says Internal Server Error", "acc"); } else if (t_check_status("501")) { acc_db_request("501 - PSTN GW Says Not Implemented", "acc"); } else if (t_check_status("502")) { acc_db_request("502 - PSTN GW Says Bad Gateway", "acc"); } else if (t_check_status("503")) { acc_db_request("503 - PSTN GW Says Service Unavailable", "acc"); } else if (t_check_status("504")) { acc_db_request("504 - PSTN GW Says Server Time Out", "acc"); }; };
if (isflagset(27) && t_check_status("408")) {
# forward no answer is flag 27 if (avp_pushto("$ruri", "s:fwdnoanswer")) { append_hf("P-hint: Forward No Answer\r\n"); avp_delete("s:fwdnoanswer"); resetflag(27); route(2); break; };
};
end_media_session(); }; }
help me please, my head is burning :(
-----Original Message----- From: Andrei Pelinescu-Onciul andrei@iptel.org To: deviator deviator@inbox.ru Date: Thu, 3 Nov 2005 14:45:21 +0100 Subject: Re: [Serusers] Strange problem - SIP-->PSTN - 40 sec calls duration
On Nov 03, 2005 at 09:50, deviator deviator@inbox.ru wrote:
Thanks for reply!
This is part of my openser.cfg
[...]
if (uri==myself) { append_hf("P-hint: Local Destination\r\n"); if (method=="ACK") { setflag(1); route(9);
^^^^^^^^ - you haven't sent route[9], check it to see if you drop the ACKs in there (you should treat them almost the same as the invites)
break; } else if (method=="CANCEL") { route(5); break; } else if (method=="INVITE") { setflag(1); route(5); break;
[...]
I dont think that my UA is broken, same results have all my ipphones and softphones :(
The ACK was not dropped because the UA was broken, but nevertheless you the UA didn't properly handle record-routing.
Andrei