First Time user for Asterisk

Hi All
I’ve recently setup Asterisk for the first time. I am running version: 1.4.22.1 . I am not able to access voicemail and I think that the problem is on the extensions.conf as I get the error message “no route to destination”. I’ve setup 2 users( User1-6000 and User2-6001). All users are internal to the network

What I would like to happen is :
Call user 1 and ring for 30 seconds. If there is no answer then forward to his voicemail. After the end of the voicemail play “vm-goodbye” and hang up.

If any of the users call the voicemail (7500) they Should be able to authenticate and listen to their messages

Relevant conf files below

Thanks

[code]voicemail.conf
[Personal_mailbox]
6000 = 12345,User1,tz=european|maxmsg=10
6001 = 12345,User2,tz=european|maxmsg=10

users.conf
[6000]
username = User1
type = friend
transfer = yes
mailbox = 6000
call-limit = 100
fullname =
registersip = no
host = dynamic
callgroup = 1
context = DLPN_DialPlan1
cid_number = 6000
hasvoicemail = yes
vmsecret = 6000
email =
threewaycalling = no
hasdirectory = no
callwaiting = yes
hasmanager = no
hasagent = no
hassip = yes
hasiax = yes
secret = 123456
nat = yes
canreinvite = no
dtmfmode = rfc2833
insecure = no
pickupgroup = 1
autoprov = no
label =
macaddress =
linenumber = 1
LINEKEYS = 1
disallow = all
allow = ulaw,gsm,h263

[6001]
username = User2
type = friend
transfer = yes
mailbox = 6001
call-limit = 100
fullname =
registersip = no
host = dynamic
callgroup = 1
context = DLPN_DialPlan1
cid_number = 6001
hasvoicemail = yes
vmsecret = 6001
email =
threewaycalling = no
hasdirectory = no
callwaiting = no
hasmanager = no
hasagent = no
hassip = yes
hasiax = yes
secret = 123456
nat = yes
canreinvite = no
dtmfmode = rfc2833
insecure = no
pickupgroup = 1
autoprov = no
label =
macaddress =
linenumber = 1
LINEKEYS = 1
disallow = all
allow = ulaw,gsm,h263

sip.conf
[general]
context = default
allowoverlap = no
bindport = 5060
bindaddr =
srvlookup = yes
allowexternaldomains = yes
allowguest = yes
allowsubscribe = yes
allowtransfer = yes
alwaysauthreject = no
autodomain = no
callevents = no
canreinvite =
checkmwi = 10
compactheaders = no
defaultexpiry = 120
domain =
dtmfmode =
dumphistory = yes
externrefresh = 10
fromdomain =
g726nonstandard = no
jbenable = no
jbforce = no
jbimpl =
jblog = no
jbmaxsize =
jbresyncthreshold =
language = en
maxcallbitrate = 384
maxexpiry = 3600
minexpiry = 60
mohinterpret = default
mohsuggest =
nat =
notifyringing = yes
pedantic = no
progressinband = never
promiscredir = no
realm = asterisk
recordhistory = yes
registerattempts = 0
registertimeout = 20
relaxdtmf = no
rtpholdtimeout =
rtptimeout =
sendrpid = no
sipdebug = yes
subscribecontext =
t1min = 100
t38pt_udptl = no
tos_audio = ef
tos_sip = none
tos_video = ef
trustrpid = no
useragent = Asterisk PBX
usereqphone = no
videosupport = yes
maxcallbitrate = 384
disallow = all
allow = undefined,ulaw,alaw,gsm

extensions.conf
[Home]
exten = 6000,1,Dial(SIP/User1, 30)
exten = 6000,2,VoiceMail(6000@Personal_mailbox,u)
exten = 6000,3,PlayBack(vm-goodbye)
exten = 6000,4,HangUp()
exten = 6001,1,Dial(SIP/User2, 30)
exten = 6001,2,VoiceMail(6001@Personal_mailbox,u)
exten = 6001,3,PlayBack(vm-goodbye)
exten = 6001,4,HangUp()
exten = 7500,1,Answer(500)
exten = 7500,n,VoiceMailMain(@Personal_mailbox,u)
[/code]

Also if I try to restart the service I am getting the following error:
[/etc/asterisk] # /etc/init.d/asterisk.sh restart
RESTART Asterisk
STOP Asterisk
Cannot read termcap database;
using dumb terminal settings.
START Asterisk

You should not have set up with 1.4.x for the first time any time in the last two years.

Syntax for extensions.conf is wrong, you should use:

exten => 6000

and NOT

exten = 6000

If I were you, I would only edit information in sip.conf and extensions.conf. Leave users.conf default.

When you do the call, please set verbosity on Asterisk CLI to atleast 3 and copy/paste the output here. This is a good way to debug and let us know what is going on when you do a call.

And yes, Asterisk 1.4 is an obsolete version. But the basic stuff should also work there.

Hi All

Thanks for the fast response. I am, using the qkpg version on my QNAP and unfortunately is really old.

dejanst, I have replaced the extensions.conf and it is now

exten => 6000,1,Dial(SIP/User1, 30) exten => 6000,2,VoiceMail(6000@Personal_mailbox,u) exten => 6000,3,PlayBack(vm-goodbye) exten => 6000,4,HangUp() exten => 6001,1,Dial(SIP/User2, 30) exten => 6001,2,VoiceMail(6001@Personal_mailbox,u) exten => 6001,3,PlayBack(vm-goodbye) exten => 6001,4,HangUp() exten => 7500,1,Answer(500) exten => 7500,n,VoiceMailMain(@Personal_mailbox,u)

I am getting the following on the /var/log/asterisk/messages

[Mar 17 22:40:43] WARNING[17356] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source. [Mar 17 22:40:43] WARNING[17356] channel.c: No channel type registered for 'Console' [Mar 17 22:40:43] WARNING[17356] app_dial.c: Unable to create channel of type 'Console' (cause 66 - Channel not implemented) [Mar 17 22:40:43] WARNING[17356] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 17 22:40:43] WARNING[17356] file.c: Unable to open vm-theperson (format 0x4 (ulaw)): No such file or directory [Mar 17 22:40:54] WARNING[17363] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 17 22:40:54] WARNING[17363] file.c: Unable to open vm-theperson (format 0x4 (ulaw)): No such file or directory [Mar 17 23:01:34] WARNING[18174] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 17 23:01:34] WARNING[18174] file.c: Unable to open vm-password (format 0x4 (ulaw)): No such file or directory [Mar 17 23:01:34] WARNING[18174] app_voicemail.c: Unable to stream password file [Mar 17 23:07:07] WARNING[18379] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 17 23:07:07] WARNING[18379] file.c: Unable to open vm-password (format 0x4 (ulaw)): No such file or directory [Mar 17 23:07:07] WARNING[18379] app_voicemail.c: Unable to stream password file [Mar 17 23:08:43] WARNING[18440] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 17 23:08:43] WARNING[18440] file.c: Unable to open vm-password (format 0x4 (ulaw)): No such file or directory [Mar 17 23:08:43] WARNING[18440] app_voicemail.c: Unable to stream password file [Mar 17 23:09:31] WARNING[18474] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 17 23:09:31] WARNING[18474] file.c: Unable to open vm-intro (format 0x4 (ulaw)): No such file or directory [Mar 17 23:09:42] WARNING[18482] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:= 1^ [Mar 17 23:09:42] WARNING[18482] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source. [Mar 17 23:09:42] WARNING[18482] app_dial.c: Unable to create channel of type 'IAX2' (cause 20 - Unknown) [Mar 17 23:09:47] WARNING[18482] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 17 23:09:47] WARNING[18482] file.c: Unable to open vm-theperson (format 0x4 (ulaw)): No such file or directory [Mar 17 23:12:43] NOTICE[5063] chan_sip.c: Call from '6000' to extension '#7500' rejected because extension not found. [Mar 17 23:12:45] WARNING[18657] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 17 23:12:45] WARNING[18657] file.c: Unable to open vm-password (format 0x4 (ulaw)): No such file or directory [Mar 17 23:12:45] WARNING[18657] app_voicemail.c: Unable to stream password file [Mar 17 23:12:48] WARNING[18660] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input: [Mar 18 15:32:50] WARNING[13417] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 18 15:32:50] WARNING[13417] file.c: Unable to open vm-theperson (format 0x4 (ulaw)): No such file or directory [Mar 18 15:36:26] NOTICE[9682] chan_sip.c: Call from '6001' to extension '7500' rejected because extension not found. [Mar 18 15:47:20] WARNING[13965] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input: = 1 ^ [Mar 18 15:47:20] WARNING[13965] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source. [Mar 18 15:47:20] WARNING[13965] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Mar 18 15:47:20] WARNING[13965] app_dial.c: Unable to create channel of type 'IAX2' (cause 20 - Unknown) [Mar 18 15:47:20] WARNING[13965] channel.c: Unable to find a codec translation path from 0x4 (ulaw) to 0x100 (g729) [Mar 18 15:47:20] WARNING[13965] file.c: Unable to open vm-theperson (format 0x4 (ulaw)): No such file or directory

Set the IP Phone/Softphone to use alaw codec. Set the same thing in Asterisk sip.conf.

For debug use Asterisk CLI (verbosity set to atleast 3) or full Asterisk log. You have to enable the full Asterisk log in logger.conf if you want to use it. The logs you sent me are not very usefull :wink: