LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-13-2013, 09:36 AM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
Asterisk Voicemail Not Working


I have a CentOS machine that I have installed the most recent version of asterisk on (everything was installed from source along with all of the necessary dependancies that were inside of the repository server). Since this is an installation from source there were some things that didn't come with the installation (for instance the sound files but this was an easy fix). My problem here is the voicemail application. I put in the entry to retrieve messages in the dial plan and when I dial the number for the messages inbox the phone gets disconnected. But here is where it gets weird. When I go inside of the asterisk CLI it starts working. I used the "asterisk -cvv" command because the "asterisk -r" gives me the this error
Code:
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
I was told that this is happening because Asterisk wasn't started as a service. I have no idea what that means because the service is working. I know that it is because I am able to make calls to the other phones on the network but not leave or retrieve voicemail. I started asterisk with this command
Code:
/etc/init.d/asterisk start
How do I start asterisk "as a service" because I have no idea how or what it means because all of the google searches that I have been conducting are turning up nothing.

here is my extensions.conf file
Code:
exten => 1,1,Answer()
exten => 1,n,Playback(/etc/asterisk/sounds/demo-echotest)
exten => 1,n,Echo()
exten => 1,n,Playback(/etc/asterisk/sounds/demo-echodone)
exten => 1,n,Hangup()

exten => 0,1,Answer()
exten => 0,n,Playback(/etc/asterisk/sounds/demo-congrats)
exten => 0,n,Hangup()

exten => 2,1,Answer()
exten => 2,2,VoiceMailMain(${CALLERID(num)}@default)

exten => 1001,1,Answer()
exten => 1001,n,Dial(IAX2/1001,20,t)
exten => 1001,n,VoiceMail(1001@default,u)
exten => 1001,n,Hangup()

exten => 1002,1,Answer()
exten => 1002,n,Dial(IAX2/1002,20,t)
exten => 1002,n,VoiceMail(1002@default,u)
exten => 1002,n,Hangup()

exten => 1003,1,Answer()
exten => 1003,n,Dial(IAX2/1003,20,t)
exten => 1003,n,VoiceMail(1003@default,u)
exten => 1003,n,Hangup()

Last edited by baronobeefdip; 05-13-2013 at 09:37 AM.
 
Old 05-14-2013, 01:28 PM   #2
Zilvermeeuw
Member
 
Registered: Jan 2006
Distribution: Fedora 20, 21, 22, CentOS 6, CentOs 7
Posts: 92

Rep: Reputation: 17
Start as as service: service start asterisk.
But I think, it's the same as =/etc/init.d/asterisk start=.

Does the logfile show errors?
 
Old 05-14-2013, 02:23 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
No since it doesn't start as a service it doesn't log anything as far as I know the computer thinks it hasn't started. I have the voicemail working for the time being after running this command
Code:
/usr/sbin/safe_asterisk
I have to run it every time I restart asterisk (I guess because I'm not starting it as a service, I did try the service command like you said but it still didn't work.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
evolution - comcast voicemail schneidz Linux - Software 0 08-01-2010 10:14 AM
Linux Voicemail Applications mogrady Linux - Software 4 12-14-2008 10:29 AM
Configuring voicemail.conf to allow for customer subjects in vm emails on asterisk sxa Linux - Server 1 09-18-2008 03:02 AM
Voicemail email troubles with Asterisk server sxa Linux - Server 2 09-13-2008 02:05 AM
Use modem to dial voicemail? FiveFlat Linux - General 2 05-24-2005 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration