84 lines
2.1 KiB
XML
84 lines
2.1 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<!DOCTYPE scenario SYSTEM "sipp.dtd">
|
|
|
|
<scenario name="Basic UAS responder">
|
|
<recv request="REGISTER" crlf="true">
|
|
</recv>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
SIP/2.0 100 Trying
|
|
[last_Via:];received=1.1.1.1;rport=1111
|
|
[last_From:]
|
|
[last_To:];tag=[call_number]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
Content-Length: 0
|
|
]]>
|
|
</send>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
SIP/2.0 401 Unauthorized
|
|
[last_Via:];received=1.1.1.1;rport=1111
|
|
[last_From:]
|
|
[last_To:];tag=[call_number]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
WWW-Authenticate: Digest realm="sip.linphone.org", nonce="PARV4gAAAADgw3asAADW8zsi5BEAAAAA", opaque="+GNywA==", algorithm=SHA-256, qop="auth"
|
|
WWW-Authenticate: Digest realm="sip.linphone.org", nonce="PARV4gAAAADgw3asAADW8zsi5BEAAAAA", opaque="+GNywA==", algorithm=MD5, qop="auth"
|
|
WWW-Authenticate: Digest realm="sip.linphone.org", nonce="PARV4gAAAADgw3asAADW8zsi5BEAAAAA", opaque="+GNywA==", algorithm=MD2, qop="auth"
|
|
Content-Length: 0
|
|
]]>
|
|
</send>
|
|
|
|
<recv request="REGISTER" crlf="true">
|
|
<action>
|
|
<ereg regexp=".*"
|
|
search_in="hdr"
|
|
header="Authorization:"
|
|
assign_to="have_auth" />
|
|
</action>
|
|
</recv>
|
|
|
|
<nop next="resp_okay" test="have_auth" />
|
|
|
|
<send next="end">
|
|
<![CDATA[
|
|
SIP/2.0 403 no auth
|
|
[last_Via:];received=1.1.1.1;rport=1111
|
|
[last_From:]
|
|
[last_To:];tag=[call_number]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
[last_Contact:]
|
|
Content-Length: 0
|
|
]]>
|
|
</send>
|
|
|
|
<label id="resp_okay" />
|
|
|
|
<send>
|
|
<![CDATA[
|
|
SIP/2.0 200 OK
|
|
[last_Via:];received=1.1.1.1;rport=1111
|
|
[last_From:]
|
|
[last_To:];tag=[call_number]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
[last_Contact:]
|
|
Content-Length: 0
|
|
]]>
|
|
</send>
|
|
|
|
<label id="end" />
|
|
|
|
<!-- 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>
|
|
|