Hi SER users ,
At present iam using SER-0.9.6 as proxy,registrar ,and the sip to sip calls i tested are o.k and is perfectly going and now when i tried to connect to PSTN it showing 500 internal server error i dont understand whether it is the mistake of cisco sip gateway or SER 's
here is the sip messages which i get when i tried to call SIP to PSTN . I HAD GIVEN SIP TEST CLIENTS USER ID AS 32331000 AND THE LOCAL PSTN NO. ARE LIKE THIS :eg: 22458792
My Domain/Realm=81.21.33.35
and iam using onsip ser.cfg as the ser config file
if (uri=~"^sip:011[0-9]*@") { # International PSTN route(4); route(5); break; };
if (!lookup("location")) { if (uri=~"^sip:[0-9]{8}@") { # Domestic PSTN route(4); route(5); break; };
and the pstn connectivity lines are like this:
and here are the sip messages when i tried to call pstn number
my pstn gateway which iam testing now is 81.21.38.21
# U 81.21.34.34:5068 -> 81.21.33.35:5060 INVITE sip:22485400@81.21.33.35 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.74:5068;branch=z9hG4bKccadffff3fd60000. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35. Contact: sip:32331001@192.168.0.74:5068. Supported: replaces. Call-ID: 9ad9ffff49050000@192.168.0.74. CSeq: 46532 INVITE. User-Agent: Grandstream HT496 1.0.2.16. Max-Forwards: 70. Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE. Content-Type: application/sdp. Content-Length: 305. . v=0. o=32331001 8000 8000 IN IP4 192.168.0.74. s=SIP Call. c=IN IP4 192.168.0.74. t=0 0. m=audio 8000 RTP/AVP 8 0 18 4 2 99. a=sendrecv. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000. a=rtpmap:18 G729/8000. a=rtpmap:4 G723/8000. a=rtpmap:2 G726-32/8000. a=rtpmap:99 iLBC/8000. a=fmtp:99 mode=20. a=ptime:20.
# U 81.21.33.35:5060 -> 81.21.34.34:5068 SIP/2.0 407 Proxy Authentication Required. Via: SIP/2.0/UDP 192.168.0.74:5068;branch=z9hG4bKccadffff3fd60000;received= 81.21.34.34. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35;tag=74961b5b71b6ddce908b9155b956083f.c903. Call-ID: 9ad9ffff49050000@192.168.0.74. CSeq: 46532 INVITE. Proxy-Authenticate: Digest realm="81.21.33.35", nonce="4497c732a5a6f0ff3fb62bd9ac4561a02e4975c9". Content-Length: 0. Warning: 392 81.21.33.35:5060 "Noisy feedback tells: pid=27570 req_src_ip= 81.21.34.34 req_src_port=5068 in_uri=sip:22485400@81.21.33.35 out_uri= sip:22485400@81.21.33.35 via_cnt==1". .
# U 81.21.34.34:5068 -> 81.21.33.35:5060 ACK sip:22485400@81.21.33.35 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.74:5068;branch=z9hG4bKccadffff3fd60000. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35;tag=74961b5b71b6ddce908b9155b956083f.c903. Contact: sip:32331001@192.168.0.74:5068. Call-ID: 9ad9ffff49050000@192.168.0.74. CSeq: 46532 ACK. User-Agent: Grandstream HT496 1.0.2.16. Max-Forwards: 70. Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE. Content-Length: 0. .
# U 81.21.34.34:5068 -> 81.21.33.35:5060 INVITE sip:22485400@81.21.33.35 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.74:5068;branch=z9hG4bK1be8ffffc8ecffff. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35. Contact: sip:32331001@192.168.0.74:5068. Supported: replaces. Proxy-Authorization: Digest username="32331001", realm="81.21.33.35", algorithm=MD5, uri="sip:22485400@81.21.33.35", nonce="4497c732a5a6f0ff3fb62bd9ac4561a02e4975c9", response="af0c7b754d60bf28e493637995ac5675". Call-ID: 9ad9ffff49050000@192.168.0.74. CSeq: 46533 INVITE. User-Agent: Grandstream HT496 1.0.2.16. Max-Forwards: 70. Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE. Content-Type: application/sdp. Content-Length: 305. . v=0. o=32331001 8000 8001 IN IP4 192.168.0.74. s=SIP Call. c=IN IP4 192.168.0.74. t=0 0. m=audio 8000 RTP/AVP 8 0 18 4 2 99. a=sendrecv. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000. a=rtpmap:18 G729/8000. a=rtpmap:4 G723/8000. a=rtpmap:2 G726-32/8000. a=rtpmap:99 iLBC/8000. a=fmtp:99 mode=20. a=ptime:20.
# U 81.21.34.6:5062 -> 81.21.33.35:5060 .... # U 81.21.33.35:5060 -> 81.21.34.34:5068 SIP/2.0 100 trying -- your call is important to us. Via: SIP/2.0/UDP 192.168.0.74:5068 ;branch=z9hG4bK1be8ffffc8ecffff;rport=5068;received=81.21.34.34. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35. Call-ID: 9ad9ffff49050000@192.168.0.74. CSeq: 46533 INVITE. Content-Length: 0. Warning: 392 81.21.33.35:5060 "Noisy feedback tells: pid=27568 req_src_ip= 81.21.34.34 req_src_port=5068 in_uri=sip:22485400@81.21.33.35 out_uri= sip:22485400@81.21.38.21 via_cnt==1". .
# U 81.21.33.35:5060 -> 81.21.38.21:5060 INVITE sip:22485400@81.21.38.21 SIP/2.0. Record-Route: sip:22485400@81.21.33.35 :5060;nat=yes;ftag=26b000000d350000;lr=on. Via: SIP/2.0/UDP 81.21.33.35;branch=z9hG4bK7de4.ed7d9ff3.0. Via: SIP/2.0/UDP 192.168.0.74:5068;rport=5068;received=81.21.34.34 ;branch=z9hG4bK1be8ffffc8ecffff. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35. Contact: sip:32331001@81.21.34.34:5068. Supported: replaces. Call-ID: 9ad9ffff49050000@192.168.0.74. CSeq: 46533 INVITE. User-Agent: Grandstream HT496 1.0.2.16. Max-Forwards: 16. Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE. Content-Type: application/sdp. Content-Length: 321. . v=0. o=32331001 8000 8001 IN IP4 192.168.0.74. s=SIP Call. c=IN IP4 81.21.33.3581.21.33.35. t=0 0. m=audio 3505035050 RTP/AVP 8 0 18 4 2 99. a=sendrecv. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000. a=rtpmap:18 G729/8000. a=rtpmap:4 G723/8000. a=rtpmap:2 G726-32/8000. a=rtpmap:99 iLBC/8000. a=fmtp:99 mode=20. a=ptime:20.
# U 81.21.38.21:5060 -> 81.21.33.35:5060 SIP/2.0 100 Trying. Via: SIP/2.0/UDP 81.21.33.35;branch=z9hG4bK7de4.ed7d9ff3.0,SIP/2.0/UDP 192.168.0.74:5068;rport=5068;received=81.21.34.34 ;branch=z9hG4bK1be8ffffc8ecffff. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35;tag=7D687D1C-202E. Date: Tue, 20 Jun 2006 09:56:36 GMT. Call-ID: 9ad9ffff49050000@192.168.0.74. Server: Cisco-SIPGateway/IOS-12.x. CSeq: 46533 INVITE. Allow-Events: telephone-event. Content-Length: 0. .
# U 81.21.38.21:5060 -> 81.21.33.35:5060 SIP/2.0 500 Internal Server Error. Via: SIP/2.0/UDP 81.21.33.35;branch=z9hG4bK7de4.ed7d9ff3.0,SIP/2.0/UDP 192.168.0.74:5068;rport=5068;received=81.21.34.34 ;branch=z9hG4bK1be8ffffc8ecffff. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35;tag=7D687D1C-202E. Date: Tue, 20 Jun 2006 09:56:36 GMT. Call-ID: 9ad9ffff49050000@192.168.0.74. Server: Cisco-SIPGateway/IOS-12.x. CSeq: 46533 INVITE. Allow-Events: telephone-event. Content-Length: 0. .
# U 81.21.33.35:5060 -> 81.21.38.21:5060 ACK sip:22485400@81.21.38.21 SIP/2.0. Via: SIP/2.0/UDP 81.21.33.35;branch=z9hG4bK7de4.ed7d9ff3.0. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. Call-ID: 9ad9ffff49050000@192.168.0.74. To: sip:22485400@81.21.33.35;tag=7D687D1C-202E. CSeq: 46533 ACK. Content-Length: 0. .
# U 81.21.33.35:5060 -> 81.21.34.34:5068 SIP/2.0 500 Internal Server Error. Via: SIP/2.0/UDP 192.168.0.74:5068;rport=5068;received=81.21.34.34 ;branch=z9hG4bK1be8ffffc8ecffff. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35;tag=7D687D1C-202E. Date: Tue, 20 Jun 2006 09:56:36 GMT. Call-ID: 9ad9ffff49050000@192.168.0.74. Server: Cisco-SIPGateway/IOS-12.x. CSeq: 46533 INVITE. Allow-Events: telephone-event. Content-Length: 0. .
# U 81.21.34.34:5068 -> 81.21.33.35:5060 ACK sip:22485400@81.21.33.35 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.74:5068;branch=z9hG4bK1be8ffffc8ecffff. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35;tag=7D687D1C-202E. Contact: sip:32331001@192.168.0.74:5068. Proxy-Authorization: Digest username="32331001", realm="81.21.33.35", algorithm=MD5, uri="sip:22485400@81.21.33.35", nonce="4497c732a5a6f0ff3fb62bd9ac4561a02e4975c9", response="e09e9b23688cc3847829da66fe1fc145". Call-ID: 9ad9ffff49050000@192.168.0.74. CSeq: 46533 ACK. User-Agent: Grandstream HT496 1.0.2.16. Max-Forwards: 70. Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE. Content-Length: 0. .
# U 81.21.33.35:5060 -> 81.21.34.34:5068 SIP/2.0 500 Internal Server Error. Via: SIP/2.0/UDP 192.168.0.74:5068;rport=5068;received=81.21.34.34 ;branch=z9hG4bK1be8ffffc8ecffff. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35;tag=7D687D1C-202E. Date: Tue, 20 Jun 2006 09:56:36 GMT. Call-ID: 9ad9ffff49050000@192.168.0.74. Server: Cisco-SIPGateway/IOS-12.x. CSeq: 46533 INVITE. Allow-Events: telephone-event. Content-Length: 0. .
# U 81.21.33.35:5060 -> 81.21.34.34:5068 SIP/2.0 500 Internal Server Error. Via: SIP/2.0/UDP 192.168.0.74:5068;rport=5068;received=81.21.34.34 ;branch=z9hG4bK1be8ffffc8ecffff. From: "ravi" sip:32331001@81.21.33.35;tag=26b000000d350000. To: sip:22485400@81.21.33.35;tag=7D687D1C-202E. Date: Tue, 20 Jun 2006 09:56:36 GMT. Call-ID: 9ad9ffff49050000@192.168.0.74. Server: Cisco-SIPGateway/IOS-12.x. CSeq: 46533 INVITE. Allow-Events: telephone-event. Content-Length: 0.
I hope you guys will help in this issue
Thanks in Advance.
Regards' Ravi