When I need to do something like this, what I do is set sipp2 to have 2 scripts both using the same IP and port. One sends the register and deals with authentication \ OK. The other is then run after this to wait and receive the incoming call. So you would run them like sipp2_register - Performs registration and ends sipp2_receiveCall - Waits for incoming call, while listening on same IP \ Port as sipp2_register sipp1_makeCall - Makes outgoing call A sample register scenario is <scenario name="Register"> <send start_rtd="1" retrans="500"> <![CDATA[ REGISTER sip:[remote_ip]:[remote_port] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]1;rport Max-Forwards: 70 To: TestUser1 <sip:user@[remote_ip]:[remote_port]> From: TestUser1 <sip:user@ [remote_ip]:[remote_port]>;tag=[pid][call_number] Call-ID: [call_id] CSeq: 1 REGISTER Contact: <sip:user@[local_ip]:[local_port]> Expires: 240 User-Agent: SIPp Content-Length: 0 ]]> </send> <recv response="401" rtd="1" auth="true"> </recv> <send start_rtd="2" retrans="500"> <![CDATA[ REGISTER sip:[remote_ip]:[remote_port] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]2;rport Max-Forwards: 70 To: TestUser1 <sip:user@[remote_ip]:[remote_port]> From: TestUser1 <sip:user@ [remote_ip]:[remote_port]>;tag=[pid][call_number] Call-ID: [call_id] CSeq: 2 REGISTER Contact: <sip:user@[local_ip]:[local_port]> Expires: 240 User-Agent: SIPp [authentication username=user password=pass] Content-Length: 0 ]]> </send> <recv response="200" rtd="2"> </recv> <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 250, 500"/> </scenario> 2009/3/26 Jonas Gauffin <jonas.gauffin@gmail.com>
Hello I want to achive this: Sipp1 -> FS -> Sipp2
Sipp1 emulates a inbound calls (easy to achive) Sipp2 should emulate a registered user (i.e. register with FS and then just wait for calls and hangup when sipp1 hangsup)
How do I configure sipp as "Sipp2"?
Thanks, Jonas
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org