From: Charles P W. <cpw...@us...> - 2007-04-26 13:06:04
|
Ashok, The REGISTER and INVITE will have different Call-IDs. To make this work you need to use optional messages, so that either a register or an invite can start a new scenario. Charles <ash...@wi...> Sent by: sip...@li... 04/26/2007 08:31 AM To <sip...@li...> cc say...@wi..., var...@wi... Subject [Sipp-users] Receivinf REGISTER and INVITE in the same sipp script Hi, I am running a sipp script in which sipp is receiving REGISTER, sending 200 OK, and receiving INVITE. When I am trying to receive INVITE then sipp reports it as an unexpected message. Can you please help on this. The folowing Error occurs: 2007-04-26 18:05:15: Aborting call on unexpected message for Call-ID '73...@st...': while expecting 'REGISTER', received 'INVITE sip:sipp@10.117.4.185:5061 SIP/2.0 ---------------- Here is the sipp script: <?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 'uas' scenario. --> <!-- --> <scenario name="branch_server"> <!-- By adding rrs="true" (Record Route Sets), the route sets --> <!-- are saved and used for following messages sent. Useful to test --> <!-- against stateful SIP proxies/B2BUAs. --> <recv request="REGISTER"> </recv> <send> <![CDATA[ SIP/2.0 200 OK [last_Via:] [last_From:] [last_To:] [last_Call-ID:] [last_CSeq:] Content-Length: 0 ]]> </send> <recv request="INVITE" crlf="true" > <action> <ereg regexp="sut" search_in="hdr" header="From: " assign_to="3"/> </action> </recv> <!-- The '[last_*]' keyword is replaced automatically by the --> <!-- specified header if it was present in the last message received --> <!-- (except if it was a retransmission). If the header was not --> <!-- present or if no message has been received, the '[last_*]' --> <!-- keyword is discarded, and all bytes until the end of the line --> <!-- are also discarded. --> <!-- --> <!-- If the specified header was present several times in the --> <!-- message, all occurences are concatenated (CRLF seperated) --> <!-- to be used in place of the '[last_*]' keyword. --> <send next="1" test="3"> <![CDATA[ SIP/2.0 200 OK [last_Via:] [last_From:] [last_To:] [last_Call-ID:] [last_CSeq:] 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> And the corresponding log file is: ------------------------------ Scenario Screen -------- [1-9]: Change Screen -- Port Total-time Total-calls Transport 5061 15.32 s 2 UDP 0 new calls during 0.320 s period 4 ms scheduler resolution 1 calls Peak was 2 calls, after 2 s 0 Running, 1 Paused, 0 Woken up 1 open sockets Messages Retrans Timeout Unexpected-Msg ----------> REGISTER 1 0 1 <---------- 200 1 0 ----------> INVITE 0 0 0 <---------- 200 0 0 [ 4000ms] Pause 0 0 ------------------------------------------------------------------------- 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 Sip...@li... https://lists.sourceforge.net/lists/listinfo/sipp-users |