Hello All,

I need to validate value of some header fields in the response using CSV file 
while running performance test.
I am sending INVITE request with some numbers extracted from CSV file(Like 
Telephone number in the From header filed). I also have numbers in the same CSV 
file which can be use to validated with the received response.

I don't know how to extract those columns from CSV file and use those in the 
regular expression of response to validate?

Below is example:

INVITE request:---

<send start_txn="invite" retrans="500">
<![CDATA[
INVITE sip:5...@proxy.com;user=phone SIP/2.0
To: <sip:5...@proxy.com;user=phone>
From:<sip:[fiel...@[field1];user=phone>;tag=[call_number]
Call-ID:[call_id]
CSeq: [cseq] INVITE
Max-Forwards: 68
Timestamp: 54
Content-Length:[len]
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: <sip:aaa.proxy.com;lr;call=orig>
Contact: <sip:[fiel...@[local_ip]:[local_port];transport=[transport]>
Content-Type: application/sdp
Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, INFO, REGISTER, PRACK, UPDATE, 
MESSAGE, REFER, NOTIFY, PING
User-Agent: ZX-I600-FXS0200F
Session-Expires: 120
Min-SE: 120

v=0
o=ZTE-IAD 50376 50376 IN IP4 10.78.246.36
s=Phone Call via ZXSS10 IAD
c=IN IP4 10.78.246.36
t=0 0
m=audio 57938 RTP/AVP 0 8 18 4 101 96
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=rtpmap:96 red/8000
a=fmtp:96 101

]]>

</send>



<recv response="183" optional="false" rtd="true" crlf="true" timeout="10000" 
response_txn="invite">

Here I want to extract numbers from filed 2 and filed 3 of CSV file and use 
those in the regular expression to validate it. For every call the value of 
filed 2 and 3 will get changed.

</recv>

Please reply if anyone know how to do this in SIPp.

Thanks
-Sumeet


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to