Hi list,

Does anyone know if it is possible (and more importantly how) to write
a scenario that is able to receive one of two messages, then respond
with a single response?

For example, a scenario file which would receive a PUBLISH *or*
SUBSCRIBE message and reply with a simple 200 OK message?

It is possible to do something silly like?:

  <recv request="PUBLISH, SUBSCRIBE" rrs="true" crlf="true" />

or

  <recv request="PUBLISH or SUBSCRIBE" rrs="true" crlf="true" />

???

How would I achieve this using SIPp?

Thanks in advance,

Simon

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="UAS Basic responder">

  <recv request="PUBLISH" rrs="true" crlf="true" />

OR ?????????????????????????????????

  <recv request="SUBSCRIBE" rrs="true" crlf="true" />

  <send>
    <![CDATA[

      SIP/2.0 200 OK
      [last_From:]
      [last_CSeq:]
      [last_To:]
      [last_Call-ID:]
      [last_Via:]
      Content-Length: 0

    ]]>
  </send>

  <pause milliseconds="1000" />

</scenario>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to