Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sipp/alt-pjsua-uas-custom-sdp.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 an INVITE with a PCMU+H263-1998 SDP offer.
5 alt_pjsua auto-answers 200 OK with its custom SDP. SIPp verifies the
6 200 OK body contains both audio and video codecs from the custom SDP,
7 sends ACK, waits briefly, then sends BYE. -->
8
9 <scenario name="alt_pjsua UAS custom SDP: SIPp as UAC">
10
11 <send retrans="500">
12 <![CDATA[
13
14 INVITE 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 INVITE
20 Contact: sip:sipp@[local_ip]:[local_port]
21 Max-Forwards: 70
22 Subject: alt_pjsua UAS custom SDP test
23 Content-Type: application/sdp
24 Content-Length: [len]
25
26 v=0
27 o=sipp 1234567890 1234567890 IN IP[local_ip_type] [local_ip]
28 s=-
29 c=IN IP[media_ip_type] [media_ip]
30 t=0 0
31 m=audio [media_port] RTP/AVP 0
32 a=rtpmap:0 PCMU/8000
33 m=video [media_port+2] RTP/AVP 96
34 a=rtpmap:96 H263-1998/90000
35
36 ]]>
37 </send>
38
39 <recv response="100" optional="true">
40 </recv>
41
42 <recv response="180" optional="true">
43 </recv>
44
45 <recv response="200" rtd="true">
46 <action>
47 <!-- Verify the 200 OK carries the custom SDP injected by alt_pjsua.
48 Check codecs only (no IP/port) so the test is environment-independent.
49 search_in="msg" searches the entire SIP message. The condexec nop
50 avoids SIPp 3.7 exiting on "referenced 1 times" warning. -->
51 <ereg regexp="a=rtpmap:0 PCMU/8000" search_in="msg"
52 check_it="true" assign_to="1"/>
53 <ereg regexp="a=rtpmap:96 H263-1998/90000" search_in="msg"
54 check_it="true" assign_to="2"/>
55 </action>
56 </recv>
57 <nop condexec="1"></nop>
58 <nop condexec="2"></nop>
59
60 <send>
61 <![CDATA[
62
63 ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
64 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
65 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
66 To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
67 Call-ID: [call_id]
68 CSeq: 1 ACK
69 Contact: sip:sipp@[local_ip]:[local_port]
70 Max-Forwards: 70
71 Content-Length: 0
72
73 ]]>
74 </send>
75
76 <pause milliseconds="500"/>
77
78 <send retrans="500">
79 <![CDATA[
80
81 BYE sip:[service]@[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: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
85 Call-ID: [call_id]
86 CSeq: 2 BYE
87 Contact: sip:sipp@[local_ip]:[local_port]
88 Max-Forwards: 70
89 Content-Length: 0
90
91 ]]>
92 </send>
93
94 <recv response="200" crlf="true">
95 </recv>
96
97 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
98 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
99
100 </scenario>