1
SIP On Mitel / Re: Pushing XML to phone
« on: August 18, 2020, 06:15:36 AM »
Answering my own question, it seems I just needed to use "xml=" on the start of the message sent to the phone.
Code: [Select]
#!/usr/bin/perl -w
use LWP::UserAgent;
use LWP::ConnCache;
use HTTP::Request::Common;
my $ua = LWP::UserAgent->new(agent => 'Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)');
$ua->conn_cache(LWP::ConnCache->new());
# Set icons on
$ua->request( POST 'http://192.168.1.15', Content_Type => 'text/xml', Content => 'xml=<AastraIPPhoneStatus><Session/><Message index="0" type="icon" icon="1"/><Message index="1" type="icon" icon="2"/><IconList><Icon index="1">Icon:DND</Icon><Icon index="2">Icon:CallFwd</Icon></IconList></AastraIPPhoneStatus>' );