Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sipp/uac-norefersub.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 contain "norefersub" in the Supported
6 header (RFC 4488). This is the default when
7 pjsua_config.no_refer_sub = PJ_TRUE (the default). -->
8
9 <scenario name="UAC OPTIONS: verify norefersub in 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 <!-- Check 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 <!-- Jump to end if norefersub WAS found (variable 1 is set) -->
35 <nop next="end" test="1"/>
36
37 <!-- Only reached when norefersub was NOT found: fail the call -->
38 <nop>
39 <action>
40 <exec int_cmd="stop_now"/>
41 </action>
42 </nop>
43
44 <label id="end"/>
45
46 <pause milliseconds="500"/>
47
48
49 <!-- definition of the response time repartition table (unit is ms) -->
50 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
51
52 <!-- definition of the call length repartition table (unit is ms) -->
53 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
54
55 </scenario>