...
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):
Panel | ||||
---|---|---|---|---|
Code Block | ||||
| ||||
Panel | ||||
<recv response="407" auth="true"> </recv> |
<send>
<send> <![CDATA[ |
...
ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0 |
...
Panel |
---|
Via: SIP/2.0/[transport] [local_ip]:[local_port From: sipp ] 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: 1ACK ACK Contact: sip:sipp@[local_ip]:[local_port Max ] Max-Forwards:70 70 Subject: PerformanceTest Test Content-Length:0 0 ]]> |
...
Panel |
---|
</send> <send retrans="500"> |
...
Panel |
---|
<![CDATA[ |
...
INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0 |
...
Panel |
---|
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> ]> Call-ID: [call_id CSeq: 2 INVITE Contact: ] CSeq: 2 INVITE Contact: sip:sipp@[local_ip]:[local_port authentication ] [authentication username=foouser ] Max-Forwards:70 70 Subject: PerformanceTest Test Content-Type: application/sdp Content-Length:len [len] v=0 |
...
Panel |
---|
o=user1 53655765 2353687637 IN IP4 127.0.0.1 s=- t=00 0 c=IN IP4 [media_ip ] m=audio [media_port] RTP/AVP0 0 a=rtpmap:0 PCMU/8000 ]]> |
...
Panel |
---|
</send> |
Built in scenarios are part of the executable code. In order to dump an existing scenario into a file use the following command:
...
Panel |
---|
-3pcc ip:port : Launch the tool in 3pcc mode ("Third Party
|
-nr : Disable retransmission in UDP mode.
Panel |
---|
-nd : No Default. Disable all default behavior of SIPp
|
-rsa host:port : Set the remote sending address to host:port.
...