Vous êtes sur la page 1sur 4

Application Note

SPA 5XX Series XML Scripts for Asterisk


This document provides information on how to configure and use XML Scripts for SPA
5XX Series, tested under 50X and 525G2 to monitor and handle several topics with
Asterisk. This document tries to show all the power you have got with XML scripts on
SPA 5XX Phones
SPA 5XX Series integrates with Asterisk using XML Directives, to show, interact or consult several
information on Asterisk

Contents
Meetme Conferences monitoring

2011 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.

Page 1 of 4

Application Note

SPA 5XX Series XML Scripts for Asterisk

Meetme Conferences Monitoring


This script only works on SPA525G Phones.
This script make possible see how your meetme conference are. Who is inside ,and in which
conference.
This is done in Asterisk thru Manager and setting some variables on Asterisk Database (ASTDB)
Requirements:
-

Asterisk 1.4.x or 1.6.x

SPA 5XX Phone

Webserver (Apache 2 or similar wih PHP Support)

PHP 5 ( 5.2.6-1 and 5.1.49 tested)

PHP5 GD (used to generate graphics)

Prior to that you have to configure your Asterisk Manager in order to accept petitions from php
script.
In this example configure manager.conf on /etc/asterisk as shown.

[general]
enabled = yes
;webenabled = yes
port = 5038

[web]
secret = web
deny=0.0.0.0/0.0.0.0
permit=10.0.0.0/255.255.255.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan,all
write = system,call,agent,user,config,command,reporting,originate,all

Later configure con meetme_xml.php connection to your Asterisk box thru manager as follows.

<?php
$URLXML="SERVER IP";
$meetme=$_GET["meetme"];
if ($meetme == ""){

You have to configure dialplan in asterisk to use meetme conferences.

exten => 300,1,Meetme(1234)

2011 Cisco Systems, Inc. All rights reserved. This document is Cisco Proprietary Information.

Page 2 of 4

Application Note

SPA 5XX Series XML Scripts for Asterisk

And configure in meetme.conf meetme conference number , as in example 1234.


conf => 1234
conf => 6969

Configuring your phone is as easy as put on url XML address the ip address of your webserver and
script name as shown.

Figure 1

Meetme monitor script configuration on SPA 525G with SPA 500S panel

Once its done just press associated line to call xml script we will be prompted to enter which room
we want to monitor.

Figure 2

Meetme script running on SPA 525G

If you want to update status you must press Update in order to update status of meetme
conferences.

2011 Cisco Systems, Inc. All rights reserved. This document is Cisco Proprietary Information.

Page 3 of 4

Application Note

SPA 5XX Series XML Scripts for Asterisk

Figure 3

Room not used Screenshot.

Figure 4

Room with two participants

Printed in USA

2011 Cisco Systems, Inc. All rights reserved. This document is Cisco Proprietary Information.

05/08

Page 4 of 4

Vous aimerez peut-être aussi