Cradle  0.3.3
Simple library for creating Web-based applications
IpPhone Class Reference

Cisco IP phone interaction. More...

Static Public Member Functions

static execute ($ipAddr, $message, $user, $pass)
 
static dial ($number, $ipAddr, $user, $pass)
 
static getInfo ($ipAddr)
 

Detailed Description

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

Example of usage:

<?php
//--- Execute some action on a phone:
print_r( IpPhone::execute("172.16.0.1", '<ExecuteItem Priority="0" URL="Dial:7000"/>', "user", "password") );
//--- Dial a number:
print_r( IpPhone::dial("7000", "172.16.0.1", "user", "password") );
//--- Get IP phone info:
print_r( IpPhone::getInfo("172.16.0.1") );

Member Function Documentation

static dial (   $number,
  $ipAddr,
  $user,
  $pass 
)
static

Dail a phone number on Cisco IP Phone

Parameters
string$numberNumber to dial.
string$ipAddrCisco IP Phone ip-address.
string$userUser name (phone associated).
string$passUser 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$ipAddrCisco IP Phone ip-address.
string$messageCisco IP Phone Execute-Item (format: "<ExecuteItem Priority='...' URL='...'/>").
string$userUser name (phone associated).
string$passUser password (phone associated).
Returns
array An array of structure:
array(
'code' => ... ,
'response' => ... ,
'error' => ... ,
'request' => ... ,
'debug' => ...
)
Exceptions
Exception
static getInfo (   $ipAddr)
static

Retrieves Cisco IP Phone information by HTTP request

Parameters
string$ipAddrIP address of Cisco phone.
Returns
array An array of the IP phone parameters.

The documentation for this class was generated from the following file: