1 | <?php |
||
29 | class Dial extends Event |
||
30 | { |
||
31 | /** |
||
32 | * Valid dialstatus values |
||
33 | */ |
||
34 | const DIALSTATUS_ANSWER = 'answer'; |
||
35 | const DIALSTATUS_BUSY = 'busy'; |
||
36 | const DIALSTATUS_NOANSWER = 'noanswer'; |
||
37 | const DIALSTATUS_CANCEL = 'cancel'; |
||
38 | const DIALSTATUS_CONGESTION = 'congestion'; |
||
39 | const DIALSTATUS_CHANUNAVAIL = 'chanunavail'; |
||
40 | const DIALSTATUS_DONTCALL = 'dontcall'; |
||
41 | const DIALSTATUS_TORTURE = 'torture'; |
||
42 | const DIALSTATUS_INVALIDARGS = 'invalidargs'; |
||
43 | |||
44 | /** |
||
45 | * @var Channel (optional) - The channel on which the variable was set. If missing, the variable is a global variable. |
||
46 | */ |
||
47 | private $caller; |
||
48 | |||
49 | /** |
||
50 | * @var string Current status of the dialing attempt to the peer. |
||
51 | */ |
||
52 | private $dialstatus; |
||
53 | |||
54 | /** |
||
55 | * @var string (optional) - The dial string for calling the peer channel. |
||
56 | */ |
||
57 | private $dialstring; |
||
58 | |||
59 | /** |
||
60 | * @var string (optional) - Forwarding target requested by the original dialed channel. |
||
61 | */ |
||
62 | private $forward; |
||
63 | |||
64 | /** |
||
65 | * @var Channel (optional) - Channel that the caller has been forwarded to. |
||
66 | */ |
||
67 | private $forwarded; |
||
68 | |||
69 | /** |
||
70 | * @var Channel The dialed channel. |
||
71 | */ |
||
72 | private $peer; |
||
73 | |||
74 | /** |
||
75 | * @return Channel (optional) - The calling channel. |
||
76 | */ |
||
77 | public function getCaller() |
||
81 | |||
82 | /** |
||
83 | * @return string - Current status of the dialing attempt to the peer. |
||
84 | */ |
||
85 | public function getDialstatus() |
||
89 | |||
90 | /** |
||
91 | * @return string (optional) - The dial string for calling the peer channel. |
||
92 | */ |
||
93 | public function getDialstring() |
||
97 | |||
98 | /** |
||
99 | * @return string (optional) - Forwarding target requested by the original dialed channel. |
||
100 | */ |
||
101 | public function getForward() |
||
105 | |||
106 | /** |
||
107 | * @return Channel (optional) - Forwarding target requested by the original dialed channel. |
||
108 | */ |
||
109 | public function getForwarded() |
||
113 | |||
114 | /** |
||
115 | * @return Channel The dialed channel. |
||
116 | */ |
||
117 | public function getPeer() |
||
121 | |||
122 | /** |
||
123 | * @param AriClient $client |
||
124 | * @param string $response |
||
125 | */ |
||
126 | public function __construct(AriClient $client, $response) |
||
137 | } |
||
138 |