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