我是使用SIPp对 IVR 进行负载测试的初学者。以下是问题列表:
- 不能播放超过 3 个 DTFM 音 - 我希望能够发送一系列 DTFM 音,例如 3411111111111111 - 我听到的只是 3 个音和死气
- 无法使用 INFO - 这可能是 asterix 服务器问题
- 最后我决定使用生成 WAV 文件的在线工具创建 DTMF 剪辑;找不到 WAV 到 PCAP 的转换器。试图从 sourceforge 编译 wav2rtp;尝试过 sox、gstreamer 和 wireshark...有人可以指导我详细说明如何从 WAV 转换为 PCAP。
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="Basic Sipstone UAC">
<send retrans="500">
<![CDATA[
INVITE sip:OUTBOUND+xxx3723271@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: sipp <sip:xxx2271172@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
To: <sip:OUTBOUND+xxx3723271@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 1 INVITE
Contact: sip:xxx2271172@[local_ip]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
Content-Length: [len]
]]>
</send>
<recv response="100"
optional="true">
</recv>
<recv response="180" optional="true">
</recv>
<recv response="183" optional="true">
</recv>
<!-- By adding rrs="true" (Record Route Sets), the route sets -->
<!-- are saved and used for following messages sent. Useful to test -->
<!-- against stateful SIP proxies/B2BUAs. -->
<recv response="200" rtd="true">
</recv>
<!-- Packet lost can be simulated in any send/recv message by -->
<!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
<send>
<![CDATA[
ACK sip:OUTBOUND+xxx3723271@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: sipp <sip:xxx2271172@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
To: <sip:OUTBOUND+xxx3723271@[remote_ip]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 1 ACK
Contact: sip:xxx2271172@[local_ip]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0
]]>
</send>
<pause milliseconds="1000"/>
<nop>
<action>
<exec play_pcap_audio="/home/xxx/sippy/dtmf_2833_1.pcap"/>
</action>
</nop>
<pause milliseconds="10000"/>
<!-- The 'crlf' option inserts a blank line in the statistics report. -->
<send retrans="500">
<![CDATA[
BYE sip:OUTBOUND+xxx3723271@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: sipp <sip:xxx2271172@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
To: <sip:OUTBOUND+xxx3723271@[remote_ip]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 2 BYE
Contact: sip:xxx2271172@[local_ip]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0
]]>
</send>
<recv response="200" crlf="true">
</recv>
<recv response="503" crlf="true">
</recv>
<recv response="480" crlf="true">
</recv>
<!-- definition of the response time repartition table (unit is ms) -->
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
<!-- definition of the call length repartition table (unit is ms) -->
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>
非常感谢
这是我在 CentOS5 上用来运行场景的命令:
sudo /usr/bin/sipp 198.245.34.118 -sf /home/mgandikota/sippy/uacellwithtest.xml -inf invite.csv -m 1 -trace_err -trace_logs -aa -t un
如前所述,操作系统是 CentOS (RHEL5),我看到 Asterix 服务器成功调用了 xxx3723271。但是,在可能的 15 个 DTMF 信号中,我听不到超过 3 个 DTMF 声音。