Here is my configurations for iaxmodem and asterisk iax.conf. I have been working for around a month with different info I have read in these forums and other sites but so far I can't get iaxmodem to register. Any help is appreciated.
Your iax.conf context entry looks a bit odd with "dynamic=yes". (Is that even an allowable directive?) The "host=" and "port=" entries seem to conflict with any meaning of "dynamic" or registration.
Anyway, probably the best approach to troubleshooting registration errors is to watch the Asterisk CLI as it attempts registration and to see what it says.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've removed the dynamic=yes entry. I'm not sure where I got the entry I had to have found it on some site somewhere. Like I said I've been trying for a long time with a lot of different configurations. I'm not sure how to watch CLI as it registers. I restarted asterisk to reload the configuration then I have a terminal open in CLI>iax2 show peers with this output
iax2 show peers
Name/Username Host Mask Port Status Description
ttyIAX0 127.0.0.1 (S) 255.255.255.255 12502 Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]
then i run /usr/local/sbin/iaxmodem ttyIAX0 in another terminal window while CLI is open this is the output of the second terminal, while the CLI terminal info doesn't change during or after the modem is started.
root@testbox:~ # /usr/local/sbin/iaxmodem ttyIAX0 [2018-12-27 21:23:33] Modem started [2018-12-27 21:23:33] Setting device = '/dev/ttyIAX0' [2018-12-27 21:23:33] Setting owner = 'uucp:uucp' [2018-12-27 21:23:33] Setting mode = '660' [2018-12-27 21:23:33] Setting port = 12502 [2018-12-27 21:23:33] Setting refresh = 300 [2018-12-27 21:23:33] Setting server = '127.0.0.1' [2018-12-27 21:23:33] Setting peername = 'ttyIAX0' [2018-12-27 21:23:33] Setting secret =password [2018-12-27 21:23:33] Setting cidname = 'FAX' [2018-12-27 21:23:33] Setting cidnumber = xxxxxxxxxx [2018-12-27 21:23:33] Setting codec = ulaw [2018-12-27 21:23:33] Opened pty, slave device: /dev/pts/2 [2018-12-27 21:23:33] Created /dev/ttyIAX0 symbolic link [2018-12-27 21:23:34] Registration failed. [2018-12-27 21:24:00] Hanging Up [2018-12-27 21:24:08] Hanging Up [2018-12-27 21:28:28] Registration failed.
Last edit: Jackie Roberts 2018-12-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am having the same problem! Asterisk 13.4 and iaxmodem 1.3.0. I traced it to a test in chan_iax2.c. It was complaining that the "peer was not dynamic". I commented out that test, and
now it registers successfully.
/
if (!ast_test_flag64(p, IAX_DYNAMIC)) {
if (authdebug)
ast_log(LOG_NOTICE, "Peer '%s' is not dynamic (from %s)\
goto return_unref;
}/
My understanding is that "dynamic" means that a peer does not have a configured IP address - so it is wherever it is. Iaxmodem is of course not "dynamic" because it is at 127.0.0.1 aka "localhost".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is my configurations for iaxmodem and asterisk iax.conf. I have been working for around a month with different info I have read in these forums and other sites but so far I can't get iaxmodem to register. Any help is appreciated.
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 12502
refresh 300
server 127.0.0.1
peername ttyIAX0
secret password
cidname FAX
cidnumber xxxxxxxxxxx
codec ulaw
[ttyIAX0]
requirecalltoken=no
secret=password
dynamic=yes
context=from-internal
host=127.0.0.1
type=friend
port=12502
disallow=all
allow=ulaw
Last edit: Jackie Roberts 2018-12-27
Last edit: Jackie Roberts 2018-12-27
Your iax.conf context entry looks a bit odd with "dynamic=yes". (Is that even an allowable directive?) The "host=" and "port=" entries seem to conflict with any meaning of "dynamic" or registration.
Anyway, probably the best approach to troubleshooting registration errors is to watch the Asterisk CLI as it attempts registration and to see what it says.
I've removed the dynamic=yes entry. I'm not sure where I got the entry I had to have found it on some site somewhere. Like I said I've been trying for a long time with a lot of different configurations. I'm not sure how to watch CLI as it registers. I restarted asterisk to reload the configuration then I have a terminal open in CLI>iax2 show peers with this output
iax2 show peers
Name/Username Host Mask Port Status Description
ttyIAX0 127.0.0.1 (S) 255.255.255.255 12502 Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]
then i run /usr/local/sbin/iaxmodem ttyIAX0 in another terminal window while CLI is open this is the output of the second terminal, while the CLI terminal info doesn't change during or after the modem is started.
root@testbox:~ # /usr/local/sbin/iaxmodem ttyIAX0
[2018-12-27 21:23:33] Modem started
[2018-12-27 21:23:33] Setting device = '/dev/ttyIAX0'
[2018-12-27 21:23:33] Setting owner = 'uucp:uucp'
[2018-12-27 21:23:33] Setting mode = '660'
[2018-12-27 21:23:33] Setting port = 12502
[2018-12-27 21:23:33] Setting refresh = 300
[2018-12-27 21:23:33] Setting server = '127.0.0.1'
[2018-12-27 21:23:33] Setting peername = 'ttyIAX0'
[2018-12-27 21:23:33] Setting secret =password
[2018-12-27 21:23:33] Setting cidname = 'FAX'
[2018-12-27 21:23:33] Setting cidnumber = xxxxxxxxxx
[2018-12-27 21:23:33] Setting codec = ulaw
[2018-12-27 21:23:33] Opened pty, slave device: /dev/pts/2
[2018-12-27 21:23:33] Created /dev/ttyIAX0 symbolic link
[2018-12-27 21:23:34] Registration failed.
[2018-12-27 21:24:00] Hanging Up
[2018-12-27 21:24:08] Hanging Up
[2018-12-27 21:28:28] Registration failed.
Last edit: Jackie Roberts 2018-12-28
I am having the same problem! Asterisk 13.4 and iaxmodem 1.3.0. I traced it to a test in chan_iax2.c. It was complaining that the "peer was not dynamic". I commented out that test, and
now it registers successfully.
/
if (!ast_test_flag64(p, IAX_DYNAMIC)) {
if (authdebug)
ast_log(LOG_NOTICE, "Peer '%s' is not dynamic (from %s)\ goto return_unref;
}/
My understanding is that "dynamic" means that a peer does not have a configured IP address - so it is wherever it is. Iaxmodem is of course not "dynamic" because it is at 127.0.0.1 aka "localhost".