Connect a VoiceBlue Lite (2N) to an Asterisk PBX

The project is quite simple: Call to a foreign cell phone at low cost but great quality. In this case, our "foreing" country is Italy (Bergamo) and the calling party comes from Argentina. The next image represents the scenario.

Asterisk at Bergamo, with a VoiceBlue Lite

Asterisk PBX at Bergamo: 192.168.1.105

VoiceBlue Lite in the same network: 192.168.1.104

VoiceBlue Lite configuration

Materials: 2 SIM cards, a PC running Windows (I use my Oracle VM VirtualBox), USB cable and of course a VoiceBlue Lite.

We will only use the VoiceBlue Lite to make outgoing calls, so the configuration is very simple. First, insert the sim cards into the VoiceBlue, connect it to your PC using the USB cable and power on.

The VoiceBlue Lite with 2 SIM cards

Download and install the configuration tool from 2n.cz

Connect the VB Lite to your PC using the USB cable.

Goto system parameters and set the IP, subnet mask and gateway. Each time you make a change, click on save to the gate.

VoiceBlue - System parameters

Goto VoIP parameters and set the RTP ports, registration domain, name, SIP proxy, SIP registrar and ports

VoiceBlue - VoIP parameters

Now, set the configurations to the default GSM group. Set delay for ALERTING to 3... or 4s. If you leave this to 0, is possible that you can't hear the ring tone.

VoiceBlue - GSM out groups

Interconnect the two Asterisk Server with a IAX trunk

Well... We have one server at Buenos Aires, and the other one at Bergamo.

At Buenos Aires, create an IAX2 trunk as shown here:

[general]
...
register=buenosaires:yoursecret@bergamo.******.org

[bergamo]
deny=all
allow=ulaw,alaw
type=friend
host=bergamo.******.org
qualify=yes
context=from-internal
secret=yoursecret

At Bergamo, create an IAX2 trunk as shown here:

[general]
...
register=bergamo:yoursecret@buenosaires.*****.org

[buenosaires]
deny=all
allow=ulaw,alaw
type=friend
host=buenosaires.*****.org
qualify=yes
context=from-internal
secret=yoursecret

Asterisk trunk configuration

Open your FreePBX and create a new SIP trunk. Name it.. voiceblue and put this peer details:

disallow=all
allow=ulaw&alaw
host=192.168.1.104
port=5061
type=friend
qualify=yes

Then, you have to create an outbound route associating the voiceblue trunk at Bergamo server, and an outbound route associating the bergamo trunk at Buenos Aires server. Thus, when a phone Dial a number that start by 00393. this travels through the route bergamo and then, place the call to the trunk voiceblue...

Restart.

Enjoy