Debian Codegraph @

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

raw symbols SCIP
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <!DOCTYPE scenario SYSTEM "sipp.dtd">
3
4 <!-- Test that "norefersub" is absent from the Supported header when
5 pjsua is started with --no-supported-norefersub (sets
6 pjsua_config.no_refer_sub = PJ_FALSE). -->
7
8 <scenario name="UAS: verify norefersub absent from Supported header">
9
10 <recv request="INVITE" crlf="true">
11 <action>
12 <!-- Capture whether norefersub is present (no check_it - we
13 handle the failure ourselves via nop/test below).
14 $1 assigned here + consumed by nop/test = 2 references. -->
15 <ereg regexp="norefersub"
16 search_in="hdr"
17 header="Supported:"
18 assign_to="1"/>
19 <!-- Capture the From-tag parameter for the BYE To header.
20 No capture group: $2 = full match = "tag=VALUE".
21 $2 assigned here + used in BYE template = 2 references. -->
22 <ereg regexp="tag=[^ ;,\r\n]+"
23 search_in="hdr"
24 header="From:"
25 assign_to="2"/>
26 </action>
27 </recv>
28
29 <!-- If norefersub WAS found (variable 1 is set), stop immediately
30 with a non-zero exit code to fail the test. -->
31 <nop next="fail" test="1"/>
32
33 <send>
34 <![CDATA[
35
36 SIP/2.0 100 Trying
37 [last_Via:]
38 [last_From:]
39 [last_To:]
40 [last_Call-ID:]
41 [last_CSeq:]
42 Content-Length: 0
43
44 ]]>
45 </send>
46
47 <send retrans="500">
48 <![CDATA[
49
50 SIP/2.0 200 OK
51 [last_Via:]
52 [last_From:]
53 [last_To:];tag=[call_number]
54 [last_Call-ID:]
55 [last_CSeq:]
56 Contact: sip:sipp@[local_ip]:[local_port]
57 Content-Type: application/sdp
58 Content-Length: [len]
59
60 v=0
61 o=- 1 1 IN IP4 [local_ip]
62 s=pjmedia
63 c=IN IP4 [local_ip]
64 t=0 0
65 m=audio 4000 RTP/AVP 0
66 a=rtpmap:0 PCMU/8000
67
68 ]]>
69 </send>
70
71 <recv request="ACK" crlf="true">
72 </recv>
73
74 <pause milliseconds="1000"/>
75
76 <!-- BYE using the INVITE's Call-ID ([last_Call-ID:]) and the
77 captured From-tag ([$2]) so pjsua can match its dialog. -->
78 <send retrans="500">
79 <![CDATA[
80
81 BYE sip:[remote_ip]:[remote_port] SIP/2.0
82 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
83 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
84 To: <sip:[remote_ip]:[remote_port]>;[$2]
85 [last_Call-ID:]
86 CSeq: 2 BYE
87 Max-Forwards: 70
88 Content-Length: 0
89
90 ]]>
91 </send>
92
93 <recv response="200">
94 </recv>
95
96 <nop next="end"/>
97
98 <label id="fail"/>
99 <nop>
100 <action>
101 <exec int_cmd="stop_now"/>
102 </action>
103 </nop>
104
105 <label id="end"/>
106
107
108 <!-- definition of the response time repartition table (unit is ms) -->
109 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
110
111 <!-- definition of the call length repartition table (unit is ms) -->
112 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
113
114 </scenario>