Hi Paul,
I am not able to understand what is your exact problem please explain in
detailed.
Regarding exit of SIPP after first registrer request recieved, use following
command/opt/sipp-mod/sipp -sn uas -sf
/opt/common/scenarios/Registration/UAS-REG-TEST.xml -i
192.168.0.220 -trace_logs
-trace_err -m 1 -l 1Here m= maximum number of call after SIPP exit, -l =
simultaneous call.
In
user scenario you are not Using any external variables, still u injecting
file using -inf(this will not creat any error even u add it).SIPP
does not allow customized file name to save log file name. it simply
saves log using <scenarioname>_<PID>_messages.log name under the
dir where SIPP scenario located.( in ur case log files will be under
/opt/common/scenarios/Registration/ )Can Register request carry
SDP ?afak NO. so this regex will never get required parameter <ereg
regexp="audio.*RTP.*(\s8\s)" . this will creating error; can see error
under /opt/common/scenarios/Registration/ directory if u enable
-trace_err
Best Regards,Sakharam Thorat.
Date: Sat, 5 Jul 2014 10:44:18 +1200
From: idkpmil...@sip2serve.com
To: sipp-users@lists.sourceforge.net
Subject: Re: [Sipp-users] Log Message not working for me
Thanks Rob for the response, I actually do have that option on the command line
(full command mine I am running below). I never get a log output for it though
and I am wondering if its a symptom of something else; for example; I have to
end the test by pressing the 'q' key as otherwise it will wait for the next
REGISTER request. Also I am using check_it=true on my regex lines but even if
they fail to match the test does not exit... I guess I may have a few issues
going on here, with that in mind and for full disclosure I have also added my
scenario below the command line..
============================
/opt/sipp-mod/sipp -sf /opt/common/scenarios/Registration/UAS-REG-TEST.xml -inf
/opt/common/scenarios/Registration/user.csv -infindex user.csv 0 -i
192.168.0.220 -log_file sipp_register_auth_uas.log -trace_logs -trace_err
============================
<?xml version="1.0" encoding="ISO-8859-1" ?><!DOCTYPE scenario SYSTEM
"sipp.dtd">
<scenario name="Basic UAS registrar with regex testing"> <recv
request="REGISTER"> <action>
<!-- Check Comment -->
<ereg regexp="@([^>|:]+)" search_in="hdr" header="From:"
assign_to="discarded,fHost" />
<!-- Check Comment --> <ereg regexp="@([^>|:]+)"
search_in="hdr" header="Contact:" assign_to="discarded,cHost"
/> <!-- Check Comment --> <ereg regexp=".*:(93531265)[@|;]"
search_in="hdr" header="From:"
check_it="true" assign_to="discarded,fUser" />
<!-- Check Comment --> <ereg regexp=".*:(93531265)[@|;]"
search_in="hdr" header="To:" check_it="true"
assign_to="discarded,tUser" />
<!-- Check Comment --> <ereg regexp=".*:(93531265)[@|;]"
search_in="hdr" header="Contact:" check_it="true"
assign_to="discarded,cUser" />
<!-- Check Comment --> <ereg regexp=".*:([0-9]{4,5})[:;]"
search_in="hdr"
header="Via:" assign_to="discarded,vPort" />
<!-- Check Comment --> <ereg regexp="audio.*RTP.*(\s8\s)"
search_in="msg" header="To:" check_it="true"
assign_to="discarded,chkPCMA" />
<warning message="From hostpart is [$fHost]"/> <warning
message="Contact hostpart is [$cHost]"/> <warning message="From userpart
is [$fUser]"/>
<warning message="To userpart is [$tUser]"/> <warning
message="Contact userpart is [$cUser]"/> <warning message="Via port is
[$vPort]"/>
<warning message="Check for PCMA - PTI 8 on m= line [$chkPCMA]"/>
</action> </recv><Reference variables="discarded"/>
<send><![CDATA[ SIP/2.0 401 Authorization Required [last_Via:]
[last_From:] [last_To:];tag=[pid]SIPpTag01[call_number]
[last_Call-ID:]
[last_CSeq:] Contact:
<sip:[local_ip]:[local_port];transport=[transport]> WWW-Authenticate:
Digest realm="ptclab.co.nz", nonce="47ebe028cda119c35d4877b383027d28da013815"
Content-Length: [len] ]]> </send> <recv request="REGISTER" >
</recv> <send> <![CDATA[
SIP/2.0 200 OK [last_Via:] [last_From:]
[last_To:];tag=[call_number] [last_Call-ID:] [last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Length: 0 Expires: 3600 ]]> </send> <!-- definition
of the response time repartition table (unit is ms) -->
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/> <!--
definition of the call length repartition table (unit is ms) -->
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users