So I’m fairly new to Asterisk. I’m trying to setup basic SIP phone->SIP phone calls. I just want my user 100 to be able to dial user 101, and it will give me the waiting call sound, and ring on 101. So far I’m not getting good results. I just have them registering, that at least works fine.
This is installed on Gentoo Linux, asterisk version “asterisk-1.8.5.0-r3”.
sip.conf
[code][general]
port = 5060
bindaddr = 0.0.0.0
context=default
[100]
type=friend
callerid=My Name <100>
secret=pass123
host=dynamic
mailbox=100@default
dtmfmode=inband
[101]
type=friend
callerid=Other Name <101>
secret=pass123
host=dynamic
mailbox=101@default
dtmfmode=inband[/code]
extensions.conf
[code][default]
exten => 100,1,Dial(SIP/100,20)
exten => 100,2,VoiceMail(100,u)
exten => 101,1,Dial(SIP/101,20)
exten => 101,2,VoiceMail(101,u)
exten => 199,1,VoiceMailMain(${CALLERID(num)},s)[/code]
EDIT: Here’s what is happening in the log “/var/log/asterisk/messages” when I call from 100 to 101.
[Oct 14 07:34:12] NOTICE[19177] cdr.c: CDR simple logging enabled.
[Oct 14 07:34:13] NOTICE[19177] loader.c: 184 modules will be loaded.
[Oct 14 07:34:13] NOTICE[19177] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Oct 14 07:34:13] WARNING[19177] res_config_mysql.c: MySQL RealTime: No database user found, using 'asterisk' as default.
[Oct 14 07:34:13] WARNING[19177] res_config_mysql.c: MySQL RealTime: No database password found, using 'asterisk' as default.
[Oct 14 07:34:13] WARNING[19177] res_config_mysql.c: MySQL RealTime: No database host found, using localhost via socket.
[Oct 14 07:34:13] WARNING[19177] res_config_mysql.c: MySQL RealTime: No database name found, using 'asterisk' as default.
[Oct 14 07:34:13] WARNING[19177] res_config_mysql.c: MySQL RealTime: No database port found, using 3306 as default.
[Oct 14 07:34:13] WARNING[19177] res_config_mysql.c: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Oct 14 07:34:13] NOTICE[19177] config.c: Registered Config Engine mysql
[Oct 14 07:34:13] NOTICE[19177] chan_skinny.c: Configuring skinny from skinny.conf
[Oct 14 07:34:13] NOTICE[19177] pbx_ael.c: Starting AEL load process.
[Oct 14 07:34:13] NOTICE[19177] pbx_ael.c: File /etc/asterisk/extensions.ael not found; AEL declining load
[Oct 14 07:35:03] WARNING[19325] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Oct 14 07:35:04] WARNING[19325] app_voicemail.c: No entry in voicemail config file for '101'
I am able to register as both 100 and 101. But when I call from 100 to 101 or vice versa, it just says “Dialing” and I never hear any call tones and 101 never rings. Ideas?
Thanks in advance!