Hi,
Until now my ser was working fine with pstn gateway and everything.
Then I added session timer code, then removed it. After that calls to pstn
are getting a
BAD REQUEST by the gateway, as per the following ngrep output.
But from X-Ten phone, the calls are fine.
--
#
U x.x.x.112:5060 -> x.x.x.100:5060
INVITE sip:011919899518291@x.x.x.100 SIP/2.0.
Record-Route: <sip:x.x.x.112;ftag=6666f47f;lr=on>.
Via: SIP/2.0/UDP x.x.x.112;branch=z9hG4bKe7d7.61cc1fd5.0.
Via: SIP/2.0/UDP
127.0.0.1:5062;received=61.16.236.34;branch=z9hG4bKnp1718443690-48380229127.
0.0.1;rport=23943.
From: "ashu" <sip:satya@x.x.x.112>;tag=6666f47f.
To: <sip:011919899518291@x.x.x.112>.
Call-ID: 1718023321-4700bac4(a)127.0.0.1.
CSeq: 1 INVITE.
User-Agent: Nero SIPPS IP Phone Version 2.0.51.16.
Expires: 120.
Accept: application/sdp.
Content-Type: application/sdp.
Content-Length: 271.
Contact: <sip:satya@a.b.c.d:23943>.
Max-Forwards: 16.
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, INFO.
.
v=0.
o=SIPPS 1718024970 1718024973 IN IP4 0.0.0.0.
s=SIP call NPC0.
c=IN IP4 0.0.0.0.
t=0 0.
m=audio 30000 RTP/AVP 0 8 97 2 3.
a=rtpmap:0 pcmu/8000.
a=rtpmap:8 pcma/8000.
a=rtpmap:97 iLBC/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:3 GSM/8000.
a=fmtp:97 mode=20.
a=sendrecv.
#
U x.x.x.100:5060 -> x.x.x.112:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP x.x.x.112;branch=z9hG4bKe7d7.61cc1fd5.0.
Via: SIP/2.0/UDP
127.0.0.1:5062;received=61.16.236.34;branch=z9hG4bKnp1718443690-48380229127.
0.0.1;rport=23943.
From: "ashu" <sip:satya@x.x.x.112>;tag=6666f47f.
To: <sip:011919899518291@x.x.x.112>.
Call-ID: 1718023321-4700bac4(a)127.0.0.1.
CSeq: 1 INVITE.
Content-Length: 0.
.
#
U x.x.x.100:5060 -> x.x.x.112:5060
SIP/2.0 400 Bad Request.
To: <sip:011919899518291@x.x.x.112>;tag=3335618647-158732.
From: "ashu" <sip:satya@x.x.x.112>;tag=6666f47f.
Call-ID: 1718023321-4700bac4(a)127.0.0.1.
CSeq: 1 INVITE.
Contact: sip:011919899518291@x.x.x.100:5060.
Via: SIP/2.0/UDP x.x.x.112;branch=z9hG4bKe7d7.61cc1fd5.0.
Via: SIP/2.0/UDP
127.0.0.1:5062;received=61.16.236.34;branch=z9hG4bKnp1718443690-48380229127.
0.0.1;rport=23943.
Content-Length: 0.
Regards,
Ashutosh Kumar
Chetu, Inc.