<?xml version="1.0" encoding="ISO-8859-1"?><document><header><title>Frequently Asked Questions</title></header><body><section id="Questions"><title>Questions</title><section id="usingsipp"><title>1. Using SIPp</title><section id="rsa"><title>1.1. 
        SIPp doesn't send the messages back to the correct SIP proxy port
      </title>
        <p>
          By default, SIPp will answer to SIP messages on the same socket where it received
          the messages. This behavior is a problem for SIP proxies that expect messages
          on a predifined IP port.<br/>
          Using the "-rsa" option on the command line allows you to force the address used 
          to send messages and override this default behavior.<br/>
         </p>
       </section><section id="automation"><title>1.2. 
        How to automate scenario execution and collect pass / failed results
      </title>
        <p>
You don't need to modify SIPp sources to do that. All you need to do is run one 
call, exit (using -m command line option) and test the return code, 
as specified in SIPp help:<br/>
Exit code:<br/>
<br/>
   Upon exit (on fatal error or when the number of asked calls (-m
   option) is reached, sipp exits with one of the following exit
   code:<br/>
    0: All calls were successful<br/>
    1: At least one call failed<br/>
   99: Normal exit without calls processed<br/>
   -1: Fatal error<br/>
<br/>
A shell script could look like:<br/>
<br/>
ocadmin@idefix:~/OJA/sipp.2004-09-21$ cat run.sh<br/>
#!/bin/sh<br/>
&gt;results.txt<br/>
for i in $*<br/>
do<br/>
  echo Launching test $i &gt;&gt; results.txt<br/>
  ./sipp -sf $i -m 1 127.0.0.1<br/>
  if test $? -ne 0<br/>
    then<br/>
        echo Test $i failed &gt;&gt; results.txt<br/>
    else<br/>
        echo Test $i succeeded &gt;&gt; results.txt<br/>
    fi<br/>
done<br/>
exit 0<br/>
ocadmin@idefix:~/OJA/sipp.2004-09-21$<br/>
<br/> 
Launch the tests: ./run.sh *.xml<br/>
Then you will get a result file like this:<br/>
<br/>
ocadmin@idefix:~/OJA/sipp.2004-09-21$ cat results.txt<br/>
Launching test regexp.xml<br/>
Test regexp.xml failed<br/>
Launching test uac.xml<br/>
Test uac.xml succeeded<br/>
ocadmin@idefix:~/OJA/sipp.2004-09-21$<br/>
<br/>
</p>
       </section></section><section id="docs"><title>2. Documentation</title><section id="forrest"><title>2.1. 
        How can I help write documentation?
      </title>
        <p>
          This project uses <link href="ext:forrest">Apache Forrest</link> to
          generate documentation from XML.  Please download a copy of Forrest,
          which can be used to <link href="ext:forrest/validation">validate</link>, <link href="ext:forrest/webapp">develop</link> and render a project site.
        </p>
        <p>Documentation sources (XML files) are available on request (ojacques@users.sourceforge.net).</p>
      </section></section></section></body></document>