Hello All,

I am trying to use lookup action word in my xml file.
I am extraction some fields from CSV file and using it in the xml file.
When I am trying to run the command, SIPp is throwing error.

bash-2.03$ Utils/sipp -sf Tests/Test_Performance.xml 10.30.123.445:32000 -r 1 
-rp 1s -inf Tests/caller.csv -infindex Tests/caller.csv 0 -trace_msg -trace_logs
2009-09-16      06:27:49:128    1253104069.128684: Could not find file for 
-infindex: Tests/caller.csv.

But the file caller.csv is present at the location.

My xml file is as follows:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<scenario name="Basic Sipstone UAC">

<send start_txn="invite" retrans="500">
<![CDATA[
INVITE sip:[email protected];user=phone SIP/2.0
To: <sip:[email protected];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:vpc.test.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
P-Asserted-Identity: <sip:[fiel...@[field1]>
User-Agent: ZX-I600-FXS0200F
P-Access-Network-Info: 3GPP2CDMA200;cell-id-3gpp2=FFFF55550021;cellID="[field2]"

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>

<!-- Receive 100 Trying response and validate its from header value and 
response_txn will validate the transaction of response -->

<recv response="100" optional="true" timeout="10000" response_txn="invite">
</recv>

<recv response="183" optional="false" rtd="true" crlf="true" timeout="10000" 
response_txn="invite">
<action>
        <lookup assign_to="1" file="caller.csv" key="888811101"/>
</action>
</recv>

<nop>
<action>
<log message="Variable 1 contain From header value from 100 receives response: 
[$1]"/>
</action>
</nop>
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>


caller.csv File is as follows:

SEQUENTIAL
1111555002;test.com;ZZZZ55550002
1111555003;test.com;ZZZZ55550003
1111555004;test.com;ZZZZ55550004
1111555005;test.com;ZZZZ55550005
1111555006;test.com;ZZZZ55550006
1111555007;test.com;ZZZZ55550007
1111555008;test.com;ZZZZ55550008
1111555009;test.com;ZZZZ55550009
1111555010;test.com;ZZZZ55550010
1111555011;test.com;ZZZZ55550011

Please reply if anyone knows about the problem.
Thanks in advance.

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.
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to