New sound API, more sensible and support for echo cancellation's
[firmerware] / src / codec / rtt / uas-passive.sipp
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <!--
3         uas-passive.sipp
4
5         This is a scenario file for SIPP version 2.3.  Invocation:
6
7         sipp -i [::1] -sf uas-passive.sipp
8
9         Replace ::1 with any IPv6 address to use for SIP and RTP.
10
11         It sits and waits for incoming Realtime Text SIP calls,
12         and starts the test utility from the local directory
13         when one comes in.  The call ends when the remote end
14         takes the initiative to do so.
15
16         This is hardly a functional phone, it is just an RTP
17         wrapper for test purposes.
18
19         This file is part of 0cpm Firmerware.
20   
21         0cpm Firmerware is Copyright (c)2011 Rick van Rein, OpenFortress.
22   
23         0cpm Firmerware is free software: you can redistribute it and/or
24         modify it under the terms of the GNU General Public License as
25         published by the Free Software Foundation, version 3.
26   
27         0cpm Firmerware is distributed in the hope that it will be useful,
28         but WITHOUT ANY WARRANTY; without even the implied warranty of
29         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30         GNU General Public License for more details.
31   
32         You should have received a copy of the GNU General Public License
33         along with 0cpm Firmerware.  If not, see <http://www.gnu.org/licenses/>.
34
35 -->
36 <scenario name="Passive RTT UAS">
37
38 <recv request="INVITE">
39   <action>
40         <ereg regexp="c=IN IP6 ([^\r\n]+)" search_in="body" check_it="true" assign_to="whole,remote_media_ip"/>
41         <ereg regexp="m=text ([0-9]+)" search_in="body" check_it="true" assign_to="whole,remote_media_port"/>
42         <log message="RTT remote_media=[$remote_media_ip]:[$remote_media_port]"/>
43         <exec command="echo > ./rtp-setup-pipe [local_ip] 13000 [$remote_media_ip] [$remote_media_port]"/>
44   </action>
45 </recv>
46
47 <send>
48 <![CDATA[
49
50         SIP/2.0 200 OK
51         Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
52         From: <sip:[service]@[remote_ip]:[remote_port]>;[peer_tag_param]
53         To: <sip:rtt@[local_ip]:[local_port]>;tag=[call_number]
54         Call-ID: [call_id]
55         CSeq: [cseq] INVITE
56         Contact: <sip:TODO@[remote_ip]:[remote_port]>
57         Server: SIPP testing RTT
58         Max-Forwards: 70
59         Content-Type: application/sdp
60         Content-Length: [len]
61
62         v=0
63         o=user1 53655765 2353687637 IN IP6 [local_ip]
64         s=-
65         c=IN IP6 [local_ip]
66         t=0 0
67         m=text 13000 RTP/AVP 98 100
68         a=rtpmap:98 t140/1000
69         a=rtpmap:100 red/1000
70         a=fmtp:100 98/98/98
71
72 ]]>
73 </send>
74
75 <recv request="ACK"/>
76
77 <recv request="BYE"/>
78
79 <send>
80 <![CDATA[
81
82         SIP/2.0 200 OK
83         Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
84         From: <sip:[service]@[remote_ip]:[remote_port]>;[peer_tag_param]
85         To: <sip:rtt@[local_ip]:[local_port]>;tag=[call_number]
86         Call-ID: [call_id]
87         CSeq: [cseq] INVITE
88         Contact: <sip:TODO@[remote_ip]:[remote_port]>
89         Server: SIPP testing RTT
90         Max-Forwards: 70
91
92 ]]>
93 </send>
94
95 </scenario>