News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

12.04 Asterisk Inbound Call Problem

Started by davegravy, December 07, 2014, 11:51:56 PM

Previous topic - Next topic

davegravy

I managed to get outbound calls working fairly easily by setting up my VOIP account and adding phones in webadmin.

Inbound was a problem as I was getting a "no authority found" error. The only way I discovered to fix it was to abandon the realtime mysql-based iax.conf config and switch instead to a flat-file. Also it was more than a matter of simply porting the lines from the database to the flat file as the mysql configuration was simply wrong. There is no automatically generated

[##########]
type=user
context=from-trunk-##########


section in the database (where ########## is my phone number) which apparently is required.

In summary, everything seems to be working now after doing:

1. comment out the line "iax.conf => mysql,general,ast_config" in /etc/asterisk/extconfig.conf
2. move everything from the mysql table for iax.conf to an actual iax.conf file in /etc/asterisk
3. add the code section above to the iax.conf file
4. reload asterisk

Obviously this is a band-aid solution, but it has things going for the time being.


davegravy


davegravy

I got it working with realtime (i.e mysql version of the config). I had been including square brackets around the section name as is done in the flat file, but realtime expects there to be no such brackets.

Will file a ticket to have LMCE automagically add the necessary user section when an IAX2 trunk is added.