Hi,I am trying to simulate a scenario where SIPp is acting as Server. SIPp 
should simulate the behaviour1) REGISTER msg is received.2) 200 OK for REGISTER 
msg is send.3) INVITE msg is received.4) 180 Ringing for INVITE msg is send5) 
200 OK for INVITE msg is sendSteps 1 and 2 are working fine. But when 
INVITE msg is received by SIPp server , it gives error \"Aborting call on 
unexpected message, while expecting \'REGISTER\', received \'INVITE\'\"Plz find 
the attachments for1) Scenario xml filebranchs.xml2) logs 
filebranchs_1388_errors.logThanks-Atul
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- This program is free software; you can redistribute it and/or      -->
<!-- modify it under the terms of the GNU General Public License as     -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version.                    -->
<!--                                                                    -->
<!-- This program is distributed in the hope that it will be useful,    -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
<!-- GNU General Public License for more details.                       -->
<!--                                                                    -->
<!-- You should have received a copy of the GNU General Public License  -->
<!-- along with this program; if not, write to the                      -->
<!-- Free Software Foundation, Inc.,                                    -->
<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
<!--                                                                    -->
<!--                 Sipp default 'branchs' scenario.                   -->
<!--                                                                    -->

<scenario name="branch_server">
  <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: 300

    ]]>
  </send>

  <!-- Set variable 3 if the ua is of the form ua2... -->
  <recv request="INVITE" crlf="true">
    <action>
      <ereg regexp="ua2"
            search_in="hdr"
            header="From: "
            assign_to="3"/>
    </action>
  </recv>

  <!-- send 180 then trying if variable 3 is set -->
  <send next="1" test="3">
    <![CDATA[

      SIP/2.0 180 Ringing
      [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

    ]]>
  </send>

  <!-- if not, send a 403 error then skip to wait for a BYE -->
  <send next="2">
    <![CDATA[

      SIP/2.0 403 Error
      [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

    ]]>
  </send>

  <label id="1"/>

  <send>
    <![CDATA[

      SIP/2.0 100 Trying
      [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

    ]]>
  </send>

  <send retrans="500">
    <![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-Type: application/sdp
      Content-Length: 136

      v=0
      o=user1 53655765 2353687637 IN IP4 127.0.0.1
      s=-
      t=0 0
      c=IN IP4 [media_ip]
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000

    ]]>
  </send>

  <recv request="ACK"
        optional="true"
        rtd="true"
        crlf="true">
  </recv>

  <label id="2"/>

  <recv request="BYE">
  </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

    ]]>
  </send>

  <!-- Keep the call open for a while in case the 200 is lost to be     -->
  <!-- able to retransmit it if we receive the BYE again.               -->
  <pause milliseconds="4000"/>

  <!-- 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>

sipp: The following events occured:
2007-07-17 16:31:51: Aborting call on unexpected message for Call-ID 
'82c08-100007f-270f-45026-1-25114589-1': while expecting 'REGISTER', received 
'INVITE sip:[EMAIL PROTECTED] SIP/2.0
From: <sip:[EMAIL PROTECTED]>;tag=80d68-100007f-270f-45026-1-691062b7-1ca
To: <sip:[EMAIL PROTECTED]>
Call-ID: 82c08-100007f-270f-45026-1-25114589-1
CSeq: 1 INVITE
Contact: <sip:192.168.16.2:5060>
Via: SIP/2.0/UDP 192.168.16.2:5060;branch=z9hG4bK-1-61d-2b7b093d
Accept-Contact: *;RVC
Max-Forwards: 70
Content-Type: application/xml
Content-Length: 19

INVITE BYE SCENARIO' .
2007-07-17 16:31:51: Aborting call on unexpected message for Call-ID 
'82c08-100007f-270f-45026-1-25114589-1': while expecting 'REGISTER', received 
'INVITE sip:[EMAIL PROTECTED] SIP/2.0
From: <sip:[EMAIL PROTECTED]>;tag=80d68-100007f-270f-45026-1-691062b7-1ca
To: <sip:[EMAIL PROTECTED]>
Call-ID: 82c08-100007f-270f-45026-1-25114589-1
CSeq: 1 INVITE
Contact: <sip:192.168.16.2:5060>
Via: SIP/2.0/UDP 192.168.16.2:5060;branch=z9hG4bK-1-61d-2b7b093d
Accept-Contact: *;RVC
Max-Forwards: 70
Content-Type: application/xml
Content-Length: 19

INVITE BYE SCENARIO' .
2007-07-17 16:31:52: Aborting call on unexpected message for Call-ID 
'82c08-100007f-270f-45026-1-25114589-1': while expecting 'REGISTER', received 
'INVITE sip:[EMAIL PROTECTED] SIP/2.0
From: <sip:[EMAIL PROTECTED]>;tag=80d68-100007f-270f-45026-1-691062b7-1ca
To: <sip:[EMAIL PROTECTED]>
Call-ID: 82c08-100007f-270f-45026-1-25114589-1
CSeq: 1 INVITE
Contact: <sip:192.168.16.2:5060>
Via: SIP/2.0/UDP 192.168.16.2:5060;branch=z9hG4bK-1-61d-2b7b093d
Accept-Contact: *;RVC
Max-Forwards: 70
Content-Type: application/xml
Content-Length: 19

INVITE BYE SCENARIO' .
2007-07-17 16:31:54: Aborting call on unexpected message for Call-ID 
'82c08-100007f-270f-45026-1-25114589-1': while expecting 'REGISTER', received 
'INVITE sip:[EMAIL PROTECTED] SIP/2.0
From: <sip:[EMAIL PROTECTED]>;tag=80d68-100007f-270f-45026-1-691062b7-1ca
To: <sip:[EMAIL PROTECTED]>
Call-ID: 82c08-100007f-270f-45026-1-25114589-1
CSeq: 1 INVITE
Contact: <sip:192.168.16.2:5060>
Via: SIP/2.0/UDP 192.168.16.2:5060;branch=z9hG4bK-1-61d-2b7b093d
Accept-Contact: *;RVC
Max-Forwards: 70
Content-Type: application/xml
Content-Length: 19

INVITE BYE SCENARIO' .
2007-07-17 16:31:58: Aborting call on unexpected message for Call-ID 
'82c08-100007f-270f-45026-1-25114589-1': while expecting 'REGISTER', received 
'INVITE sip:[EMAIL PROTECTED] SIP/2.0
From: <sip:[EMAIL PROTECTED]>;tag=80d68-100007f-270f-45026-1-691062b7-1ca
To: <sip:[EMAIL PROTECTED]>
Call-ID: 82c08-100007f-270f-45026-1-25114589-1
CSeq: 1 INVITE
Contact: <sip:192.168.16.2:5060>
Via: SIP/2.0/UDP 192.168.16.2:5060;branch=z9hG4bK-1-61d-2b7b093d
Accept-Contact: *;RVC
Max-Forwards: 70
Content-Type: application/xml
Content-Length: 19

INVITE BYE SCENARIO' .
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to