[OpenSER-Users] 答复: how to configure to support PRACK

Steven.Wu at teleca.com Steven.Wu at teleca.com
Wed Jun 4 04:32:43 CEST 2008


Hi I?aki,
 
At first, I repied the PRACK without Route header but contian the to tag.
I added the Route header after receive your opinion. But also failed.
I attached my SIP message, could you please take a look them and give me some suggestion?
Thank you!
 
Best regards,
Steven Wu
 
UDP Data send to: 10.57.39.120:5060
INVITE sip:1141 at 10.57.39.120 SIP/2.0
Via: SIP/2.0/UDP 10.57.39.33:5060
From: sip:6846 at 10.57.39.120;tag=032baj647
To: sip:1141 at 10.57.39.120
Call-ID: asdbasdb3-asdb552
CSeq: 899 INVITE
Contact: sip:6846 at 10.57.39.33
Max-Forwards: 70
Content-Type: application/sdp
Expires: 180
Accept-Contact: *;+mckoppa
Supported: precondition, 100Rel
Require: precondition
Content-Length: 392
v=0
o=Inviter2007 63241204263093750 132223800 IN IP4 10.57.39.33
s=-
c=IN IP4 10.57.39.33
t=0 0
m=audio 5000 RTP/AVP 106 8 0
a=sendrecv
a=rtpmap:106 AMR/8000
a=ptime:160
a=maxptime:200
a=fmtp:106 octet-align=1; mode-set=7
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=curr:qos local none
a=curr:qos remote none
a=des:qos mandatory local sendrecv
a=des:qos none remote sendrecv
 
UDP Data received from: 10.57.39.120:5060
SIP/2.0 183 Session Progress
Record-Route: <sip:10.57.39.120;lr=on>
Via: SIP/2.0/UDP 10.57.39.33:5060
Require: 100Rel
To: <sip:1141 at 10.57.39.120>;tag=53m9f85odqq1uld83vs6
Contact: <sip:0y9N9S0dFpYtlSrLGwwF at 10.57.39.114>
From: <sip:6846 at 10.57.39.120>;tag=032baj647
Supported: 100Rel,precondition
RSeq: 2956138
Call-ID: asdbasdb3-asdb552
CSeq: 899 INVITE
Allow: UPDATE,PRACK,SUBSCRIBE,REFER,NOTIFY,INVITE,ACK,CANCEL,OPTIONS,BYE
Content-Type: application/sdp
Content-Length: 465
v=0
o=1141 63380817057795000 63380817057795000 IN IP4 10.57.39.114
s=-
c=IN IP4 10.57.39.114
t=0 0
m=audio 5000 RTP/AVP 106 8 0
a=sendrecv
a=curr:qos local sendrecv
a=curr:qos remote none
a=des:qos mandatory local sendrecv
a=des:qos mandatory remote sendrecv
a=conf:qos remote sendrecv
a=rtcp:5001 IN IP4 10.57.39.114
a=rtpmap:106 AMR/8000
a=ptime:160
a=maxptime:200
a=fmtp:106 octet-align=1; mode-set=7
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
 
 
UDP Data send to: 10.57.39.120:5060
PRACK sip:1141 at 10.57.39.120 SIP/2.0
Via: SIP/2.0/UDP 10.57.39.33:5060
From: sip:6846 at 10.57.39.120;tag=032baj647
To: sip:1141 at 10.57.39.120;tag=53m9f85odqq1uld83vs6
Call-ID: asdbasdb3-asdb552
CSeq: 89951 PRACK
Contact: sip:6846 at 10.57.39.33
Max-Forwards: 70
Route: <sip:10.57.39.120;lr=on>
Content-Type: application/sdp
Expires: 180
Accept-Contact: *;+mckoppa
Supported: precondition, 100Rel
Require: precondition
RAck:2956138 899 INVITE
Content-Length: 278
v=0
o=Inviter2007 63241204263093750 132223801 IN IP4 10.57.39.33
s=-
c=IN IP4 10.57.39.33
t=0 0
m=audio 5000 RTP/AVP 106
a=rtpmap:106 AMR/8000
a=curr:qos local sendrecv
a=curr:qos remote sendrecv
a=des:qos mandatory local sendrecv
a=des:qos mandatory remote sendrecv
 
 
If added a route rule 'if ( is_method("PRACK") ) { t_relay(); exit;} ' , I'll receive the 483 response.
Otherwise, receive 404 Not here

UDP Data received from: 10.57.39.120:5060
SIP/2.0 483 Too Many Hops
Via: SIP/2.0/UDP 10.57.39.33:5060
From: sip:6846 at 10.57.39.120;tag=032baj647
To: sip:1141 at 10.57.39.120;tag=53m9f85odqq1uld83vs6
Call-ID: asdbasdb3-asdb552
CSeq: 89951 PRACK
Server: OpenSER (1.3.1-notls (i386/linux))
Content-Length: 0

________________________________

From: users-bounces at lists.openser.org 代表 I?aki Baz Castillo
Sent: 2008-6-3 (星期二) 17:26
To: users at lists.openser.org
Subject: Re: [OpenSER-Users] how to configure to support PRACK



El Tuesday 03 June 2008 11:02:39 Steven Wu escribi:
> Hi All,
>
> Could someone tell me how to config openser 1.3.x route to support PRACK?

OpenSer doesn't need to do nothing to support PRACK (they are the endpoints
who support it or not).
PRACK is an in-dialog request, just it.

I suppose that the 183 OpenSer forwards to UAC contains a Record-Route added
by OpenSer in the INVITE, so the PRACK must contain a Route header and also
the To tag received in the 183. Then "has_totag" and "loose_route" return
true so a simple t_relay must work.

Nothing special must be done, I sure it by experience.

Regards.

--
Iaki Baz Castillo
ibc at in.ilimit.es

_______________________________________________
Users mailing list
Users at lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080604/8b80ceaa/attachment.htm>


More information about the sr-users mailing list