[Serusers] Sending a request to a pstn gateway

Olivier Taylor olivier.taylor at gmail.com
Fri Apr 15 14:46:29 CEST 2005


I reach the provider with ser and IP connection.

Here is a negrep of that connection.


U 81.242.220.26:5060 -> 82.146.123.252:5060
  INVITE sip:027321073 at finalcut.be SIP/2.0..Via: SIP/2.0/UDP
192.168.2.102:5060;branch=z9hG4bK-11df973c..From: 1234
<sip:1234 at finalcut.be>;tag=9971fdc549224154o0..To: <sip:02
  7321073 at finalcut.be>..Call-ID: 64a23759-cbbb34d0 at 192.168.2.102..CSeq: 101
INVITE..Max-Forwards: 70..Contact: 1234
<sip:1234 at 192.168.2.102:5060>..Expires: 240..User-Agent: S
  ipura/SPA2000-2.0.10(e)..Content-Length: 426..Allow: ACK, BYE, CANCEL,
INFO, INVITE, NOTIFY, OPTIONS, REFER..Supported: x-sipura..Content-Type:
application/sdp....v=0..o=-
  2292182 2292182 IN IP4 192.168.2.102..s=-..c=IN IP4 192.168.2.102..t=0
0..m=audio 16394 RTP/AVP 18 0 2 4 8 96 97 98 100 101..a=rtpmap:18
G729a/8000..a=rtpmap:0 PCMU/8000..a
  =rtpmap:2 G726-32/8000..a=rtpmap:4 G723/8000..a=rtpmap:8
PCMA/8000..a=rtpmap:96 G726-40/8000..a=rtpmap:97 G726-24/8000..a=rtpmap:98
G726-16/8000..a=rtpmap:100 NSE/8000..a=r
  tpmap:101 telephone-event/8000..a=fmtp:101 0-15..a=ptime:30..a=sendrecv..
#
U 82.146.123.252:5060 -> 81.242.220.26:5060
  SIP/2.0 100 trying -- your call is important to us..Via: SIP/2.0/UDP
192.168.2.102:5060;branch=z9hG4bK-11df973c;rport=5060;received=81.242.220.26
..From: 1234 <sip:1234 at fina
  lcut.be>;tag=9971fdc549224154o0..To: <sip:027321073 at finalcut.be>..Call-ID:
64a23759-cbbb34d0 at 192.168.2.102..CSeq: 101 INVITE..Server: Sip EXpress
router (0.8.14-5 (i386/lin
  ux))..Content-Length: 0..Warning: 392 82.146.123.252:5060 "Noisy feedback
tells:  pid=23462 req_src_ip=81.242.220.26 req_src_port=5060
in_uri=sip:027321073 at finalcut.be out_
  uri=sip:3227321073 at 217.206.202.126:5060 via_cnt==1"....
#
U 82.146.123.252:5060 -> 217.206.202.126:5060
  INVITE sip:3227321073 at 217.206.202.126:5060 SIP/2.0..Record-Route:
<sip:027321073 at 82.146.123.252;ftag=9971fdc549224154o0;lr=on>..Via:
SIP/2.0/UDP 82.146.123.252;branch=z9hG4
  bK4cba.41e69516.0..Via: SIP/2.0/UDP
192.168.2.102:5060;rport=5060;received=81.242.220.26;branch=z9hG4bK-11df973c
..From: 1234 <sip:1234 at finalcut.be>;tag=9971fdc549224154o0..
  To: <sip:027321073 at finalcut.be>..Call-ID:
64a23759-cbbb34d0 at 192.168.2.102..CSeq: 101 INVITE..Max-Forwards:
69..Contact: 1234 <sip:1234 at 81.242.220.26:5060>..Expires: 240..Us
  er-Agent: Sipura/SPA2000-2.0.10(e)..Content-Length: 465..Allow: ACK, BYE,
CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER..Supported:
x-sipura..Content-Type: application/sdp..
  ..v=0..o=- 2292182 2292182 IN IP4 192.168.2.102..s=-..c=IN IP4
82.146.123.252..t=0 0..m=audio 35174 RTP/AVP 18 0 2 4 8 96 97 98 100
101..a=rtpmap:18 G729a/8000..a=rtpmap:0
  PCMU/8000..a=rtpmap:2 G726-32/8000..a=rtpmap:4 G723/8000..a=rtpmap:8
PCMA/8000..a=rtpmap:96 G726-40/8000..a=rtpmap:97 G726-24/8000..a=rtpmap:98
G726-16/8000..a=rtpmap:100 N
  SE/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:101
0-15..a=ptime:30..a=sendrecv..a=direction:active..a=nortpproxy:yes..
#
U 217.206.202.126:5060 -> 82.146.123.252:5060
  SIP/2.0 503 ..CSeq: 101 INVITE..Via: SIP/2.0/UDP
82.146.123.252;branch=z9hG4bK4cba.41e69516.0..Via: SIP/2.0/UDP
192.168.2.102:5060;rport=5060;received=81.242.220.26;branch=
  z9hG4bK-11df973c..From: 1234
<sip:1234 at finalcut.be>;tag=9971fdc549224154o0..Call-ID:
64a23759-cbbb34d0 at 192.168.2.102..To: <sip:027321073 at finalcut.be>..Contact:
<sip:217.206
  .202.126:5060;user=phone;transport=udp>..Content-Length: 0....
#
U 82.146.123.252:5060 -> 217.206.202.126:5060
  ACK sip:3227321073 at 217.206.202.126:5060 SIP/2.0..Via: SIP/2.0/UDP
82.146.123.252;branch=z9hG4bK4cba.41e69516.0..From: 1234
<sip:1234 at finalcut.be>;tag=9971fdc549224154o0..Ca
  ll-ID: 64a23759-cbbb34d0 at 192.168.2.102..To:
<sip:027321073 at finalcut.be>..CSeq: 101 ACK..User-Agent: Sip EXpress
router(0.8.14-5 (i386/linux))..Content-Length: 0....
#
U 82.146.123.252:5060 -> 81.242.220.26:5060
  SIP/2.0 503 ..CSeq: 101 INVITE..Via: SIP/2.0/UDP
192.168.2.102:5060;rport=5060;received=81.242.220.26;branch=z9hG4bK-11df973c
..From: 1234 <sip:1234 at finalcut.be>;tag=9971fdc
  549224154o0..Call-ID: 64a23759-cbbb34d0 at 192.168.2.102..To:
<sip:027321073 at finalcut.be>..Contact:
<sip:217.206.202.126:5060;user=phone;transport=udp>..Content-Length: 0....
#
U 81.242.220.26:5060 -> 82.146.123.252:5060
  ACK sip:027321073 at finalcut.be SIP/2.0..Via: SIP/2.0/UDP
192.168.2.102:5060;branch=z9hG4bK-11df973c..From: 1234
<sip:1234 at finalcut.be>;tag=9971fdc549224154o0..To: <sip:02732
  1073 at finalcut.be>..Call-ID: 64a23759-cbbb34d0 at 192.168.2.102..CSeq: 101
ACK..Max-Forwards: 70..Contact: 1234
<sip:1234 at 192.168.2.102:5060>..User-Agent: Sipura/SPA2000-2.0.10
  (e)..Content-Length: 0....



And another ngrep when I call with the international prefix from my phone.


U 81.242.220.26:5060 -> 82.146.123.252:5060
  INVITE sip:3227321073 at finalcut.be SIP/2.0..Via: SIP/2.0/UDP
192.168.2.102:5060;branch=z9hG4bK-3c332fc7..From: 1234
<sip:1234 at finalcut.be>;tag=bf3a4c601f2b9f5fo0..To: <sip:3
  227321073 at finalcut.be>..Call-ID: 394e7d34-2bf049b at 192.168.2.102..CSeq: 101
INVITE..Max-Forwards: 70..Contact: 1234
<sip:1234 at 192.168.2.102:5060>..Expires: 240..User-Agent:
  Sipura/SPA2000-2.0.10(e)..Content-Length: 426..Allow: ACK, BYE, CANCEL,
INFO, INVITE, NOTIFY, OPTIONS, REFER..Supported: x-sipura..Content-Type:
application/sdp....v=0..o=-
   2313664 2313664 IN IP4 192.168.2.102..s=-..c=IN IP4 192.168.2.102..t=0
0..m=audio 16396 RTP/AVP 18 0 2 4 8 96 97 98 100 101..a=rtpmap:18
G729a/8000..a=rtpmap:0 PCMU/8000..
  a=rtpmap:2 G726-32/8000..a=rtpmap:4 G723/8000..a=rtpmap:8
PCMA/8000..a=rtpmap:96 G726-40/8000..a=rtpmap:97 G726-24/8000..a=rtpmap:98
G726-16/8000..a=rtpmap:100 NSE/8000..a=
  rtpmap:101 telephone-event/8000..a=fmtp:101 0-15..a=ptime:30..a=sendrecv..
#
U 82.146.123.252:5060 -> 81.242.220.26:5060
  SIP/2.0 100 trying -- your call is important to us..Via: SIP/2.0/UDP
192.168.2.102:5060;branch=z9hG4bK-3c332fc7;rport=5060;received=81.242.220.26
..From: 1234 <sip:1234 at fina
  lcut.be>;tag=bf3a4c601f2b9f5fo0..To:
<sip:3227321073 at finalcut.be>..Call-ID: 394e7d34-2bf049b at 192.168.2.102..CSeq:
101 INVITE..Server: Sip EXpress router (0.8.14-5 (i386/lin
  ux))..Content-Length: 0..Warning: 392 82.146.123.252:5060 "Noisy feedback
tells:  pid=23467 req_src_ip=81.242.220.26 req_src_port=5060
in_uri=sip:3227321073 at finalcut.be out
  _uri=sip:3227321073 at 217.206.202.126:5060 via_cnt==1"....
#
U 82.146.123.252:5060 -> 217.206.202.126:5060
  INVITE sip:3227321073 at 217.206.202.126:5060 SIP/2.0..Record-Route:
<sip:3227321073 at 82.146.123.252;ftag=bf3a4c601f2b9f5fo0;lr=on>..Via:
SIP/2.0/UDP 82.146.123.252;branch=z9hG
  4bK32e8.edbb1c75.0..Via: SIP/2.0/UDP
192.168.2.102:5060;rport=5060;received=81.242.220.26;branch=z9hG4bK-3c332fc7
..From: 1234 <sip:1234 at finalcut.be>;tag=bf3a4c601f2b9f5fo0.
  .To: <sip:3227321073 at finalcut.be>..Call-ID:
394e7d34-2bf049b at 192.168.2.102..CSeq: 101 INVITE..Max-Forwards: 69..Contact:
1234 <sip:1234 at 81.242.220.26:5060>..Expires: 240..U
  ser-Agent: Sipura/SPA2000-2.0.10(e)..Content-Length: 465..Allow: ACK, BYE,
CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER..Supported:
x-sipura..Content-Type: application/sdp.
  ...v=0..o=- 2313664 2313664 IN IP4 192.168.2.102..s=-..c=IN IP4
82.146.123.252..t=0 0..m=audio 35176 RTP/AVP 18 0 2 4 8 96 97 98 100
101..a=rtpmap:18 G729a/8000..a=rtpmap:0
   PCMU/8000..a=rtpmap:2 G726-32/8000..a=rtpmap:4 G723/8000..a=rtpmap:8
PCMA/8000..a=rtpmap:96 G726-40/8000..a=rtpmap:97 G726-24/8000..a=rtpmap:98
G726-16/8000..a=rtpmap:100
  NSE/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:101
0-15..a=ptime:30..a=sendrecv..a=direction:active..a=nortpproxy:yes..
#
U 217.206.202.126:5060 -> 82.146.123.252:5060
  SIP/2.0 100 Trying..CSeq: 101 INVITE..Via: SIP/2.0/UDP
82.146.123.252;branch=z9hG4bK32e8.edbb1c75.0..Via: SIP/2.0/UDP
192.168.2.102:5060;rport=5060;received=81.242.220.26;b
  ranch=z9hG4bK-3c332fc7..From: 1234
<sip:1234 at finalcut.be>;tag=bf3a4c601f2b9f5fo0..Call-ID:
394e7d34-2bf049b at 192.168.2.102..To:
<sip:3227321073 at finalcut.be>;tag=150444051311
  .211811880..Contact:
<sip:217.206.202.126:5060;user=phone;transport=udp>..Content-Length: 0....
#
U 212.76.247.158:5060 -> 82.146.123.252:5060
  ..
#
U 217.206.202.126:5060 -> 82.146.123.252:5060
  SIP/2.0 180 Ringing..CSeq: 101 INVITE..Via: SIP/2.0/UDP
82.146.123.252;branch=z9hG4bK32e8.edbb1c75.0..Via: SIP/2.0/UDP
192.168.2.102:5060;rport=5060;received=81.242.220.26;
  branch=z9hG4bK-3c332fc7..From: 1234
<sip:1234 at finalcut.be>;tag=bf3a4c601f2b9f5fo0..Call-ID:
394e7d34-2bf049b at 192.168.2.102..To:
<sip:3227321073 at finalcut.be>;tag=15044405131
  1.211811880..Contact:
<sip:217.206.202.126:5060;user=phone;transport=udp>..Content-Length: 0....
#
U 82.146.123.252:5060 -> 81.242.220.26:5060
  SIP/2.0 180 Ringing..CSeq: 101 INVITE..Via: SIP/2.0/UDP
192.168.2.102:5060;rport=5060;received=81.242.220.26;branch=z9hG4bK-3c332fc7
..From: 1234 <sip:1234 at finalcut.be>;tag=
  bf3a4c601f2b9f5fo0..Call-ID: 394e7d34-2bf049b at 192.168.2.102..To:
<sip:3227321073 at finalcut.be>;tag=150444051311.211811880..Contact:
<sip:217.206.202.126:5060;user=phone;tran
  sport=udp>..Content-Length: 0....

-----Message d'origine-----
De : Steve Blair [mailto:blairs at isc.upenn.edu] 
Envoyé : vendredi 15 avril 2005 13:54
À : Olivier Taylor
Cc : serusers at lists.iptel.org
Objet : Re: RE : [Serusers] Sending a request to a pstn gateway



   I would not recommend re-writing the To: field. As for your provider 
I cannot
say. Are you reaching this provider via a PSTN gateway you operate or via an
IP connection?  Do your proxy logs show any information that is helpful?

Olivier Taylor wrote:

>Thx for that answer, but I still don't understand.
>
>Is there a way to rewrite the 'to'?
>Or
>The problem is with my provider?
>
>Thx
>
>Olivier
>
>-----Message d'origine-----
>De : Steve Blair [mailto:blairs at isc.upenn.edu]
>Envoyé : vendredi 15 avril 2005 13:02
>À : Olivier Taylor
>Cc : serusers at lists.iptel.org
>Objet : Re: [Serusers] Sending a request to a pstn gateway
>
>
>
>   The R-URI should be used for forwarding decisions and as you said it 
>is correct.
>
>
>Olivier Taylor wrote:
>
>  
>
>>I wanna call a local number, let's say 021234567
>>It's local, the i strip the 0 and prefix with the internationnal code 
>>I
>>have now 3221234567
>>
>>I send an ivite and i have :
>>
>>INVITE sip:3227321073 at 217.206.202.126:5060 SIP/2.0..Record-Route:
>><sip:027321073 at 82.146.123.252;ftag=965c1d6b89e086b6o0;lr=on>..Via:
>>SIP/2.0/UDP 82.146.123.252;branch=z9hG4
>> bK50fe.07713b03.0..Via: SIP/2.0/UDP
>>192.168.2.102:5060;rport=5060;received=81.242.220.26;branch=z9hG4bK-e3b
>>5a83e
>>..From: 1234 <sip:1234 at finalcut.be>;tag=965c1d6b89e086b6o0..
>> To: <sip:027321073 at finalcut.be>..Call-ID:
>>78d3c74f-3df84622 at 192.168.2.102..CSeq: 101 INVITE..Max-Forwards:
>>69..Contact: 1234 <sip:1234 at 81.242.220.26:5060>..Expires: 240..Us
>> er-Agent: Sipura/SPA2000-2.0.10(e)..Content-Length: 465..Allow: ACK, BYE,
>>CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER..Supported:
>>x-sipura..Content-Type: application/sdp..
>> ..v=0..o=- 1591974 1591974 IN IP4 192.168.2.102..s=-..c=IN IP4
>>82.146.123.252..t=0 0..m=audio 35168 RTP/AVP 18 0 2 4 8 96 97 98 100
>>101..a=rtpmap:18 G729a/8000..a=rtpmap:0
>> PCMU/8000..a=rtpmap:2 G726-32/8000..a=rtpmap:4 G723/8000..a=rtpmap:8
>>PCMA/8000..a=rtpmap:96 G726-40/8000..a=rtpmap:97 G726-24/8000..a=rtpmap:98
>>G726-16/8000..a=rtpmap:100 N
>> SE/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:101
>>0-15..a=ptime:30..a=sendrecv..a=direction:active..a=nortpproxy:yes..
>>
>>The invite is ok, but the 'To' is 027321073
>>
>>Is there a way to modiy the 'To' also?
>>
>>Or the problem is with my pstn provider??
>>
>>Thanks
>>
>>Olivier
>>
>>_______________________________________________
>>Serusers mailing list
>>serusers at lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
>> 
>>
>>    
>>
>
>  
>

-- 
  
ISC Network Engineering
The University of Pennsylvania
3401 Walnut Street, Suite 221A
Philadelphia, PA 19104  


voice: 215-573-8396 

       215-746-8001

fax: 215-898-9348    

sip:blairs at upenn.edu




More information about the sr-users mailing list