Hi All,

I am new to SIPp and working on developing UAC and UAS for my chat
application which uses SIP. I would like to run the UAS in the loop so that
it accepts the messages indefinitely and sends response back to the server.

Here is my code. Can any one of you help me in this regard.

<scenario name="Basic UAS responder">
  <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
  <!-- generated by sipp. To do so, use [call_id] keyword.
 -->

 <recv request="MESSAGE" crlf="true" timeout="10000000">
 </recv>

 <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_To:]
      [last_Via:]
      [last_CSeq:]
      [last_Call-ID:]
      [last_From:]
      Contact:
sip:[field0]@[local_ip]:[local_port];transport=[transport];registering_acc=lpt-youchat_acesse_com>
      User-Agent: Jitsi2.4.4997Windows 8
      Content-Length: 0
    ]]>
  </send>

 <!-- <nop hide="true" test="authvalid" next="goodauth" /> -->

 <recv request="MESSAGE" crlf="true" timeout="10000000" optional="true">
 </recv>

<recv request="MESSAGE" crlf="true" timeout="10000000" optional="true">
 </recv>

 <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_To:]
      [last_Via:]
      [last_CSeq:]
      [last_Call-ID:]
      [last_From:]
      Contact:
sip:[field0]@[local_ip]:[local_port];transport=[transport];registering_acc=lpt-youchat_acesse_com>
      User-Agent: Jitsi2.4.4997Windows 8
      Content-Length: 0
    ]]>
  </send>

 <recv request="MESSAGE" crlf="true" timeout="10000000">
 </recv>


 <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_To:]
      [last_Via:]
      [last_CSeq:]
      [last_Call-ID:]
      [last_From:]
      Contact:
sip:[field0]@[local_ip]:[local_port];transport=[transport];registering_acc=lpt-youchat_acesse_com>
      User-Agent: Jitsi2.4.4997Windows 8
      Content-Length: 0
    ]]>
  </send>

 <recv request="MESSAGE" crlf="true" timeout="10000000">
 </recv>

 <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_To:]
      [last_Via:]
      [last_CSeq:]
      [last_Call-ID:]
      [last_From:]
      Contact:
sip:[field0]@[local_ip]:[local_port];transport=[transport];registering_acc=lpt-youchat_acesse_com>
      User-Agent: Jitsi2.4.4997Windows 8
      Content-Length: 0
    ]]>
  </send>
</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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to