Thursday, August 6, 2009

VoIP Routing - Phone to GSM - Part 2

It is always good to experiment any technologies free. Oof the good things with voip is you can try before you can realize whether something works with zero cost.

Let us try to experiment making few phone calls.

Try to download free softphones.

Below are the softphones i experienced good,

Xlite
Zoiper

The good thing about Zoiper is, it is simple and can communicate with native IAX protocol to asterisk.

Xlite has good features with SIP Protocol, such as recording, conferencing, etc.,

Register http://www.sipphone.com and connect to their service with the two softphones.

Configuration instructions are here,

http://support.gizmo5.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=440

It is very simple. Usual settings to connect to any server. You won't go wrong.

Give a try.

Wednesday, August 5, 2009

Phone to GSM Gateway VoIP Routing - Part 1




It is been request from my friends how to connect Normal phone Number to a GSM Gateway connected remotely in a different country.

This article gives a brush up how to use the SIP Protocol to make VoIP Calls and communicate freely in the internet.

Visit few of the public service providers:

1. http://www.sipphone.com
2. http://www.iptel.org/toboggan/login
3. http://www.sipgate.com/

I find these ones are reliable with their service.

If you would like to have your own server at home. You can use the following softwares as sip proxy.

1. Asterisk
2. openser
3. freeswitch

I would recommend Asterisk, since it is used by large users and enterprise and proven to be stable. It can also even run in routers and embedded devices too.

Try to get the accounts setup or install the softwares in a Linux Machine, Before we go to the next step. I would be choosing, sipphone & Asterisk in my forthcoming examples and configurations.

Wednesday, July 15, 2009

Prism - Making Web Unique

It was one of my need to have multiple users using the same website. Prism gives the comfort of browsing like an application and every time with a click it will launch as desktop application.

Also When I do important stuffs browsers crash often. Even though chrome claims to be the same, it still has the problem of closing all the tabs simultaneously.

Prism removes the hurdle.

http://prism.mozilla.com/

Monday, June 29, 2009

Automate your dialling with Bookmarklets !

It is more often these days we need to look in the number in the website and dial the same number reach the service. Instead you can create a bookmarklet in your browser to send the number by selecting it to asterisk and connect your phone with the service provider with a select and click.

So nothing to paste or no wrong number dialling. Just Select and click.

Asterisk can be communicated through http interface, send an AMI originate command with the number you want to dial in with the format. It goes from there.

Listen to your computer songs anywhere in the air

Recently explored a bit more on the shoutcast to broadcast songs from my machine. It works well with winamp. Download the softwares from shoutcast and install the plugin for winamp appropriately, you are done.

Now open the shoutcast app in your iphone and search for your station. (Make sure you select the option as public radio in yp to search for your radio). Now you are done. You can now listen to your computer songs on your iphone.

One of the features I love it. I would like to extend this for our village benefit, so that we hear village news using this public radio. The bottle neck here is the bandwidth of the broadcaster. I would best use of multicast in this scenerio.

Listen to the blog. More coming.

Wednesday, June 24, 2009

Asterisk How to Capture Events and Handle it with PHP easily, works with all 1.2, 1.4 & 1.6

PHP makes the life easily when it comes to string parsing. Just enjoy to handle the events from asterisk.

#!/usr/bin/php -q

ob_implicit_flush(false);

$socket = fsockopen("hostname or ip","port", $errornum, $errorstr);
if(!$socket) {
print "Couldn't open socket. Error #" . $errornum . ": " . $errorstr;
} else {
fputs($socket, "Action: Login\r\n");
fputs($socket, "UserName: username\r\n");
fputs($socket, "Secret: password\r\n\r\n");
fputs($socket, "Action: Events\r\n");
fputs($socket, "EventMask: on\r\n\r\n");

fgets($socket); // Ignore the welcome message

$change = false;
$agentid = NULL;
$agentchannel = NULL;
$login = NULL;

while(true)
{
while(!feof($socket) )
{

$readbuf = "";
$resp = fread($socket,8192);
$readbuf .= $resp;
$allevents = split("\r\n\r\n",$readbuf);
foreach($allevents as $event)
{
$eventdetails = split("\r\n",$event);
$event_assoc = "";
foreach($eventdetails as $value ) {
$namevalue = split(": ",$value);
$event_assoc[$namevalue[0]] = $namevalue[1];
}
switch( $event_assoc['Event'] )
{
case 'Link': // Calls getting bridged
break;

default:
if( !empty($event_assoc['Event']) )
print_r($event_assoc);
}
}
fputs($socket, "Action: Ping\r\n\r\n");
usleep(1000000);
}

}

}

?>

Friday, June 19, 2009

Internet Radio Station on the Air

It was one of my dream to listen to radio stations from the Internet while driving or in free space without needing any bulky device. With the advanced computing and lightweight chips in electronics Apple made it to happen.

The dream came true with iphone and shoutcast player. You can either listen to the stations available online or you can broadcast your own station from your home pc and listen it everywhere you keep in touch with 3G or on the air networks.

Thanks to Iphone and Shoutcast.