Asterisk IAX2 Trunk Mis-configuration
When adding an IAX2 voip provider, there are two records in the mysql/asterisk/ast_config table that are critical to allowing incoming calls and that are not currently added automatically.
See my (correct) config below (censored personal info)
mysql> select * from ast_config where filename="iax.conf"; +----+------------+------------+-----------+----------+------------+-------------------+---------------------------------------+ | id | cat_metric | var_metric | commented | filename | category | var_name | var_val | +----+------------+------------+-----------+----------+------------+-------------------+---------------------------------------+ | 23 | 0 | 0 | 0 | iax.conf | general | bindport | 4569 | | 24 | 0 | 1 | 0 | iax.conf | general | bindaddr | 0.0.0.0 | | 25 | 0 | 2 | 0 | iax.conf | general | disallow | all | | 26 | 0 | 3 | 0 | iax.conf | general | allow | alaw | | 27 | 0 | 4 | 0 | iax.conf | general | allow | ulaw | | 28 | 0 | 5 | 0 | iax.conf | general | allow | gsm | | 30 | 0 | 7 | 0 | iax.conf | general | mailboxdetail | yes | | 31 | 0 | 8 | 0 | iax.conf | general | iaxcompat | yes | | 32 | 0 | 9 | 0 | iax.conf | general | nochecksums | no | | 33 | 0 | 10 | 0 | iax.conf | general | delayreject | yes | | 34 | 0 | 11 | 0 | iax.conf | general | bandwidth | high | | 35 | 0 | 12 | 0 | iax.conf | general | dtmfmode | auto | | 36 | 0 | 13 | 0 | iax.conf | general | rtcachefriends | yes | | 37 | 0 | 14 | 0 | iax.conf | general | rtupdate | yes | | 38 | 0 | 15 | 0 | iax.conf | general | tos | 0x18 | | 39 | 0 | 16 | 0 | iax.conf | general | maxjitterbuffer | 1000 | | 40 | 0 | 17 | 0 | iax.conf | general | maxjitterinterps | 10 | | 41 | 0 | 18 | 0 | iax.conf | general | jitterbuffer | yes | | 42 | 0 | 19 | 0 | iax.conf | general | resyncthreshold | 1000 | | 43 | 0 | 20 | 0 | iax.conf | general | trunktimestamps | yes | | 44 | 0 | 21 | 0 | iax.conf | general | minregexpire | 120 | | 45 | 0 | 22 | 0 | iax.conf | general | maxregexpire | 300 | | 46 | 0 | 23 | 0 | iax.conf | general | iaxthreadcount | 256 | | 47 | 0 | 24 | 0 | iax.conf | general | iaxmaxthreadcount | 256 | | 81 | 0 | 101 | 0 | iax.conf | general | register | nnnnnnnnnn:ppppppp@iax04.unlimitel.ca | | 89 | 0 | 110 | 0 | iax.conf | nnnnnnnnnn | type | user | | 90 | 0 | 111 | 0 | iax.conf | nnnnnnnnnn | context | from-trunk-nnnnnnnnnn | +----+------------+------------+-----------+----------+------------+-------------------+---------------------------------------+ 27 rows in set (0.00 sec)
nnnnnnnnnn represents my DID/phone number/username ppppppp is my password
The bottom two records I had to add manually, but this should (or at least could) be done automatically upon adding the phone line in webadmin.