| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package VoiceXML::Client::DeviceHandle; |
|
2
|
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
18
|
use VoiceXML::Client::Util; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
73
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
17
|
use strict; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
104
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# just need to define an interface for device handles... |
|
8
|
|
|
|
|
|
|
# this really only tells you where to look for the API |
|
9
|
|
|
|
|
|
|
|
|
10
|
3
|
|
|
|
|
300
|
use vars qw { |
|
11
|
|
|
|
|
|
|
%Defaults |
|
12
|
|
|
|
|
|
|
$VERSION |
|
13
|
3
|
|
|
3
|
|
16
|
}; |
|
|
3
|
|
|
|
|
7
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
$VERSION = '1.0.0'; |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 VoiceXML::Client::Vars |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
VoiceXML::Client::Vars - A few commonly used variables and defaults |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 AUTHOR |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
LICENSE |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
VoiceXML::Client::DeviceHandle module, device handle api based on the VOCP voice messaging system package |
|
32
|
|
|
|
|
|
|
VOCP::Device. |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Copyright (C) 2008 Patrick Deegan |
|
35
|
|
|
|
|
|
|
All rights reserved |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This file is part of VoiceXML::Client. |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
VoiceXML::Client is free software: you can redistribute it and/or modify |
|
41
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
|
42
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
|
43
|
|
|
|
|
|
|
(at your option) any later version. |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
VoiceXML::Client is distributed in the hope that it will be useful, |
|
46
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
47
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
48
|
|
|
|
|
|
|
GNU General Public License for more details. |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
|
51
|
|
|
|
|
|
|
along with VoiceXML::Client. If not, see . |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
%Defaults = ( |
|
58
|
|
|
|
|
|
|
'timeout' => 6, |
|
59
|
|
|
|
|
|
|
'numrepeat' => 3, |
|
60
|
|
|
|
|
|
|
'device' => 'DIALUP_LINE', |
|
61
|
|
|
|
|
|
|
'tempdir' => '/tmp', |
|
62
|
|
|
|
|
|
|
'autostop' => 1, |
|
63
|
|
|
|
|
|
|
); |