AsteriskAtHomeViaTalk

FreePBX / Asterisk@Home Config for ViaTalk

by dsherron

FreePBX / Asterisk@Home working config for ViaTalk tested with A@H 1.3 and FreePBX 2.1.3
Replace all sections in <brackets> with information from your setup email. Do NOT leave the brackets. If you don't have an account yet, email me for a ViaVite coupon before you do. It will save you $25 on your first invoice.
If a section or heading is not mentioned, you may safely leave it blank.

STEP ONE: Click on 'Add Trunk' under 'Trunks' menu:
Be certain to add this trunk as a SIP trunk.

General Setup
  • Outbound Caller ID: This will not matter because ViaTalk will always override your primary number here. You may as well leave it blank.
  • Maximum Channels: I have not yet had more than two channels active, but I have this set at 4. If you test this higher than 2, please let me know. (ViaTalk maxes out at 2 channels per phone line and will return 'CHANUNAVAILABLE' if you use more)

Outgoing Dial Rules
  • Dial Rules: Viatalk wants 11 digit dialing for all numbers, so these two entries wil translate 7 and 10 digit dialed calls into 11 digit dialing.
1<Your Area Code>+NXXXXXX
1+NXXNXXXXXX


Outgoing Settings
  • Trunk Name: viatalk
  • PEER Details:
allow=ulaw
authuser=<Your assigned phone number>
context=from-pstn (This may need to be changed, see below)
disallow=all
dtmf=auto (Note: auto works more reliably than inband here)
dtmfmode=inband (Note: Do NOT use auto here)
fromdomain=<Your assigned server name>
fromuser=<Your assigned phone number>
host=<Your assigned server name>
insecure=very
qualify=yes
secret=<Your assigned server password>
type=peer
username=<Your assigned phone number>


Incoming Settings
Leave this section completely blank. Your incoming settings and DID settings (next step) will allow for incoming calls with no problem.

Registration
  • Register String:
<Your assigned phone number>:<Your assigned server password>@<Your assigned server name>


Click 'Submit Changes' to save the trunk!


STEP TWO: Click on 'Add DID' under 'DID Routes' menu
(in Trixbox, click on Inbound Routes, then click on Add Incoming Route):

Add DID
  • DID Number: <Your assigned phone number>
  • Set Destination:
Your choice, normally 'Use Incoming Calls settings'

Press 'Submit' to save your DID.

Note: If you have assigned a default inbound route to "Any DID / Any CID", you may not need to make a specific entry for ViaTalk, unless you want incoming ViaTalk calls handled differently from other incoming calls. If you have NOT assigned a default inbound route to "Any DID / Any CID", you may not be able to receive incoming calls. And adding an inbound route specifically for ViaTalk may NOT work because ViaTalk apparently doesn't send DID information, at least not to all customers (technically, they treat customers as extensions rather than peers).

There is a quick hack that will fix this:

In extensions_custom.conf, place the following two lines:
[custom-from-viatalk]
exten => _.,1,Goto(from-trunk,myviatalknumber,1)

Replace myviatalknumber with your incoming ViaTalk DID number. Then in the trunk settings, change the context statement to:
context=custom-from-viatalk

The only drawback to this is that if you have multiple numbers associated with your ViaTalk line, they will all come in showing the same DID, but at least you will be able to route your ViaTalk line using your inbound routes.

Also, if you are setting up a brand new account and find that you cannot receive incoming calls despite having a default inbound route to "Any DID / Any CID", go to the Account Management Center on ViaTalk's web site, and try temporarily forwarding your new number to your cell phone or a PSTN line, and see if calls will go through once the number is forwarded - if they do not, it may be an issue with a CLEC not receiving or processing incoming calls correctly, and you may need to contact ViaTalk technical support for assistance.


Next you need to create your outbound routes. Routes cen be very specific or very general, depending on how many providers you have and how you want to use your system. For more details on outbound routes, you can check out this page. For this example, we will set up a single route that will forward all calls dialed with a prefix of 9 to the ViaTalk trunk (ex. 918005551212).


STEP THREE: Select 'Add Routes' from the 'Outbound Routing' menu:

Add Route
  • Route Name: ToViatalk
  • Dial Patterns: 9|.
  • Trunk Sequence: Select 'viatalk' and press the 'Add' button

Click 'Submit Changes' to save your new route.


Click the red 'You have made changes' bar to apply your changes.

At this point you should be able to make and receive calls through ViaTalk, but you must contact ViaTalk tech support (866.626.7150) and ask them to change the dtmf settings on your account to allow the key tones to pass through their system.

Other Links:

FreePBX / Asterisk@Home Config for ViaTalk

by dsherron

FreePBX / Asterisk@Home working config for ViaTalk tested with A@H 1.3 and FreePBX 2.1.3
Replace all sections in <brackets> with information from your setup email. Do NOT leave the brackets. If you don't have an account yet, email me for a ViaVite coupon before you do. It will save you $25 on your first invoice.
If a section or heading is not mentioned, you may safely leave it blank.

STEP ONE: Click on 'Add Trunk' under 'Trunks' menu:
Be certain to add this trunk as a SIP trunk.

General Setup
  • Outbound Caller ID: This will not matter because ViaTalk will always override your primary number here. You may as well leave it blank.
  • Maximum Channels: I have not yet had more than two channels active, but I have this set at 4. If you test this higher than 2, please let me know. (ViaTalk maxes out at 2 channels per phone line and will return 'CHANUNAVAILABLE' if you use more)

Outgoing Dial Rules
  • Dial Rules: Viatalk wants 11 digit dialing for all numbers, so these two entries wil translate 7 and 10 digit dialed calls into 11 digit dialing.
1<Your Area Code>+NXXXXXX
1+NXXNXXXXXX


Outgoing Settings
  • Trunk Name: viatalk
  • PEER Details:
allow=ulaw
authuser=<Your assigned phone number>
context=from-pstn (This may need to be changed, see below)
disallow=all
dtmf=auto (Note: auto works more reliably than inband here)
dtmfmode=inband (Note: Do NOT use auto here)
fromdomain=<Your assigned server name>
fromuser=<Your assigned phone number>
host=<Your assigned server name>
insecure=very
qualify=yes
secret=<Your assigned server password>
type=peer
username=<Your assigned phone number>


Incoming Settings
Leave this section completely blank. Your incoming settings and DID settings (next step) will allow for incoming calls with no problem.

Registration
  • Register String:
<Your assigned phone number>:<Your assigned server password>@<Your assigned server name>


Click 'Submit Changes' to save the trunk!


STEP TWO: Click on 'Add DID' under 'DID Routes' menu
(in Trixbox, click on Inbound Routes, then click on Add Incoming Route):

Add DID
  • DID Number: <Your assigned phone number>
  • Set Destination:
Your choice, normally 'Use Incoming Calls settings'

Press 'Submit' to save your DID.

Note: If you have assigned a default inbound route to "Any DID / Any CID", you may not need to make a specific entry for ViaTalk, unless you want incoming ViaTalk calls handled differently from other incoming calls. If you have NOT assigned a default inbound route to "Any DID / Any CID", you may not be able to receive incoming calls. And adding an inbound route specifically for ViaTalk may NOT work because ViaTalk apparently doesn't send DID information, at least not to all customers (technically, they treat customers as extensions rather than peers).

There is a quick hack that will fix this:

In extensions_custom.conf, place the following two lines:
[custom-from-viatalk]
exten => _.,1,Goto(from-trunk,myviatalknumber,1)

Replace myviatalknumber with your incoming ViaTalk DID number. Then in the trunk settings, change the context statement to:
context=custom-from-viatalk

The only drawback to this is that if you have multiple numbers associated with your ViaTalk line, they will all come in showing the same DID, but at least you will be able to route your ViaTalk line using your inbound routes.

Also, if you are setting up a brand new account and find that you cannot receive incoming calls despite having a default inbound route to "Any DID / Any CID", go to the Account Management Center on ViaTalk's web site, and try temporarily forwarding your new number to your cell phone or a PSTN line, and see if calls will go through once the number is forwarded - if they do not, it may be an issue with a CLEC not receiving or processing incoming calls correctly, and you may need to contact ViaTalk technical support for assistance.


Next you need to create your outbound routes. Routes cen be very specific or very general, depending on how many providers you have and how you want to use your system. For more details on outbound routes, you can check out this page. For this example, we will set up a single route that will forward all calls dialed with a prefix of 9 to the ViaTalk trunk (ex. 918005551212).


STEP THREE: Select 'Add Routes' from the 'Outbound Routing' menu:

Add Route
  • Route Name: ToViatalk
  • Dial Patterns: 9|.
  • Trunk Sequence: Select 'viatalk' and press the 'Add' button

Click 'Submit Changes' to save your new route.


Click the red 'You have made changes' bar to apply your changes.

At this point you should be able to make and receive calls through ViaTalk, but you must contact ViaTalk tech support (866.626.7150) and ask them to change the dtmf settings on your account to allow the key tones to pass through their system.

Other Links:

Created by: dsherron, Last modification: Thu 26 of Jul, 2007 (18:29 UTC) by nblasgen
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+