VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
jonas.gauffin at gmail... Guest
|
Posted: Thu Mar 26, 2009 1:47 pm Post subject: [Freeswitch-users] sipp emulating a registered end point |
|
|
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 |
|
Back to top |
|
|
ttroy50 at gmail.com Guest
|
Posted: Fri Mar 27, 2009 5:05 am Post subject: [Freeswitch-users] sipp emulating a registered end point |
|
|
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 (jonas.gauffin@gmail.com)>
|
|
Back to top |
|
|
jonas.gauffin at gmail... Guest
|
Posted: Fri Mar 27, 2009 9:14 am Post subject: [Freeswitch-users] sipp emulating a registered end point |
|
|
thanks!
2009/3/27 Thomas Troy <ttroy50@gmail.com (ttroy50@gmail.com)>
Quote: | 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 (jonas.gauffin@gmail.com)>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|