几个scenario(1)──REGISTER以及执行的命令

几个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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值