Re: Change Default background image on a Phone
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > WebserverTalk Community > Voice Over IP > Voice over IP Cisco > Re: Change Default background image on a Phone




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Change Default background image on a Phone  
Robert Kulagowski


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-07 06:11 PM

Patrick Diener wrote:
> there is some 3th party software that can do that for you, e.g.:
> http://www.voipintegration.com/software.html

If you're cheap, and not afraid of doing it a different way, you can
pretend that there's a user pressing the buttons on the phone itself
with a script file:

$ cat background.sh
LIMIT=253

for ((a=20; a<=LIMIT; a++))
do

wget -O /dev/null --http-user="abcd" --http-passwd="12345"
--post-file=settings.txt http://10.255.2.$a/CGI/Execute
sleep 1

wget -O /dev/null --http-user="abcd" --http-passwd="12345"
--post-file=kp1.txt http://10.255.2.$a/CGI/Execute
sleep 1

wget -O /dev/null --http-user="abcd" --http-passwd="12345"
--post-file=kp2.txt http://10.255.2.$a/CGI/Execute
sleep 1

wget -O /dev/null --http-user="abcd" --http-passwd="12345"
--post-file=kp2.txt http://10.255.2.$a/CGI/Execute
sleep 1

wget -O /dev/null --http-user="abcd" --http-passwd="12345"
--post-file=select.txt http://10.255.2.$a/CGI/Execute
sleep 5
wget -O /dev/null --http-user="abcd" --http-passwd="12345"
--post-file=save.txt http://10.255.2.$a/CGI/Execute
sleep 1

wget -O /dev/null --http-user="abcd" --http-passwd="12345"
--post-file=exit.txt http://10.255.2.$a/CGI/Execute
sleep 1
wget -O /dev/null --http-user="abcd" --http-passwd="12345"
--post-file=exit.txt http://10.255.2.$a/CGI/Execute
echo -n "$a "
done

where
settings.txt is:
 XML=%3CCiscoIPPhoneExecute%3E%3CExecuteI
tem+Priority%3D%220%22+URL%3D%22Key:
 Settings%22%2F%3E%3C%2FCiscoIPPhoneExecu
te%3E
kp1.txt is:
 XML=%3CCiscoIPPhoneExecute%3E%3CExecuteI
tem+Priority%3D%220%22+URL%3D%22Key:
 KeyPad1%22%2F%3E%3C%2FCiscoIPPhoneExecut
e%3E
kp2.txt is:
 XML=%3CCiscoIPPhoneExecute%3E%3CExecuteI
tem+Priority%3D%220%22+URL%3D%22Key:
 KeyPad2%22%2F%3E%3C%2FCiscoIPPhoneExecut
e%3E
select.txt is:
 XML=%3CCiscoIPPhoneExecute%3E%3CExecuteI
tem+Priority%3D%220%22+URL%3D%22Key:
 Soft1%22%2F%3E%3C%2FCiscoIPPhoneExecute%
3E
save.txt is:
 XML=%3CCiscoIPPhoneExecute%3E%3CExecuteI
tem+Priority%3D%220%22+URL%3D%22Key:
 Soft2%22%2F%3E%3C%2FCiscoIPPhoneExecute%
3E
exit.txt is:
 XML=%3CCiscoIPPhoneExecute%3E%3CExecuteI
tem+Priority%3D%220%22+URL%3D%22Key:
 Soft3%22%2F%3E%3C%2FCiscoIPPhoneExecute%
3E

Note that this is a pretty dumb script, because it doesn't check if
there's a phone there.  You can also use the PERL Cisco::Phone module if
you like that sort of stuff.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:41 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register