Thursday, 3 March 2011

AQL and Asterisk Freepbx inbound IAX settings

After spending a lot of time trying to get my new freebpx installation working with inbound calls from AQL I thought it best to document my settings for anyone else out there.

IAX2 Trunk settings
Trunk desc : aql
Outbound caller id : {IAX Caller ID provided by AQL}
CID options : Allow Any CID
--Outgoing settings--
Trunk name : aql
PEER Details:
username={username provided by AQL}
secret={outbound secret provided by AQL}
--Incoming settings--
User context : {username provided by AQL}
username={username provided by AQL}
secret={outbound secret provided by AQL}

The requirecalltoken and context bit kept catching me out.

Once I installed the Asterisk Log freepbx module it was blatently obvious what the problem was when I viewed the log.

[Mar 3 10:35:10] ERROR[3338] chan_iax2.c: Call rejected, CallToken Support required. If unexpected, resolve by placing address x.x.x.x in the calltokenoptional list or setting user username requirecalltoken=no

You'll need to setup an inbound route for the numbers you're expecting calls on and then these inbound routes need pointing at extensions or ring groups etc.

My inbound route settings
Description : Name of person
DID Number : {IAX Caller ID provided by AQL}
Set Destination : Select extension