Aastra 480i Administrator's Manual page 254

Hide thumbs Also See for 480i:
Table of Contents

Advertisement

Example 1:
POST / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*
Referer: http://10.50.10.53
Accept-Language: en-us..Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0
(compatible;MSIE 6.0;
Windows NT 5.0; .NET CLR 1.1.4322)
Host: 10.50.10.49
Content-Length: 194..Connection: Keep-Alive
Cache-Control: no-cache..Authorization: Basic YWRtaW46MjIyMjI=
xml=%3CAastraIPPhoneTextScreen%3E%
%3CTitle%3E480i+Tester%3C%2FTitle%3E
%3CText%3EMessage+to+go+on+phone.++Limit+to+512+bytes.%3C%2FText%3E
%2FAastraIPPhoneTextScreen%3E%
Note: The XML object cannot be larger than 2150 bytes. Any posts larger than this
limit are denied.
Example 2:
Below is a sample php source code which sends an XML object to an Aastra
phone.
<?php
#
function push2phone($server,$phone,$data)
{
# url-encode the xml object
$xml = "xml=".urlencode($data);
$post = "POST / HTTP/1.1\r\n";
$post .= "Host: $phone\r\n";
$post .= "Referer: $server\r\n";
$post .= "Connection: Keep-Alive\r\n";
$post .= "Content-Type: application/x-www-form-urlencoded\r\n";
$post .= "Content-Length: ".strlen($xml)."\r\n\r\n";
$fp = @fsockopen ( $phone, 80, $errno, $errstr, 5);
if($fp)
{
@fputs($fp, $post.$xml);
flush();
fclose($fp);
}
}
##############################
$xml = "<AastraIPPhoneTextScreen>\n";
$xml .= "<Title>Push test</Title>\n";
$xml .= "<Text>This is a test for pushing a screen to a phone </Text>\n";
$xml .= "</AastraIPPhoneTextScreen>\n";
push2phone("172.16.96.63',"172.16.96.75",$xml);
?>
246
IP Phone SIP Admin Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

480i ct9112i9133i

Table of Contents