Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sipp/uac-norefersub-disabled.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <!DOCTYPE scenario SYSTEM "sipp.dtd">
3
4 <!-- SIPp acts as UAC and sends OPTIONS to pjsua (UAS).
5 The 200 OK from pjsua must NOT contain "norefersub" in the Supported
6 header when pjsua is started with --no-supported-norefersub (sets
7 pjsua_config.no_refer_sub = PJ_FALSE). -->
8
9 <scenario name="UAC OPTIONS: verify norefersub absent from Supported header">
10
11 <send retrans="500">
12 <![CDATA[
13
14 OPTIONS sip:[service]@[remote_ip]:[remote_port] SIP/2.0
15 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
16 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
17 To: sut <sip:[service]@[remote_ip]:[remote_port]>
18 Call-ID: [call_id]
19 CSeq: 1 OPTIONS
20 Contact: sip:sipp@[local_ip]:[local_port]
21 Max-Forwards: 70
22 Content-Length: 0
23
24 ]]>
25 </send>
26
27 <recv response="200" rtd="true">
28 <action>
29 <!-- Capture whether norefersub appears in the Supported header -->
30 <ereg regexp="norefersub" search_in="hdr" header="Supported:" assign_to="1"/>
31 </action>
32 </recv>
33
34 <!-- If norefersub WAS found (variable 1 is set), stop immediately
35 with a non-zero exit code to fail the test. -->
36 <nop next="fail" test="1"/>
37
38 <!-- Success: norefersub was absent as expected -->
39 <pause milliseconds="500"/>
40 <nop next="end"/>
41
42 <label id="fail"/>
43 <nop>
44 <action>
45 <exec int_cmd="stop_now"/>
46 </action>
47 </nop>
48
49 <label id="end"/>
50
51
52 <!-- definition of the response time repartition table (unit is ms) -->
53 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
54
55 <!-- definition of the call length repartition table (unit is ms) -->
56 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
57
58 </scenario>