last_Via was the problem. And it worked when I extracted the Via from the
INVITE message.

But now, I am facing another problem; testing the same call flow via a
proxy.

The UAS script now recieves 2 Via: headers; how do I extract 2 Via headers
from the INVITE  message. With 2 Via headers [last_Via] works properly but
somehow the when I try to extract these 2; SipP only extracts the first Via:
header & not the second one.

Any idea how to do it ?

Sample INVITE message below:
INVITE sip:[email protected]:9000 SIP/2.0
Via: SIP/2.0/UDP 172.21.184.126:5060;branch=z9hG4bK0a8fd6a007c62dabcdef09
Via: SIP/2.0/UDP 172.24.129.30:5070;branch=z9hG4bK0fc915e007c62d
From: sip:[email protected]:9000;tag=40ADBD56-A3A8-455E-A58B-759B5EB4BA33
To: <sip:[email protected]:9000>
Max-Forwards: 69
CSeq: 1 INVITE
Call-ID: [email protected]
Contact: <sip:[email protected]:5070>
Content-Length: 609
Content-Type: application/sdp
Record-Route: <sip:[email protected]:5060;lr;gvp.rm.datanodes=1>
Subject: Performance Test
X-Genesys-GVP-Session-ID:
F19C610E-445A-4C48-97B5-4C6DFC513A1E;gvp.rm.datanodes=1;gvp.rm.tenant-id=vishalbridge
Supported: timer, 100rel
Session-Expires: 95
X-Genesys-RM-Application-dbid: 102

Thanks
Harry
On Mon, May 11, 2009 at 10:47 AM, Evgeny Miloslavsky <
[email protected]> wrote:

>  The problem is that 200 OK on INVITE request sent with PRACK’s Via header
> (you use last_Via).
>
>
>
>
>
> Regards,**
>
> *Evgeny Miloslavsky*
>
> *Systest Engineer*
>
> *Juniper Networks Solutions Israel LTD.*
>
> *Office: 972-9-9717320/2355*
>  ------------------------------
>
> *From:* Harsimran Singh [mailto:[email protected]]
> *Sent:* Monday, May 11, 2009 7:52 AM
> *To:* SipP List; Vishal Gupta
> *Subject:* [Sipp-users] SipP UAS script with PRACK.
>
>
>
> Hi
>
> I am trying to design a SipP script for UAS with PRACK.
> The script receives PRACK & sends 200OK for PRACK & then waits for 10
> seconds & then sends 200OK for INVITE. But for some reason 200OK for INVITE
> doesn't get ACKnowledged from the UAC.
> Any ideas what could be the issue. Does anybody have working scripts for
> UAS with PRACK? It would be great help if you could share those.
>
> Script below:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
>
>
> <scenario name="MCP_simulator">
>
>
>   <recv request="INVITE" crlf="true">
>   </recv>
>
>
>
>   <send>
>     <![CDATA[
>
>       SIP/2.0 180 Ringing
>       [last_Via:]
>       [last_From:]
>       [last_To:];tag=[call_number]
>       [last_Call-ID:]
>       [last_CSeq:]
>       Require: 100rel
>       RSeq: 1
>       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
>       Content-Length: 0
>
>     ]]>
>   </send>
>
>   <recv request="PRACK"crlf="true">
>          <!-- optional="true" rtd="true" -->
>   </recv>
>
>
>   <send >
>        <![CDATA[
>
>               SIP/2.0 200 OK
>               [last_Via:]
>               [last_From:]
>               [last_To:]
>               [last_Call-ID:]
>               CSeq: 2 PRACK
>               Contact: <sip:sipp@
> [local_ip]:[local_port];transport=[transport]>
>               Content-Length: [len]
>
>             ]]>
>   </send>
>
>     <pause milliseconds="10000"/>
>
>
>   <send >
> <![CDATA[
>
> SIP/2.0 200 OK
> [last_Via:]
> [last_From:]
> [last_To:]
> [last_Call-ID:]
> CSeq: 1 INVITE
> Record-Route: <sip:[email protected]:5060;lr;gvp.rm.datanodes=1>
> Contact: <sip:s...@[local_ip]:[local_port];transport=[transport]>
> Supported: timer, 100rel
> Session-Expires: 95;refresher=uac
> Require: timer
> Content-Type: application/sdp
> India: VishalVishal
> Content-Length: [len]
> X-Genesys-RM-Application-dbid: 102
> [last_X-Genesys-GVP-Session-ID:]
>
> v=0
> o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
> s=-
> c=IN IP[media_ip_type] [media_ip]
> t=0 0
> m=audio [media_port] RTP/AVP 0 8 3 18 101
> a=rtpmap:18 g729/8000
> a=fmtp:101 0-15
> a=rtpmap:101 telephone-event/8000
>
> ]]>
>   </send>
>
>
>
>   <recv request="ACK"crlf="true">
>        <!-- optional="true" rtd="true" -->
>   </recv>
>
>  <recv request="BYE" />
>
>   <send retrans="500" >
>     <![CDATA[
>
>       SIP/2.0 200 OK
>       [last_Via:]
>       [last_From:]
>       [last_To:]
>       [last_Call-ID:]
>       [last_CSeq:]
>       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
>       Content-Length: [len]
>
>     ]]>
>   </send>
>
> </scenario>
>
>
>
> Thanks
> Harry
>



-- 
We must all hang together, or assuredly we shall all hang separately.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to