...
In order for authentication to work it seems that the standard UAC scenario XML file needs to be extended as follows (copied from the example in the manual):
Code Block | ||||
---|---|---|---|---|
| ||||
<recv response="407" auth="true"> </recv> <send> <![CDATA[ ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port] From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number] To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param] Call-ID: [call_id] CSeq: 1 ACK Contact: sip:sipp@[local_ip]:[local_port] Max-Forwards: 70 Subject: Performance Test Content-Length: 0 ]]> </send> <send retrans="500"> <![CDATA[ INVITE sip:[oldxx:service]@[oldxx:remote_ip]:[oldxx:remote_port] SIP/2.0 Via: SIP/2.0/[oldxx:transport] [oldxx:local_ip]:[oldxx:local_port] From: sipp <sip:sipp@[oldxx:local_ip]:[oldxx:local_port]>;tag=[oldxx:call_number] To: sut <sip:[oldxx:service]@[oldxx:remote_ip]:[oldxx:remote_port]> Call-ID: [oldxx:call_id] CSeq: 2 INVITE Contact: sip:sipp@[oldxx:local_ip]:[oldxx:local_port] [oldxx:authentication username=foouser] Max-Forwards: 70 Subject: Performance Test Content-Type: application/sdp Content-Length: [oldxx:len] v=0 o=user1 53655765 2353687637 IN IP4 127.0.0.1 s=- t=0 0 c=IN IP4 [oldxx:media_ip] m=audio [oldxx:media_port] RTP/AVP 0 a=rtpmap:0 PCMU/8000 ]]> </send> |
Built in scenarios are part of the executable code. In order to dump an existing scenario into a file use the following command:
...