All, this is a SIPp limitation. SIPp configures itself as being in either client or server mode (to summarize). You have two possibilities: - Use 2 scenarios (one for registration of users, one for traffic) - Wait or help to integrate the pre-post scenario patch which is exactly targeted at solving this (see recent discussions on the mailing list).
Olivier. > Hey Raphael, > > I am also running into a similar problem. I tried analyzing the code > to figure out what might be causing this. I am including my findings > here in the hope that more experienced SIPp folks can verify this > behavior and determine a fix or a workaround: > > 1. On startup, SIPp tries to determine the mode it is running in - > MODE_CLIENT, MODE_SERVER, MODE_3PCC_A_PASSIVE, MODE_3PCC_CONTROLLER_A. > (scenario.cpp) > 2. ONLY if the first message in the scenario is of type "receive", the > mode is set to "MODE_SERVER" > 3. When a messages is received, based on the mode, it tries to take > the appropriate action. > > Now, in the scenario you described, I see that the mode is being > detected as - not SERVER and not 3PCC*. In this case, it assumes that > this message is not related to any known call. I'm still trying to > debug why this happens. Note: I have verified that ALL the CALL-IDs in > this scenario are the same - for register, invite as well as the > responses such as 100, 180 and 200 - so that cannot be the problem. > > I just thought I'd post this information in case someone already knew > the answer and it would thus save me some debugging time. :-) Thanks > in advance. > > Vic > > > On 9/12/06, *Raphael Benedet* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hello, > > I'm trying to build a scenario where sipp first registers a number and > then, wait for an INVITE. The problem is that after the registration, > the INVITE packets are discarded. If I split the scenario in 2 > scenarios: 1 for the registration and 1 for answering the INVITE and > run one after the other, it works fine! Any help is welcome. > > Thanks in advance. > > Best Regards, > Raphael > > This is the error I get: > sipp: The following events occured: > 2006-09-12 12:25:24: Discarding message which can't be mapped to a > known SIPp call: > INVITE sip:[EMAIL PROTECTED] :5060 SIP/2.0 > Via: SIP/2.0/UDP 10.127.250.166:5060 > <http://10.127.250.166:5060>;branch=z9hG4bK0g1ao0001oognakh6601.1 > To: <sip:[EMAIL PROTECTED] <mailto:sip:[EMAIL PROTECTED]>> > From: <sip:[EMAIL PROTECTED] > <mailto:sip:[EMAIL PROTECTED]>;user=phone>;tag=SDm1du201-02ec8853 > Call-ID: SDm1du201-495f50c5e9b75e2b14717fed847c07a1-v3000v3 > CSeq: 1 INVITE > Max-Forwards: 8 > Contact: <sip:[EMAIL PROTECTED]:5060;transport=udp> > P-Asserted-Identity: <sip:[EMAIL PROTECTED] > <mailto:sip:[EMAIL PROTECTED]>>,<tel:+3227959559> > Content-Type: application/sdp > Content-Length: 165 > > This is the scenario I use: > <?xml version="1.0" encoding="ISO-8859-1" ?> > <scenario name="Basic Answer"> > > <send retrans="500"> > <![CDATA[ > > REGISTER sip:domain.com <http://domain.com> SIP/2.0 > Via: SIP/2.0/UDP [local_ip]:[local_port];branch=[branch] > From: sip:[EMAIL PROTECTED] <http://domain.com> > To: sip:[EMAIL PROTECTED] <http://domain.com> > Call-ID: [call_id] > CSeq: [cseq] REGISTER > User-Agent: CSCO/7 > Contact: <sip:[EMAIL PROTECTED]:[local_port]> > Content-Length: 0 > Expires: 300 > > ]]> > </send> > > <recv response="200" optional="true" next="1"> > </recv> > > <recv response="401" auth="true"> > </recv> > > <send retrans="500"> > <![CDATA[ > > REGISTER sip:domain.com <http://domain.com> SIP/2.0 > Via: SIP/2.0/UDP [local_ip]:[local_port];branch=[branch] > From: sip:[EMAIL PROTECTED] <http://domain.com> > To: sip:[EMAIL PROTECTED] <http://domain.com> > Call-ID: [call_id] > CSeq: [cseq] REGISTER > User-Agent: CSCO/7 > Contact: <sip:[EMAIL PROTECTED]:[local_port]> > [field1] > Content-Length: 0 > Expires: 300 > > ]]> > </send> > > > <recv response="200" crlf="true"> > </recv> > > <label id="1"/> > > <pause milliseconds="1000"/> > > <recv request="INVITE"> > </recv> > > <send> > <![CDATA[ > > SIP/2.0 100 Trying > [last_Via:] > [last_From:] > [last_To:] > [last_Call-ID:] > [last_CSeq:] > Server: CSCO/7 > Contact: <sip:[EMAIL PROTECTED]:[local_port]> > Content-Length: 0 > > ]]> > </send> > ... > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
