<HTML dir=ltr><HEAD><TITLE>Re: [OpenSER-Users] how to configure to support PRACK</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText27628 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi <FONT face=宋体>I&#241;aki</FONT>,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>At first, I repied the PRACK without Route header but contian the to tag.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I added the Route header after receive your opinion. But also failed.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I attached my SIP message, could you please take a look them and give me some suggestion?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Thank you!</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Best regards,</FONT></DIV></DIV>
<DIV id=idSignature75717 dir=ltr>
<DIV><FONT face=Arial size=2>Steven Wu</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>UDP Data send to: 10.57.39.120:5060</FONT><BR>INVITE sip:1141@10.57.39.120 SIP/2.0<BR>Via: SIP/2.0/UDP 10.57.39.33:5060<BR>From: sip:6846@10.57.39.120;tag=032baj647<BR>To: sip:1141@10.57.39.120<BR>Call-ID: asdbasdb3-asdb552<BR>CSeq: 899 INVITE<BR>Contact: sip:6846@10.57.39.33<BR>Max-Forwards: 70<BR>Content-Type: application/sdp<BR>Expires: 180<BR>Accept-Contact: *;+mckoppa<BR>Supported: precondition, 100Rel<BR>Require: precondition<BR>Content-Length: 392</DIV>
<DIV>v=0<BR>o=Inviter2007 63241204263093750 132223800 IN IP4 10.57.39.33<BR>s=-<BR>c=IN IP4 10.57.39.33<BR>t=0 0<BR>m=audio 5000 RTP/AVP 106 8 0<BR>a=sendrecv<BR>a=rtpmap:106 AMR/8000<BR>a=ptime:160<BR>a=maxptime:200<BR>a=fmtp:106 octet-align=1; mode-set=7<BR>a=rtpmap:8 PCMA/8000<BR>a=rtpmap:0 PCMU/8000<BR>a=curr:qos local none<BR>a=curr:qos remote none<BR>a=des:qos mandatory local sendrecv<BR>a=des:qos none remote sendrecv</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff>UDP Data received from: 10.57.39.120:5060</FONT><BR>SIP/2.0 183 Session Progress<BR>Record-Route: &lt;sip:10.57.39.120;lr=on&gt;<BR>Via: SIP/2.0/UDP 10.57.39.33:5060<BR>Require: 100Rel<BR>To: &lt;sip:1141@10.57.39.120&gt;;tag=53m9f85odqq1uld83vs6<BR>Contact: &lt;sip:0y9N9S0dFpYtlSrLGwwF@10.57.39.114&gt;<BR>From: &lt;sip:6846@10.57.39.120&gt;;tag=032baj647<BR>Supported: 100Rel,precondition<BR>RSeq: 2956138<BR>Call-ID: asdbasdb3-asdb552<BR>CSeq: 899 INVITE<BR>Allow: UPDATE,PRACK,SUBSCRIBE,REFER,NOTIFY,INVITE,ACK,CANCEL,OPTIONS,BYE<BR>Content-Type: application/sdp<BR>Content-Length: 465</DIV>
<DIV>v=0<BR>o=1141 63380817057795000 63380817057795000 IN IP4 10.57.39.114<BR>s=-<BR>c=IN IP4 10.57.39.114<BR>t=0 0<BR>m=audio 5000 RTP/AVP 106 8 0<BR>a=sendrecv<BR>a=curr:qos local sendrecv<BR>a=curr:qos remote none<BR>a=des:qos mandatory local sendrecv<BR>a=des:qos mandatory remote sendrecv<BR>a=conf:qos remote sendrecv<BR>a=rtcp:5001 IN IP4 10.57.39.114<BR>a=rtpmap:106 AMR/8000<BR>a=ptime:160<BR>a=maxptime:200<BR>a=fmtp:106 octet-align=1; mode-set=7<BR>a=rtpmap:8 PCMA/8000<BR>a=rtpmap:0 PCMU/8000</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff>UDP Data send to: 10.57.39.120:5060</FONT><BR>PRACK sip:1141@10.57.39.120 SIP/2.0<BR>Via: SIP/2.0/UDP 10.57.39.33:5060<BR>From: sip:6846@10.57.39.120;tag=032baj647<BR>To: sip:1141@10.57.39.120;tag=53m9f85odqq1uld83vs6<BR>Call-ID: asdbasdb3-asdb552<BR>CSeq: 89951 PRACK<BR>Contact: sip:6846@10.57.39.33<BR>Max-Forwards: 70<BR>Route: &lt;sip:10.57.39.120;lr=on&gt;<BR>Content-Type: application/sdp<BR>Expires: 180<BR>Accept-Contact: *;+mckoppa<BR>Supported: precondition, 100Rel<BR>Require: precondition<BR>RAck:2956138 899 INVITE<BR>Content-Length: 278</DIV>
<DIV>v=0<BR>o=Inviter2007 63241204263093750 132223801 IN IP4 10.57.39.33<BR>s=-<BR>c=IN IP4 10.57.39.33<BR>t=0 0<BR>m=audio 5000 RTP/AVP 106<BR>a=rtpmap:106 AMR/8000<BR>a=curr:qos local sendrecv<BR>a=curr:qos remote sendrecv<BR>a=des:qos mandatory local sendrecv<BR>a=des:qos mandatory remote sendrecv</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>If&nbsp;added a route rule 'if ( is_method("PRACK")&nbsp;) { t_relay(); exit;} ' , I'll receive the 483 response.</DIV>
<DIV>Otherwise, receive 404 Not here</DIV>
<DIV><BR><FONT color=#0000ff>UDP Data received from: 10.57.39.120:5060<BR></FONT>SIP/2.0 483 Too Many Hops<BR>Via: SIP/2.0/UDP 10.57.39.33:5060<BR>From: sip:6846@10.57.39.120;tag=032baj647<BR>To: sip:1141@10.57.39.120;tag=53m9f85odqq1uld83vs6<BR>Call-ID: asdbasdb3-asdb552<BR>CSeq: 89951 PRACK<BR>Server: OpenSER (1.3.1-notls (i386/linux))<BR>Content-Length: 0</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=宋体-18030,宋体,SimSun-18030,Simsun size=2><B>From:</B> users-bounces@lists.openser.org 代表 I&#241;aki Baz Castillo<BR><B>Sent:</B> 2008-6-3 (星期二) 17:26<BR><B>To:</B> users@lists.openser.org<BR><B>Subject:</B> Re: [OpenSER-Users] how to configure to support PRACK<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>El Tuesday 03 June 2008 11:02:39 Steven Wu escribi:<BR>&gt; Hi All,<BR>&gt;<BR>&gt; Could someone tell me how to config openser 1.3.x route to support PRACK?<BR><BR>OpenSer doesn't need to do nothing to support PRACK (they are the endpoints<BR>who support it or not).<BR>PRACK is an in-dialog request, just it.<BR><BR>I suppose that the 183 OpenSer forwards to UAC contains a Record-Route added<BR>by OpenSer in the INVITE, so the PRACK must contain a Route header and also<BR>the To tag received in the 183. Then "has_totag" and "loose_route" return<BR>true so a simple t_relay must work.<BR><BR>Nothing special must be done, I sure it by experience.<BR><BR>Regards.<BR><BR>--<BR>Iaki Baz Castillo<BR>ibc@in.ilimit.es<BR><BR>_______________________________________________<BR>Users mailing list<BR>Users@lists.openser.org<BR><A href="http://lists.openser.org/cgi-bin/mailman/listinfo/users">http://lists.openser.org/cgi-bin/mailman/listinfo/users</A><BR></FONT></P></DIV></BODY></HTML>