On Tue, 18 Nov 2003, Nils Ohlmeier wrote:
Hi,
On Tuesday 18 November 2003 22:54, radan wrote:
I don't know that is a ser problem but I cannot make a call from ATA-186 ( with analog phone) to PSTN phone via my gateway. I receive 400 Bad Request - Invalid IP address If I call to IP everything is ok.
I don't have this proble when I call from softphone like kphone to PSTN phone.
please make network dumps, e.g. with ngrep, to find the error source. If you are not able to find the error yourself, send the network dumps to us for review.
I know probably what is wrong but i cannot solve it yet If I make a call from Messenger i have only one INVITE directly from SER to gateway.
If I make call form ATA I have two invites One from ATA to ser and second from ser to gateway
in ser.cfg i send special prefixes directly to GW
if (uri=~"sip:58[1-2]([0-9]){3}(@(a.gda.pl|192.68.19.200.200)?)" && !(src_ip==192.68.252.248/32)) { addRecordRoute(); rewriteFromRoute(); # strip(2); setflag(1); if (!t_relay_to_udp("192.68.252.248", "5060")) { sl_reply_error();
Below ngrep for ATA - doesn't work SER - 192.68.200.200 ATA - 192.68.0.83 GW - 192.68.252.248
U 192.68.0.83:5060 -> 192.68.200.200:5060 INVITE sip:581077@192.68.200.200;user=phone SIP/2.0..Via: SIP/2.0/UDP 192.68.0.83:5060..From: sip:3100@192.68.251.240;user=phone;tag=32426929..To: sip:581077@192.68.200.200;user=phone..Call-ID: 2776449328@192.68.0.83..CSeq: 1 INVITE..Contact: sip:3100@192.68.0.83:5060;user=phone;transport=udp..User-Agent: Cisco ATA 186 v2.16.1 ata18x (030709a).. Expires: 300..Content-Length: 247..Content-Type: application/sdp....v=0..o=3100 124553 124553 IN IP4 192.68.0.83..s= ATA186 Call..c=IN IP4 192.68.0.83..t=0 0..m=audio 16384 RTP/AVP 0 4 8 101..a=rtpmap:0 PCMU/8000/1..a=rtpmap:4 G723/8000/1..a=rtpmap:8 PCMA/8000/1..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15.. # U 192.68.200.200:5060 -> 192.68.252.248:5060 INVITE sip:581077@192.68.200.200;user=phone SIP/2.0.. Record-Route: sip:581077@192.68.200.200;branch=0.. Via: SIP/2.0/UDP 192.68.200.200;branch=z9hG4bK7682.86ed6384.0.. Via: SIP/2.0/UDP 192.68.0.83:5060.. From: sip:3100@192.68.251.240;user=phone;tag=32426929.. To: sip:581077@192.68.200.200;user=phone..Call-ID: 2776449328@192.68.0.83.. CSeq: 1 INVITE.. Contact: sip:3100@192.68.0.83:5060;user=phone;transport=udp.. User-Agent: Cisco ATA 186 v2.16.1 ata18x (030709a).. Expires: 300..Content-Length: 247.. Content-Type: application/sdp.... v=0..o=3100 124553 124553 IN IP4 192.68.0.83.. s=ATA186 Call.. c=IN IP4 192.68.0.83.. t=0 0.. m=audio 16384 RTP/AVP 0 4 8 101.. a=rtpmap:0 PCMU/8000/1.. a=rtpmap:4 G723/8000/1.. a=rtpmap:8 PCMA/8000/1..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15.. # U 192.68.252.248:5060 -> 192.68.200.200:5060 SIP/2.0 400 Bad Request - 'Invalid IP Address'.. Via: SIP/2.0/UDP 192.68.200.200;branch=z9hG4bK7682.86ed6384.0,SIP/2.0/UDP 192.68.0.83:5060.. From: sip:3100@192.68.200.200;user=phone;tag=32426929.. To: sip:581077@192.68.200.200;user=phone.. Date: Tue, 18 Nov 2003 22:30:41 GMT..Call-ID: 2776449328@192.68.0.83.. Server: Cisco-SIPGateway/IOS-12.x.. CS
And working version from Messenger
U 192.68.200.200:5060 -> 192.68.252.248:5060 INVITE sip:581077@a.gda.pl SIP/2.0.. Record-Route: sip:581077@192.68.200.200;branch=0.. Via: SIP/2.0/UDP 192.68.200.200;branch=z9hG4bK496b.d55143d5.0.. Via: SIP/2.0/UDP 192.68.0.85:16739.. From: "anji" sip:anji@a.gda.pl;tag=13eb9483-1a0e-11d8-8b8e-00a0240234c9.. To: sip:581077@a.gda.pl.. Call-ID: 13eb9484-1a0e-11d8-8b8e-00a0240234c9@192.68.0.85.. CSeq: 1 INVITE.. Contact : sip:192.68.0.85:16739.. User-Agent: Windows RTC/1.0..Content-Type: application/sdp.. Content-Length: 263.... v=0.. o=user 00 IN IP4 192.68.0.85.. s=session..c=IN IP4 192.68.0.85.. b=CT:1000.. t=0 0.. m=audio 11248 RTP/AVP 97 0 8 4 101.. a=rtpmap:97 red/8000.. a=rtpmap:0 PCMU/8000.. a=rtpmap:8 PCMA/8000.. a=rtpmap:4 G723/8000.. a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-16. . # U 192.68.252.248:5060 -> 192.68.200.200:5060 SIP/2.0 100 Trying..Via: SIP/2.0/UDP 192.68.200.200;branch=z9hG4bK496b.d55143d5.0,SIP/2.0/UDP 192.68.0.85:16739..From: "anji" sip:anji@a.gda.pl;tag=13eb9483-1a0e-11d8-8b8e-00a0240234c9.. To: sip:581077@a.gda.pl;tag=B0746E68-1ECE.. Date: Tue, 18Nov 2003 23:16:55 GMT..Call-ID: 13eb9484-1a0e-11d8-8b8e-00a0240234c9@192.68.0.85.. Server: Cisco-SIPGateway/IOS-12.x..CSeq: 1 INVITE..Allow-Events: telephone-event..Content-Length: 0....
Regards Andrzej