Displaying 2 results from an estimated 2 matches for "checkphone".
2004 Nov 29
1
Polycom Reboot Script PRI errors!!
...Ping;
> use Socket;
>
> $polycompath = '/home/XXXX/'; # Where you keep your config files
> $arp = '/sbin/arp'; # Location of arp command
> $sipserver = '192.168.XXX.XXX'; # IP of asterisk server
>
> $phone = shift;
>
> checkphone("$phone");
> touch( arp2config("$phone") );
>
> reboot_sip_phone( "$phone", "$sipserver", "Reboot" );
>
> sub checkphone { # Checks for existence of phone, makes sure
> # it's in arp table
> $activepho...
2004 Jan 22
2
Polycom Reboot Script - Please wiki-size me
...eboots a Polycom 500 or 600 phone
#
use Net::Ping;
use Socket;
$polycompath = '/home/poly/'; # Where you keep your config files
$arp = '/sbin/arp'; # Location of arp command
$sipserver = '192.168.XXX.XXX'; # IP of asterisk server
$phone = shift;
checkphone("$phone");
touch( arp2config("$phone") );
reboot_sip_phone( "$phone", "$sipserver", "Reboot" );
sub checkphone { # Checks for existence of phone, makes sure
# it's in arp table
$activephone = shift;
# ARP...