AGI sample – currency converter using web service

Bellow is an AGI sample to convert currency using a web service:

Step 1) create an extension in /etc/asterisk/extensions_custom.conf

exten => *777,1,AGI(currency.php)
exten => *777,n,hangup()

Step 2) Create currency.php in /var/lib/asterisk/agi-bin

#!/usr/bin/php -q

//fetch the web service and store the result into $curr
$xml = new SimpleXMLElement($res);

$agi->text2wav("Currency rate from $fromCurrency to $toCurrency is");
$agi->text2wav("Thank you");
Continue Reading

google Chrome in ubuntu 10.10

This brief tutorial will show you how to install Google Chrome (Chromium) in Ubuntu lucid or Maverick via PPA. Installing programs via Ubuntu PPA allows for automatic updates, upgrades and maintenance. If you’re currently using Google Chrome in Windows and want the same for your Ubuntu machine, then this tutorial should help you get there.

Continue Reading
1 4 5 6 7 8 10