Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > Cisco 79xx phone XML services

Reply
Thread Tools

Cisco 79xx phone XML services

 
 
Jannar Molden
Guest
Posts: n/a
 
      09-07-2004
Hello all.

I'm starting a game with Cisco IPPhones XML services. My first try is
to push a test page to the phone. Here is the perl script I'm trying
to use with no luck so far.

--
#!/usr/bin/perl -w
use strict;

use LWP::UserAgent;

my $ua = LWP::UserAgent->new;
my $uid = 'John';
my $pwd = 'Doe';
my $uri = '192.168.2.2/cgi-bin/test.pl';
my $phoneIp = '192.168.2.10';

my $xml = "<CiscoIPPhoneExecute><ExecuteItem
URL=\"".$uri."\"/></CiscoIPPhoneExecute>";

$ua->credentials("$phoneIp:80", 'SEP000E38B6C963', $uid, $pwd);
my $response = $ua->post("http://$phoneIp/CGI/Execute",
[
'XML' => $xml
],
'Content-Type' => 'application/x-www-form-urlencoded'
);

print $response->as_string;
--

After I run the script, the phone will authenticate just fine, but
then there is a long silence and after that I get CiscoIPPhoneError
Number="6". I see that the phone is not doing GET as it should, so
there must be an error in my html/xml message.

Any ideas?



 
Reply With Quote
 
 
 
 
Jannar Molden
Guest
Posts: n/a
 
      09-07-2004
On Tue, 07 Sep 2004 10:02:52 +0300, Jannar Molden
<(E-Mail Removed)> wrote:

>my $uri = '192.168.2.2/cgi-bin/test.pl';


Damn! My $uri was missing the protocol http://
PS. Thanks to www.fireweb.fi

Jannar.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Phone to Phone Calling.. From any phone to any other anywhere coolguy17111987 Cisco 0 07-01-2007 07:27 AM
Cisco 79xx SIP phones: web interface ted VOIP 1 08-20-2006 03:53 PM
Quality low cost broadband phone & PC to Phone services John Cisco 0 05-19-2005 03:27 PM
Setting Call Manager IP on 79xx Salvatore Ansani Cisco 1 05-18-2005 01:17 PM
Setting Call Manager IP on 79xx Salvatore Ansani Cisco 0 05-18-2005 09:19 AM



Advertisments