Cisco 79xx phone XML services

Discussion in 'Cisco' started by Jannar Molden, Sep 7, 2004.

  1. 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 = '';
    my $phoneIp = '';

    my $xml = "<CiscoIPPhoneExecute><ExecuteItem

    $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?
    Jannar Molden, Sep 7, 2004
    1. Advertisements

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

    Jannar Molden, Sep 7, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.