I don't know if this is already common knowledge, and it's not specificly for Asterisk, but if you are using Cisco phones and want to roll XML applications, make sure you have "Connection: close" in your HTTP header. Without it screen loads are very sluggish. In PHP, do: header("Connection: close"); I whipped up quick-and-dirty PHP/MySQL/Cisco XML directory and PHP/X10/Cisco XML light control applications today, they are working great with 7960 phones with SIP image 5.3 and Asterisk CVS. -d
> I whipped up quick-and-dirty PHP/MySQL/Cisco XML directory > and PHP/X10/Cisco XML light control applications today, > they are working great with 7960 phones with SIP image 5.3 > and Asterisk CVS.That sounds cool! Where did you get the info on Cisco XML stuff and would you be willing to share? Cheers Paul
Great stuff !! Could you share your sources ?? Thanks ! On Thu, 2003-09-11 at 07:44, Doug Dimick wrote:> I don't know if this is already common knowledge, and it's not specificly > for Asterisk, but if you are using Cisco phones and want to roll XML > applications, make sure you have "Connection: close" in your HTTP header. > Without it screen loads are very sluggish. In PHP, do: > > header("Connection: close"); > > I whipped up quick-and-dirty PHP/MySQL/Cisco XML directory and > PHP/X10/Cisco XML light control applications today, they are working great > with 7960 phones with SIP image 5.3 and Asterisk CVS. > > -d
Herry Sitepu
2003-Sep-11 01:06 UTC
[Asterisk-Users] Is there any MFC-R2 implementation for asterisk?
Hi guys, Is there anyone has implemented MFC-R2 for astrisk? Regards Herry Sitepu
I've been building a number of applications (SMS gateway, 411 directory interfaces, blah blah) recently along the same lines, I am mostly using Perl/MySQL and of course using the Cisco XML interface. I noticed people requesting more information on the XML interface and so I thought I'd drop a note for those interested. Most of the XML information is available on Cisco's site but there is also a Perl module specifically designed for people creating applications for the 79xx phones, its called Cisco::IPPhone and you can find pretty much everything you need within the authors code ... http://search.cpan.org/author/MRPALMER/Cisco-IPPhone-0.05/IPPhone.pm Rgds, Adam> -----Original Message----- > From: Marcel Prisi [mailto:marcel@virtua.ch] > Sent: 11 September 2003 10:00 > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] Cisco 7940/7960 XML application hint >********* DISCLAIMER ********* This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person
> Message: 4 > From: "Paul Crick" <web-asterisk-users@ivrl.com><snip>> That sounds cool! Where did you get the info on Cisco XML stuff and would > you be willing to share? > > Cheers > PaulI downloaded the SDK from Cisco and looked at the included ASP/JSP applications for some hints as well as the documentation they included. I also looked the the Perl Cisco::IPPhone CPAN module (http://www.cpan.org/modules/by-module/Cisco) for syntax, but am not actually using it. It just seemed that PHP was more appropriate to this type of application than Perl. The Cisco XML syntax is straightforward, although it appears that the SIP image does not support assignment of the softkeys. It also doesn't support the http expires header, which is supposed to be used by the phone to determine which pages to keep in its browser history. I would bet that these would not be issues with the SCCP image, but I have not had a chance to mess with the Asterisk SCCP module yet. Assuming you already have working 7940s or 7960s, you need to edit your SIPDefault.cnf file on your tftp server. The "services_url" and "directory_url" variables should point to your web server. For example: services_url: "http://192.168.200.254/asterisk/services/" You can assign "logo_url" to point at a 256-color Windows BMP image on your web server. Took me forever to figure that one out, as in every other case the phone wants images in CIP format. The Cisco::IPPhone module includes methods for converting PNG and JPEG images to CIP on the fly for using images in your applications, and I have not attempted to figure out how to do this in PHP yet. For example: logo_url: "http://192.168.200.254/asterisk/logo/asterisk.bmp" My PHP source is very ugly at the moment with quick hacks and no error trapping to speak of, but you are welcome to it. Everything except the logo is GPL, and the x10 script is a derived work of PHP-x10. I'll look at the terms of the Cisco SDK license and see if I can post the document that describes the Cisco XML syntax. Phone directory search. http://doug.dimick.net/asterisk/directory.tar.bz2 Lousy Asterisk logo by yours truly. http://doug.dimick.net/asterisk/logo.tar.bz2 Phone directory maintenance (add/remove entries) and X10 lighting controls. http://doug.dimick.net/asterisk/services.tar.bz2 -d