Debian Codegraph @

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

raw symbols SCIP
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <!DOCTYPE scenario SYSTEM "sipp.dtd">
3
4 <!-- Test that "norefersub" appears in the Supported header of an
5 incoming INVITE (RFC 4488). This is the default pjsua behavior
6 when pjsua_config.no_refer_sub is PJ_TRUE (the default). -->
7
8 <scenario name="UAS: verify norefersub in Supported header">
9
10 <recv request="INVITE" crlf="true">
11 <action>
12 <!-- Capture whether norefersub is present.
13 No check_it - we handle the failure 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 IS found (variable 1 set), proceed normally.
30 If NOT found, fall through to stop_now (fail the test). -->
31 <nop next="main" test="1"/>
32 <nop>
33 <action>
34 <exec int_cmd="stop_now"/>
35 </action>
36 </nop>
37
38 <label id="main"/>
39
40 <send>
41 <![CDATA[
42
43 SIP/2.0 100 Trying
44 [last_Via:]
45 [last_From:]
46 [last_To:]
47 [last_Call-ID:]
48 [last_CSeq:]
49 Content-Length: 0
50
51 ]]>
52 </send>
53
54 <send retrans="500">
55 <![CDATA[
56
57 SIP/2.0 200 OK
58 [last_Via:]
59 [last_From:]
60 [last_To:];tag=[call_number]
61 [last_Call-ID:]
62 [last_CSeq:]
63 Contact: sip:sipp@[local_ip]:[local_port]
64 Content-Type: application/sdp
65 Content-Length: [len]
66
67 v=0
68 o=- 1 1 IN IP4 [local_ip]
69 s=pjmedia
70 c=IN IP4 [local_ip]
71 t=0 0
72 m=audio 4000 RTP/AVP 0
73 a=rtpmap:0 PCMU/8000
74
75 ]]>
76 </send>
77
78 <recv request="ACK" crlf="true">
79 </recv>
80
81 <pause milliseconds="1000"/>
82
83 <!-- BYE using the INVITE's Call-ID ([last_Call-ID:]) and the
84 captured From-tag ([$2]) so pjsua can match its dialog. -->
85 <send retrans="500">
86 <![CDATA[
87
88 BYE sip:[remote_ip]:[remote_port] SIP/2.0
89 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
90 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
91 To: <sip:[remote_ip]:[remote_port]>;[$2]
92 [last_Call-ID:]
93 CSeq: 2 BYE
94 Max-Forwards: 70
95 Content-Length: 0
96
97 ]]>
98 </send>
99
100 <recv response="200">
101 </recv>
102
103
104 <!-- definition of the response time repartition table (unit is ms) -->
105 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
106
107 <!-- definition of the call length repartition table (unit is ms) -->
108 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
109
110 </scenario>