Cisco IP phone interaction.
More...
|
static | execute ($ipAddr, $message, $user, $pass) |
|
static | dial ($number, $ipAddr, $user, $pass) |
|
static | getInfo ($ipAddr) |
|
Cisco IP phone interaction.
Class to remote interact with Cisco IP-phone 79xx series
- Version
- 1.0
- Author
- Digger mrdig.nosp@m.ger@.nosp@m.sad-s.nosp@m.yste.nosp@m.ms.ru
- Copyright
- (c) 2015, SAD-Systems
Example of usage:
<?php
print_r(
IpPhone::execute(
"172.16.0.1",
'<ExecuteItem Priority="0" URL="Dial:7000"/>',
"user",
"password") );
print_r(
IpPhone::dial(
"7000",
"172.16.0.1",
"user",
"password") );
static dial |
( |
|
$number, |
|
|
|
$ipAddr, |
|
|
|
$user, |
|
|
|
$pass |
|
) |
| |
|
static |
Dail a phone number on Cisco IP Phone
- Parameters
-
string | $number | Number to dial. |
string | $ipAddr | Cisco IP Phone ip-address. |
string | $user | User name (phone associated). |
string | $pass | User password (phone associated). |
- Returns
- array An array same as execute.
- See also
- execute
static execute |
( |
|
$ipAddr, |
|
|
|
$message, |
|
|
|
$user, |
|
|
|
$pass |
|
) |
| |
|
static |
Execute an action on Cisco IP Phone
- Parameters
-
string | $ipAddr | Cisco IP Phone ip-address. |
string | $message | Cisco IP Phone Execute-Item (format: "<ExecuteItem Priority='...' URL='...'/>"). |
string | $user | User name (phone associated). |
string | $pass | User password (phone associated). |
- Returns
- array An array of structure:
array(
'code' => ... ,
'response' => ... ,
'error' => ... ,
'request' => ... ,
'debug' => ...
)
- Exceptions
-
static getInfo |
( |
|
$ipAddr | ) |
|
|
static |
Retrieves Cisco IP Phone information by HTTP request
- Parameters
-
string | $ipAddr | IP address of Cisco phone. |
- Returns
- array An array of the IP phone parameters.
The documentation for this class was generated from the following file: