Sunday, October 25, 2009

ajdmserver - Asterisk Java Fast Agi OSGi dynamic module

Embed Asterisk-Java FastAgi server into SpringSource dmServer

Main benfits of using ajdmserver:

* hot deploy of scripts without stopping or restarting server
* www administration panel ((server starting/stoping, deploying scripts, listing servers, statistics)
* no changes in way of creating scripts- just implement AgiScript interface
* access to OSGi services inside your applications
* multiple agi servers in one application
* easy access to all advantages of Spring framework (IoC, JDBC Spring Abstraction Layer, J2EE resources access and much more...)

check out the project (developed and mantained by my colleague) at google code

Sunday, October 18, 2009

SIP applications ...in PHP

With basic SIP knowledge and a few lines of code any PHP developer can develop SIP applications. PHP-SIP is a PHP implementation of a SIP UA that allows to implement things like click-to-call, message waiting indications or SIMPLE based instant messages.

On Level 7 Systems' blog they show how to implement click-to-call functionality
triggered from a web page - in a relatively simple PHP script.


$api = new PhpSIP();

$api->setDebug(true);

$api->addHeader('Subject: click2call');
$api->setMethod('INVITE');
$api->setFrom('sip:c2c@'.$api->getSrcIp());
$api->setUri($from);

$res = $api->send();

if ($res == 200)
{
$api->setMethod('REFER');
$api->addHeader('Refer-to: '.$to);
$api->addHeader('Referred-By: sip:c2c@'.$api->getSrcIp());
$api->send();

$api->setMethod('BYE');
$api->send();

$api->listen('NOTIFY');
$api->reply(481,'Call Leg/Transaction Does Not Exist');
}



Check it out the full application here:
Click to Call with PHP-SIP

more on google wave

some interresting things I have come across related to what google wave might bring us.

Pulp Fiction quotes wave
cool video with quotes form Pulp Fiction showing the different functionalities and mashups that are possbile within a wave. I think this basically shows what wave is all about.



Voice collaboration in Waves ..by Ribbit
Two voice gadgets are brought to wave by combining the Ribbit REST API and Wave API. Ribbit conference gadget allows for wave participants to join a real time conference call. And Ribbit mesage gadget allows session members to leave each other offline voice messages. The gadget displays the transcription of the message while the actual recording is attached as an mp3.

Conversation Streams in Google Wave
Powered by Ribbit


Ribbit brings voice collaboration to Google Wave

Asterisk and Google Wave
10 possible ideas on how to integrate google wave sessions with asterisk functionalities

Asterisk and Google Wave: 10 ideas