Hi Eric,

You could store the RSeq and CSeq in the 1xx response as variables and reuse it 
in the PRACK:

  <recv response="180">
     <action>
      <ereg regexp=".*"
        search_in="hdr"
        header="RSeq:"
        assign_to="1"/>
      <ereg regexp=".*"
        search_in="hdr"
        header="CSeq:"
        assign_to="2"/>
    </action>
  </recv>

  <send>
    <![CDATA[

      PRACK sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      To: sut <sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param]
      From: sipp <sip:[EMAIL 
PROTECTED]:[local_port]>;tag=[pid]SIPpTag00[call_number]
      Call-ID: [call_id]
      CSeq: [cseq+1] PRACK
      Contact: sip:[EMAIL PROTECTED]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      RAck: [$1] [$2]
      Content-Length: 0

    ]]>
  </send>

Best Regards,
Tonny

"Liangyou Wang (liangwan)" <[EMAIL PROTECTED]> 說: Hi All,
Now I am trying to construct PRACK message as the following:

PRACK sip:[EMAIL PROTECTED]:5060 SIP/2.0
Via:SIP/2.0/UDP
10.21.50.6;branch=z9hG4bK-BroadWorks.10.21.50.6-10.19.5.1V5060-0-3257122
72-1456418016-1181767430940-
From:"Not
Known";tag=1456418016-118176743094
0-
To:;tag=1838537778
Call-ID:[EMAIL PROTECTED]
CSeq:325712272 PRACK
RAck:2 325712271 INVITE
Max-Forwards:10
Content-Length:0

But it's difficult to define RAck!!! "RAck: 1 [cseq]"  is not right! Who
can help me?

Thank you!

Best regards,
Eric

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users


       
---------------------------------
現在你可輕易阻擋垃圾郵件,立即使用Yahoo! Mail  你就會相信!
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to