几个scenario(1)──REGISTER以及执行的命令
1.REGISTER
./sipp -i 192.168.1.40 -p 5060 -t u1 -inf register.csv -sf ben_send_register.xml -m 1 192.168.1.2(因为不需要测试平台,只注册一次能invite就好)
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--*********************************************-->
<!-- -->
<!-- writed by ben -->
<!-- 03.13.2007 -->
<!-- REGISTER -->
<!-- -->
<!--*********************************************-->
<scenario name="REGISTER">
<send>
<![CDATA[
REGISTER sip:[field0] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch];rport
From: <sip:[field1]@[field0]>;tag=[call_number]
To: <sip:[field1]@[field0]>
Call-ID: [call_id]
Cseq: [cseq] REGISTER
Contact: <sip:[field1]@[local_ip]:[local_port]>
Max-Forwards: 70
Supported: 100rel,replace
User-Agent: Benjamin
Expires: 600
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, REFER, NOTIFY, MESSAGE
Content-Length: 0
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="180" optional="true">
</recv>
<recv response="401" auth="true">
</recv>
<send>
<![CDATA[
REGISTER sip:[field0] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch];rport
From: <sip:[field1]@[field0]>;tag=[call_number]
To: <sip:[field1]@[field0]>
Call-ID: [call_id]
Cseq: [cseq] REGISTER
Contact: <sip:[field1]@[local_ip]:[local_port]>
[field2]
Max-Forwards: 70
Supported: 100rel, replaces
User-Agent: Benjamin
Expires: 600
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, REFER, NOTIFY, MESSAGE
Content-Length: 0
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<pause milliseconds="100000" />
<!--
<recv request="NOTIFY">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_Cseq:]
User-Agent: Benjamin
Content-Length: 0
]]>
</send>
-->
</scenario>
./sipp -i 192.168.1.40 -p 5060 -t u1 -inf register.csv -sf ben_send_register.xml -m 1 192.168.1.2(因为不需要测试平台,只注册一次能invite就好)
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--*********************************************-->
<!-- -->
<!-- writed by ben -->
<!-- 03.13.2007 -->
<!-- REGISTER -->
<!-- -->
<!--*********************************************-->
<scenario name="REGISTER">
<send>
<![CDATA[
REGISTER sip:[field0] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch];rport
From: <sip:[field1]@[field0]>;tag=[call_number]
To: <sip:[field1]@[field0]>
Call-ID: [call_id]
Cseq: [cseq] REGISTER
Contact: <sip:[field1]@[local_ip]:[local_port]>
Max-Forwards: 70
Supported: 100rel,replace
User-Agent: Benjamin
Expires: 600
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, REFER, NOTIFY, MESSAGE
Content-Length: 0
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="180" optional="true">
</recv>
<recv response="401" auth="true">
</recv>
<send>
<![CDATA[
REGISTER sip:[field0] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch];rport
From: <sip:[field1]@[field0]>;tag=[call_number]
To: <sip:[field1]@[field0]>
Call-ID: [call_id]
Cseq: [cseq] REGISTER
Contact: <sip:[field1]@[local_ip]:[local_port]>
[field2]
Max-Forwards: 70
Supported: 100rel, replaces
User-Agent: Benjamin
Expires: 600
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, REFER, NOTIFY, MESSAGE
Content-Length: 0
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<pause milliseconds="100000" />
<!--
<recv request="NOTIFY">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_Cseq:]
User-Agent: Benjamin
Content-Length: 0
]]>
</send>
-->
</scenario>