Click here to Skip to main content
15,881,588 members
Articles / Programming Languages / Visual Basic
Article

The Bridge

Rate me:
Please Sign up or sign in to vote.
1.85/5 (8 votes)
22 Jun 20062 min read 40.5K   1.3K   26   9
This Bridge links the IAX2 client to the GSM mobile network Via a mobile phone and works as a VoIP gateway

Sample Image - The_Bridge.jpg

Introduction

This Bridge links the IAX2 client to the GSM mobile network Via a mobile phone and works as a VoIP gateway. It can be used as asterisk trunk gateway to the GSM network.<o:p>

This program has a very simple user interface and can be customized to any Modem, Mobile phone from the user interface.<o:p>

It uses the asterisk IAX2 protocol and based on the IaxClient Library and with the help of NCT library.<o:p>

If your phone supports Bluetooth and you selected the Bluetooth Audio as the input and output device,the Bluetooth comport to the mobile, you'll get the call totally wirelessly connected J<o:p>

<o:p> 

Background

The basic Idea of the software is to Connect the mobile phone to the software and handle the events from the phone/modem, when the Bridge receive the Invite message from the IAX2 agent, it accepts the call and takes the called number and start dialing out, watching the state of the outbound call, and when the call is answered by the called person, the Bridge answers the IAX call, Just to make sure that the call timer is synchronized to the call progress for a good billing.<o:p>

        Another thing about the bridge, it can be customized to different types of  modems/mobile phones. Currently it supports Sony Ericsson T68i and tested well, you can add your own types, all what you have to do is to get the AT commands list from the vendor and start supplying it in the bridge, all by it's function.<o:p>

        To Add a new type, Select custom from the menu, and change the "<no value>" string in every AT command in the list. Then save, it will be saved in an .INI file in the same folder with the bridge.<o:p>

<o:p> 

Using the code

        The code consist of 6 main modules/Classes .<o:p>

1-    The main window creates the objects of the IAX2 agent and the modem Class.<o:p>

2-    The NCT library, it has the main functions needed to control the IaxClient.dll library.<o:p>

3-    The clsModem class contains the controller for the modem.<o:p>

4-    clcModemCommands handles the AT Command set (Save/Load/Get).<o:p>

5-    ucModemInterface is the user control handles the modem class and simplifies the interfacing.<o:p>

6-    CFG handles the (Save/Load) operations from/to the INI configuration file.<o:p>

History

First beta released <st1:date year="2006" day="18" month="6">18-Jun-2006

<o:p> 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Egypt Egypt
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Questionwhat config trunk in asterisk we have to put to work with bridge ?????????? Pin
Member 344562521-Feb-11 2:26
Member 344562521-Feb-11 2:26 
what config trunk in asterisk we have to put to work with bridge ??????????
Questioncan you put your email to contact you Pin
Member 34456259-Feb-11 23:03
Member 34456259-Feb-11 23:03 
GeneralI'll publish in a new location Pin
Asim A.Baki24-Apr-08 3:45
Asim A.Baki24-Apr-08 3:45 
GeneralCompiled Code Pin
bartp130329-Oct-07 5:05
bartp130329-Oct-07 5:05 
GeneralCompliments and comments Pin
fdl3333-Oct-07 21:03
fdl3333-Oct-07 21:03 
GeneralAsk for a new application... Pin
Joshua Son14-Sep-07 0:06
Joshua Son14-Sep-07 0:06 
GeneralRe: Commercial version [modified] Pin
asm2me12317-Aug-06 19:41
asm2me12317-Aug-06 19:41 
GeneralRe: Commercial version Pin
Gadido12-Oct-06 6:42
Gadido12-Oct-06 6:42 
QuestionCommercial version Pin
organetic25-Jul-06 1:25
organetic25-Jul-06 1:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.