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 = '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?
     
    Jannar Molden, Sep 7, 2004
    #1
    1. Advertising

  2. On Tue, 07 Sep 2004 10:02:52 +0300, Jannar Molden
    <> 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.
     
    Jannar Molden, Sep 7, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. m3driver
    Replies:
    0
    Views:
    437
    m3driver
    Jan 10, 2005
  2. m3driver
    Replies:
    0
    Views:
    392
    m3driver
    Jan 10, 2005
  3. Salvatore Ansani

    Setting Call Manager IP on 79xx

    Salvatore Ansani, May 18, 2005, in forum: Cisco
    Replies:
    1
    Views:
    438
    Jonathan
    May 18, 2005
  4. Salvatore Ansani

    Setting Call Manager IP on 79xx

    Salvatore Ansani, May 18, 2005, in forum: Cisco
    Replies:
    0
    Views:
    376
    Salvatore Ansani
    May 18, 2005
  5. ted
    Replies:
    1
    Views:
    640
Loading...

Share This Page