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