Hi Lianjie, The reason your INVITEs are being rejected with a 403 Forbidden is that the REGISTER is associated with the particular TCP connection used. So your first run, with reg_test.xml, creates a TCP connection, uses it to send a REGISTER, and then closes that TCP connection (ending the registration). The second run, with call_test.xml, opens a new TCP connection and sends an INVITE – but Clearwater (Bono in particular) has no way of telling that this INVITE is associated with the previous REGISTER, because it’s a different TCP connection (and so could be a completely different, unauthorized, user). That’s why you see this 403 Forbidden.
We’ve deliberately put the REGISTER and the INVITE into the same XML file in order to address this problem – when they’re in the same file, the same TCP connection is used for both, so Bono is able to match them up. I’m not completely sure there’s a way to get this working with two separate scripts, I’m afraid – it’s possible that using UDP rather than TCP might work, particularly if using the “-t u1” option to SIPp which uses the same UDP source port for everything. Hope that helps, Rob -- Rob Day Software Engineer, Project Clearwater From: [email protected] [mailto:[email protected]] On Behalf Of Lianjie Cao Sent: 15 May 2015 03:31 To: [email protected] Cc: Sharma, Puneet; Sonia Fahmy Subject: [Clearwater] Separating REGISTER and INVITE in stress tests Hi, We are trying to separate the REGISTER part and INVITE part in call_load2.xml for testing purpose. For instance, we have two separate xml files, reg_test.xml and call_test.xml, including registration requests and invite-bye requests respectively. During a test, we run SIPp with reg_test.xml first to register a certain number of users with a long "Expires" value (e.g., 3600). Then we run SIPp with call_test.xml to test call setup and teardown only. The first step finishes successfully, while in the second step, INVITE request is responded with "403 Forbidden" message. We have confirmed that REGISTER request is returned with a long enough "Expires" value in the "Contact" tag of the "200 OK" response. It seems like the INVITE request has to happen right after a successful registration in the same xml file. Are there any settings I need to change or add to the xml file or Clearwater configuration file in order to perform our test? Thanks, Lianjie
_______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/listinfo/clearwater
