This is an asterisk novice question. I have worked in networking and systems for nearly 30 years. I have spent the last few hours reading whatever I could find on asterisk, yet I find majority of documentation on extensions incomprehensible. I’m having a sendmail deja vu.
I’ve installed asterisk on CentOS 6.3 without problems. I have configured a couple of simple users in sip.conf:
[2001]
type=friend
host=dynamic
directmedia=yes
secret=2001
[2012]
type=friend
host=dynamic
directmedia=yes
secret=2002
When comes to configuring extensions.ael I am lost. I just want those two users to be able to call each other, nothing fancy. I am using X-lite phones, and they seem to register okay. Whenever they call, I get a message in asterisk log:
Call from ‘2012’ (10.0.0.200:25846) to extension ‘2001’ rejected because extension not found in context ‘default’.
So I tried to add them to extensions.ael in section ael-default, as that file seems to suggest:
2001 => Dial(IAX2/${EXTEN},rm);
I don’t know if it makes any sense because I can’t find any explanation of most of those options. However, I figure at least asterisk will see the extension. No such luck. I tried to change the name of the context from ael-default to default, but then I got other errors when launching asterisk.
Can anyone point me at an example on how to make two sip phones call each other? I don’t need voicemail, fancy rules, nothing. This is for testing only.
In fact, just when loading with default extensions.ael I get an error message in logs:
ael/pval.c: Warning: file /etc/asterisk/extensions.ael, line 285-291: The included context ‘ael-default’ cannot be found.
but it does exist - line 386:
context ael-default {
although everything inside is commented out, but those are just examples, right? There doesn’t seem to be anything generic there.
Oh, and modules.conf has the line:
autoload=yes
in it.