1 # application-rtpgw.tcl --
2 #
3 # FIXME: This file needs a description here.
4 #
5 # Copyright (c) 1997-2002 The Regents of the University of California.
6 # All rights reserved.
7 #
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions are met:
10 #
11 # A. Redistributions of source code must retain the above copyright notice,
12 # this list of conditions and the following disclaimer.
13 # B. Redistributions in binary form must reproduce the above copyright notice,
14 # this list of conditions and the following disclaimer in the documentation
15 # and/or other materials provided with the distribution.
16 # C. Neither the names of the copyright holders nor the names of its
17 # contributors may be used to endorse or promote products derived from this
18 # software without specific prior written permission.
19 #
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
21 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
24 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 #
31 # @(#) $Header: /usr/mash/src/repository/mash/mash-1/tcl/rtpgw/application-rtpgw.tcl,v 1.24 2002/02/03 04:29:18 lim Exp $
32
33
34 #source tcl/common/observe.tcl
35 #source tcl/common/util.tcl
36
37 #source tcl/common/application.tcl
38 #source tcl/common/application-rtp.tcl
39 #source tcl/net/agent-rtp.tcl
40 #source tcl/net/network.tcl
41 #source tcl/net/source-rtp.tcl
42 #source tcl/net/rtp.tcl
43 #source tcl/mbp/cb-mbp.tcl
44 #source tcl/rtpgw/agent-rtpgw.tcl
45 #source tcl/rtpgw/sm-rtpgw.tcl
46 #source tcl/rtpgw/encoders.tcl
47 #source tcl/common/timer.tcl
48 #source tcl/common/sdp.tcl
49 #source tcl/net/al.tcl
50 #source tcl/mega/al-mega.tcl
51 #source tcl/mega/al-gw.tcl
52 #source tcl/mega/al-client.tcl
53
54 import RTPApplication
55
56 Class RTPGWApplication -superclass RTPApplication
57
58 RTPGWApplication instproc init_args o {
59
60 $o register_option -A sessionType
61 $o register_option -I confBusChannel
62 $o register_option -g filterGain
63 $o register_option -u userhookFile
64 $o register_option -usemega megaSession
65 $o register_option -megactrl asCtrl
66 $o register_option -megaclient megaClient
67 $o register_option -maxsbw maxSessionBW
68 $o register_option -sbw localSessionBW
69 $o register_option -sspec sessionSpec
70 $o register_option -ofmt megaFormat
71 $o register_option -rport megaRecvPort
72 }
73
74 RTPGWApplication instproc init_resources o {
75 $o add_default siteDropTime 300
76
77 $o add_default startupIdleTime 120000
78
79 $o add_default confBusChannel 3
80 $o add_default filterGain 0.25
81 $o add_default sessionType rtp
82 $o add_default defaultTTL 1
83
84 $o add_default maxSessionBW 1000000
85 $o add_default asCtrl 224.4.5.24/50000/31
86 $o add_default asCtrlBW 20000
87 }
88
89 RTPGWApplication private check_extra { argv } {
90 $self instvar name_
91
92 if { $argv != "" } {
93 set extra [lindex $argv 0]
94 puts stderr "$name_: extra arguments (starting with $extra)"
95 exit 1
96 }
97 }
98
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.