|
29 | 29 | */
|
30 | 30 | namespace PAMI\Message\Event;
|
31 | 31 |
|
32 |
| -use PAMI\Message\Event\EventMessage; |
33 |
| - |
34 | 32 | /**
|
35 | 33 | * Event triggered when a call is parked.
|
36 | 34 | *
|
@@ -77,81 +75,249 @@ public function getFrom()
|
77 | 75 |
|
78 | 76 | /**
|
79 | 77 | * Returns key: 'Timeout'.
|
| 78 | + * @deprecated Deprecated since Asterisk 12. {@use ParkingTimeout()}. |
80 | 79 | *
|
81 | 80 | * @return string
|
82 | 81 | */
|
83 | 82 | public function getTimeout()
|
84 | 83 | {
|
85 |
| - return $this->getKey('Timeout'); |
| 84 | + return $this->getParkingTimeout(); |
86 | 85 | }
|
87 | 86 |
|
88 | 87 | /**
|
89 | 88 | * Returns key: 'ConnectedLineNum'.
|
| 89 | + * @deprecated Deprecated since Asterisk 12. {@use getParkeeConnectedLineNum()}. |
90 | 90 | *
|
91 | 91 | * @return string
|
92 | 92 | */
|
93 | 93 | public function getConnectedLineNum()
|
94 | 94 | {
|
95 |
| - return $this->getKey('ConnectedLineNum'); |
| 95 | + return $this->getParkeeConnectedLineNum(); |
96 | 96 | }
|
97 | 97 |
|
98 | 98 | /**
|
99 | 99 | * Returns key: 'ConnectedLineName'.
|
| 100 | + * @deprecated Deprecated since Asterisk 12. {@use getParkeeConnectedLineName()}. |
100 | 101 | *
|
101 | 102 | * @return string
|
102 | 103 | */
|
103 | 104 | public function getConnectedLineName()
|
104 | 105 | {
|
105 |
| - return $this->getKey('ConnectedLineName'); |
| 106 | + return $this->getParkeeConnectedLineName(); |
106 | 107 | }
|
107 | 108 |
|
108 | 109 | /**
|
109 | 110 | * Returns key: 'Channel'.
|
| 111 | + * @deprecated Deprecated since Asterisk 12. {@use getParkeeChannel()}. |
110 | 112 | *
|
111 | 113 | * @return string
|
112 | 114 | */
|
113 | 115 | public function getChannel()
|
114 | 116 | {
|
115 |
| - return $this->getKey('Channel'); |
| 117 | + return $this->getParkeeChannel(); |
116 | 118 | }
|
117 | 119 |
|
118 | 120 | /**
|
119 | 121 | * Returns key: 'CallerIDNum'.
|
| 122 | + * @deprecated Deprecated since Asterisk 12. {@use getParkeeCallerIDNum()}. |
120 | 123 | *
|
121 | 124 | * @return string
|
122 | 125 | */
|
123 | 126 | public function getCallerIDNum()
|
124 | 127 | {
|
125 |
| - return $this->getKey('CallerIDNum'); |
| 128 | + return $this->getParkeeCallerIDNum(); |
126 | 129 | }
|
127 | 130 |
|
128 | 131 | /**
|
129 | 132 | * Returns key: 'CallerIDName'.
|
| 133 | + * @deprecated Deprecated since Asterisk 12. {@use getParkeeCallerIDName()}. |
130 | 134 | *
|
131 | 135 | * @return string
|
132 | 136 | */
|
133 | 137 | public function getCallerIDName()
|
134 | 138 | {
|
135 |
| - return $this->getKey('CallerIDName'); |
| 139 | + return $this->getParkeeCallerIDName(); |
136 | 140 | }
|
137 | 141 |
|
138 | 142 | /**
|
139 | 143 | * Returns key: 'UniqueID'.
|
| 144 | + * @deprecated Deprecated since Asterisk 12. {@use getParkeeUniqueid()}. |
140 | 145 | *
|
141 | 146 | * @return string
|
142 | 147 | */
|
143 | 148 | public function getUniqueID()
|
144 | 149 | {
|
145 |
| - return $this->getKey('UniqueID'); |
| 150 | + return $this->getParkeeUniqueid(); |
146 | 151 | }
|
147 | 152 |
|
148 | 153 | /**
|
149 | 154 | * Returns key: 'Exten'.
|
| 155 | + * @deprecated Deprecated since Asterisk 12. {@use getParkingSpace()}. |
150 | 156 | *
|
151 | 157 | * @return string
|
152 | 158 | */
|
153 | 159 | public function getExtension()
|
154 | 160 | {
|
155 |
| - return $this->getKey('Exten'); |
| 161 | + return $this->getParkingSpace(); |
| 162 | + } |
| 163 | + |
| 164 | + /** |
| 165 | + * Returns key: 'ParkeeChannel'. |
| 166 | + * |
| 167 | + * @return string |
| 168 | + */ |
| 169 | + public function getParkeeChannel() |
| 170 | + { |
| 171 | + return $this->getKey('ParkeeChannel') ?: $this->getKey('Channel'); |
| 172 | + } |
| 173 | + |
| 174 | + /** |
| 175 | + * Returns key: 'ParkeeChannelState'. |
| 176 | + * |
| 177 | + * @return string |
| 178 | + */ |
| 179 | + public function getParkeeChannelState() |
| 180 | + { |
| 181 | + return $this->getKey('ParkeeChannelState'); |
| 182 | + } |
| 183 | + |
| 184 | + /** |
| 185 | + * Returns key: 'ParkeeChannelStateDesc'. |
| 186 | + * |
| 187 | + * @return string |
| 188 | + */ |
| 189 | + public function getParkeeChannelStateDesc() |
| 190 | + { |
| 191 | + return $this->getKey('ParkeeChannelStateDesc'); |
| 192 | + } |
| 193 | + |
| 194 | + /** |
| 195 | + * Returns key: 'ParkeeCallerIDNum'. |
| 196 | + * |
| 197 | + * @return string |
| 198 | + */ |
| 199 | + public function getParkeeCallerIDNum() |
| 200 | + { |
| 201 | + return $this->getKey('ParkeeCallerIDNum') ?: $this->getKey('CallerIDNum'); |
| 202 | + } |
| 203 | + |
| 204 | + /** |
| 205 | + * Returns key: 'ParkeeCallerIDName'. |
| 206 | + * |
| 207 | + * @return string |
| 208 | + */ |
| 209 | + public function getParkeeCallerIDName() |
| 210 | + { |
| 211 | + return $this->getKey('ParkeeCallerIDName') ?: $this->getKey('CallerIDName'); |
| 212 | + } |
| 213 | + |
| 214 | + /** |
| 215 | + * Returns key: 'ParkeeConnectedLineNum'. |
| 216 | + * |
| 217 | + * @return string |
| 218 | + */ |
| 219 | + public function getParkeeConnectedLineNum() |
| 220 | + { |
| 221 | + return $this->getKey('ParkeeConnectedLineNum') ?: $this->getKey('ConnectedLineNum'); |
| 222 | + } |
| 223 | + |
| 224 | + /** |
| 225 | + * Returns key: 'ParkeeConnectedLineName'. |
| 226 | + * |
| 227 | + * @return string |
| 228 | + */ |
| 229 | + public function getParkeeConnectedLineName() |
| 230 | + { |
| 231 | + return $this->getKey('ParkeeConnectedLineName') ?: $this->getKey('ConnectedLineName'); |
| 232 | + } |
| 233 | + |
| 234 | + /** |
| 235 | + * Returns key: 'ParkeeAccountCode'. |
| 236 | + * |
| 237 | + * @return string |
| 238 | + */ |
| 239 | + public function getParkeeAccountCode() |
| 240 | + { |
| 241 | + return $this->getKey('ParkeeAccountCode'); |
| 242 | + } |
| 243 | + |
| 244 | + /** |
| 245 | + * Returns key: 'ParkeeContext'. |
| 246 | + * |
| 247 | + * @return string |
| 248 | + */ |
| 249 | + public function getParkeeContext() |
| 250 | + { |
| 251 | + return $this->getKey('ParkeeContext'); |
| 252 | + } |
| 253 | + |
| 254 | + /** |
| 255 | + * Returns key: 'ParkeeExten'. |
| 256 | + * |
| 257 | + * @return string |
| 258 | + */ |
| 259 | + public function getParkeeExten() |
| 260 | + { |
| 261 | + return $this->getKey('ParkeeExten'); |
| 262 | + } |
| 263 | + |
| 264 | + /** |
| 265 | + * Returns key: 'ParkeePriority'. |
| 266 | + * |
| 267 | + * @return string |
| 268 | + */ |
| 269 | + public function getParkeePriority() |
| 270 | + { |
| 271 | + return $this->getKey('ParkeePriority'); |
| 272 | + } |
| 273 | + |
| 274 | + /** |
| 275 | + * Returns key: 'ParkeeUniqueid'. |
| 276 | + * |
| 277 | + * @return string |
| 278 | + */ |
| 279 | + public function getParkeeUniqueid() |
| 280 | + { |
| 281 | + return $this->getKey('ParkeeUniqueid') ?: $this->getKey('UniqueId'); |
| 282 | + } |
| 283 | + |
| 284 | + /** |
| 285 | + * Returns key: 'ParkerDialString'. |
| 286 | + * |
| 287 | + * @return string |
| 288 | + */ |
| 289 | + public function getParkerDialString() |
| 290 | + { |
| 291 | + return $this->getKey('ParkerDialString'); |
| 292 | + } |
| 293 | + |
| 294 | + /** |
| 295 | + * Returns key: 'ParkingSpace'. |
| 296 | + * |
| 297 | + * @return string |
| 298 | + */ |
| 299 | + public function getParkingSpace() |
| 300 | + { |
| 301 | + return $this->getKey('ParkingSpace') ?: $this->getKey('Exten'); |
| 302 | + } |
| 303 | + |
| 304 | + /** |
| 305 | + * Returns key: 'ParkingTimeout'. |
| 306 | + * |
| 307 | + * @return string |
| 308 | + */ |
| 309 | + public function getParkingTimeout() |
| 310 | + { |
| 311 | + return $this->getKey('ParkingTimeout') ?: $this->getKey('Timeout'); |
| 312 | + } |
| 313 | + |
| 314 | + /** |
| 315 | + * Returns key: 'ParkingDuration'. |
| 316 | + * |
| 317 | + * @return string |
| 318 | + */ |
| 319 | + public function getParkingDuration() |
| 320 | + { |
| 321 | + return $this->getKey('ParkingDuration'); |
156 | 322 | }
|
157 | 323 | }
|
0 commit comments