-
Notifications
You must be signed in to change notification settings - Fork 0
/
innoconfB.xml
66 lines (65 loc) · 2.75 KB
/
innoconfB.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="utf-8" ?>
<voicemail>
<!-- innovaphone Conference Control XML for conferencing unit == inno srl V1.00 KWA 2010 -->
<function define="Main">
<assign out="$_pbxcoder" value="g711a" />
<wait sec="1"/>
<event type="call-end">
<dbg string="INNOCONF-STATUS: call-end, begin cleanup"/>
<dbg string="INNOCONF-STATUS: cleanup join directory"/>
<store-getnext root="join" out-handle="$handle" out-url="$member"/>
<while cond="$member">
<store-del root="" name="$member"/>
<store-getnext root="join" handle="$handle" out-url="$member"/>
</while>
<dbg string="INNOCONF-STATUS: cleanup leave directory"/>
<store-getnext root="leave" out-handle="$handle" out-url="$member"/>
<while cond="$member">
<store-del root="" name="$member"/>
<store-getnext root="leave" handle="$handle" out-url="$member"/>
</while>
<dbg string="INNOCONF-STATUS: cleanup conference name"/>
<store-del root="" name="names/Conferencename.g711a"/>
<dbg string="INNOCONF-STATUS: call-end, end cleanup"/>
</event>
<while notcond="$Teiln-ok">
<dbg string="INNOCONF-STATUS: main loop started"/>
<wait sec="2"/>
<call name="CheckifNew" />
<wait sec="2"/>
<call name="Leaving" />
</while>
</function>
<!-- check if new entry -->
<function define="CheckifNew">
<dbg string="INNOCONF-STATUS: check if new"/>
<store-getnext root="join" out-handle="$handle" out-url="$member"/>
<while cond="$member">
<store-get root="" name="ding.g711a" out-url="$ctrl" />
<pbx-prompt url="$ctrl" />
<store-split url="$member" out-path="$path" out-file="$file" out-cgpn="$Wavefile"/>
<store-get root="names" name="$file" out-url="$url"/>
<pbx-prompt url="$url"/>
<store-del root="join" name="$file"/>
<store-get root="" name="join.g711a" out-url="$ctrl" />
<pbx-prompt url="$ctrl" />
<store-getnext root="join" handle="$handle" out-url="$member"/>
</while>
</function>
<!-- check if leaving -->
<function define="Leaving">
<dbg string="INNOCONF-STATUS: check if leaving"/>
<store-getnext root="leave" out-handle="$lhandle" out-url="$lmember"/>
<while cond="$lmember">
<store-get root="" name="ding.g711a" out-url="$ctrl" />
<pbx-prompt url="$ctrl" />
<store-split url="$lmember" out-path="$path" out-file="$file" out-cgpn="$LWavefile"/>
<store-get root="names" name="$file" out-url="$url"/>
<pbx-prompt url="$url"/>
<store-del root="leave" name="$file"/>
<store-get root="" name="leave.g711a" out-url="$ctrl" />
<pbx-prompt url="$ctrl" />
<store-getnext root="leave" handle="$lhandle" out-url="$lmember"/>
</while>
</function>
</voicemail>