# Unable to run asterisk

**URL:** <https://community.asterisk.org/t/unable-to-run-asterisk/27606>\
**Category:** Asterisk Support\
**Created:** [June 18, 2009, 8:24pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606 "2009-06-18T20:24:40Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![flickersparks](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@flickersparks](https://community.asterisk.org/u/flickersparks)\
**Post date:** [June 18, 2009, 8:24pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/1 "2009-06-18T20:24:40Z")

</div>

Hey guys Im just starting to build my own asterisk server. I already did the following steps in order to configure the files:

wget asterisk-1.6.1.1.tar.gz, extracted  
wget zaptel-1.4.12.1.tar.gz, extracted  
wget libpri-1.4.10.tar.gz, extracted  
wget asterisk-addons-1.6.1.0, extracted  
wget asterisk-sounds-1.2.1.tar.gz, extracted

did ./configure, make, make install for zaptel-1.4.12.1  
did make, make install for libpri  
did ./configure, make, make install, make samples for asterisk  
did ./configure, make, make install, make samples for asterisk-addons

everything went fine and it says in the instructions to do asterisk -r to run asterisk but it is not installed yet so I did apt-get install asterisk and I still get the following error

Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

That error is so famous. I tried searching to different forums and I still can’t figure out why I can’t get to asterisk’s command line. Do we have any real solution to this?

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [June 18, 2009, 8:32pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/2 "2009-06-18T20:32:22Z")

</div>

Hi

And have you started Asterisk ?

what does ‘ps -ef |grep asterisk’ say ?

also what happens if you enter ‘asterisk -vvvvvvc’ ?

Ian

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [June 18, 2009, 8:33pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/3 "2009-06-18T20:33:43Z")

</div>

Hi again

> [@](#):
>
> and it says in the instructions to do asterisk -r to run asterisk

Nope it shouldnt have as that will reconnect you to a running asterisk not run asterisk

Ian

---

<div class="post-metadata">

**Author:** ![flickersparks](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@flickersparks](https://community.asterisk.org/u/flickersparks)\
**Post date:** [June 18, 2009, 8:42pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/4 "2009-06-18T20:42:19Z")

</div>

[quote=“ianplain”]Hi

And have you started Asterisk ?

what does ‘ps -ef |grep asterisk’ say ?

also what happens if you enter ‘asterisk -vvvvvvc’ ?

Ian[/quote]

it says

root 20169 26063 0 13:39 pts/0 00:00:00 grep asterisk

when I enter asterisk -vvvvvc, it does a dark background with a bunch of info

[quote][Jun 18 13:41:59] NOTICE[20393]: config.c:1274 ast\_config\_engine\_register: Registered Config Engine odbc  
res\_config\_odbc loaded.  
res\_config\_odbc.so =\> (ODBC Configuration)  
== Registered application ‘StealChan’  
== Registered application ‘PickupChan’  
== Registered application ‘PickDown’  
== Registered application ‘Steal’  
== Registered application 'PickUp’  
app\_pickup.so =\> (PickUp/PickDown/Steal/PickupChan/StealChan)  
== Parsing ‘/etc/asterisk/res\_pgsql.conf’: Found  
[Jun 18 13:41:59] ERROR[20393]: res\_config\_pgsql.c:782 pgsql\_reconnect: Postgresql RealTime: Failed to connect database server asterisk on 127.0.0.1. Check debug for more info.  
[Jun 18 13:41:59] WARNING[20393]: res\_config\_pgsql.c:605 load\_module: Postgresql RealTime: Couldn’t establish connection. Check debug.  
[Jun 18 13:41:59] NOTICE[20393]: config.c:1274 ast\_config\_engine\_register: Registered Config Engine pgsql  
Postgresql RealTime driver loaded.  
res\_config\_pgsql.so =\> (PostgreSQL RealTime Configuration Driver)  
== Registered application ‘DeadAGI’  
== Registered application ‘EAGI’  
== Registered application ‘XAGI’  
== Registered application 'AGI’  
res\_agi.so =\> (Asterisk Gateway Interface (AGI))  
[Jun 18 13:41:59] WARNING[20393]: loader.c:619 inspect\_module: Module ‘res\_config\_sqlite.so’ does not provide a description.  
[Jun 18 13:41:59] WARNING[20393]: loader.c:678 load\_resource: Module ‘res\_config\_sqlite.so’ could not be loaded.  
== Parsing ‘/etc/asterisk/res\_snmp.conf’: Found  
Loading [Sub]Agent Module  
res\_snmp.so =\> (SNMP [Sub]Agent for Asterisk)  
[Jun 18 13:41:59] WARNING[20393]: loader.c:619 inspect\_module: Module ‘app\_saycountpl.so’ does not provide a description.  
[Jun 18 13:41:59] WARNING[20393]: loader.c:678 load\_resource: Module ‘app\_saycountpl.so’ could not be loaded.  
[Jun 18 13:41:59] WARNING[20393]: loader.c:619 inspect\_module: Module ‘res\_phoneprov.so’ does not provide a description.  
[Jun 18 13:41:59] WARNING[20393]: loader.c:678 load\_resource: Module ‘res\_phoneprov.so’ could not be loaded.  
== Registered application ‘DBdel’  
== Registered application 'DBdeltree’  
app\_db.so =\> (Database Access Functions)  
== Registered file format pcm, extension(s) pcm|ulaw|ul|mu  
== Registered file format alaw, extension(s) alaw|al  
== Registered file format au, extension(s) au  
== Registered file format g722, extension(s) g722  
format\_pcm.so =\> (Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G.722 16Khz)  
== Parsing ‘/etc/asterisk/func\_odbc.conf’: Found  
== Registered custom function SQL\_ESC  
func\_odbc.so =\> (ODBC lookups)  
== Registered application 'ZapBarge’  
app\_zapbarge.so =\> (Barge in on Zap channel application)  
== Parsing ‘/etc/asterisk/extensions.conf’: Found  
== Setting global variable ‘CONSOLE’ to ‘Console/dsp’  
== Setting global variable ‘IAXINFO’ to ‘guest’  
== Setting global variable ‘TRUNK’ to ‘DAHDI/G2’  
== Setting global variable ‘TRUNKMSD’ to ‘1’  
– Registered extension context ‘dundi-e164-canonical’  
– Registered extension context ‘dundi-e164-customers’  
– Registered extension context ‘dundi-e164-via-pstn’  
– Registered extension context ‘dundi-e164-local’  
– Including context ‘dundi-e164-canonical’ in context ‘dundi-e164-local’  
– Including context ‘dundi-e164-customers’ in context ‘dundi-e164-local’  
– Including context ‘dundi-e164-via-pstn’ in context ‘dundi-e164-local’  
– Registered extension context ‘dundi-e164-switch’  
– Including switch ‘DUNDi/e164’ in context ‘dundi-e164-switch’  
– Registered extension context ‘dundi-e164-lookup’  
– Including context ‘dundi-e164-local’ in context ‘dundi-e164-lookup’  
– Including context ‘dundi-e164-switch’ in context ‘dundi-e164-lookup’  
– Registered extension context ‘macro-dundi-e164’  
– Added extension ‘s’ priority 1 to macro-dundi-e164  
– Including context ‘dundi-e164-lookup’ in context ‘macro-dundi-e164’  
– Registered extension context ‘iaxtel700’  
– Added extension ‘\_91700XXXXXXX’ priority 1 to iaxtel700  
– Registered extension context ‘iaxprovider’  
– Registered extension context ‘trunkint’  
– Added extension ‘\_9011.’ priority 1 to trunkint  
– Added extension ‘\_9011.’ priority 2 to trunkint  
– Registered extension context ‘trunkld’  
– Added extension ‘\_91NXXNXXXXXX’ priority 1 to trunkld  
– Added extension ‘\_91NXXNXXXXXX’ priority 2 to trunkld  
– Registered extension context ‘trunklocal’  
– Added extension ‘\_9NXXXXXX’ priority 1 to trunklocal  
– Registered extension context ‘trunktollfree’  
– Added extension ‘\_91800NXXXXXX’ priority 1 to trunktollfree  
– Added extension ‘\_91888NXXXXXX’ priority 1 to trunktollfree  
– Added extension ‘\_91877NXXXXXX’ priority 1 to trunktollfree  
– Added extension ‘\_91866NXXXXXX’ priority 1 to trunktollfree  
– Registered extension context ‘international’  
– Including context ‘longdistance’ in context ‘international’  
– Including context ‘trunkint’ in context ‘international’  
– Registered extension context ‘longdistance’  
– Including context ‘local’ in context ‘longdistance’  
– Including context ‘trunkld’ in context ‘longdistance’  
– Registered extension context ‘local’  
– Including context ‘default’ in context ‘local’  
– Including context ‘trunklocal’ in context ‘local’  
– Including context ‘iaxtel700’ in context ‘local’  
– Including context ‘trunktollfree’ in context ‘local’  
– Including context ‘iaxprovider’ in context ‘local’  
– Including context ‘parkedcalls’ in context ‘local’  
– Registered extension context ‘macro-trunkdial’  
– Added extension ‘s’ priority 1 to macro-trunkdial  
– Added extension ‘s’ priority 2 to macro-trunkdial  
– Added extension ‘s-NOANSWER’ priority 1 to macro-trunkdial  
– Added extension ‘s-BUSY’ priority 1 to macro-trunkdial  
– Added extension ‘\_s-.’ priority 1 to macro-trunkdial  
– Registered extension context ‘stdexten’  
– Added extension ‘\_X.’ priority 50000 to stdexten  
– Added extension ‘\_X.’ priority 50001 to stdexten  
– Added extension ‘\_X.’ priority 50002 to stdexten  
– Added extension ‘\_X.’ priority 50003 to stdexten  
– Added extension ‘\_X.’ priority 50004 to stdexten  
– Added extension ‘\_X.’ priority 50005 to stdexten  
– Added extension ‘\_X.’ priority 50006 to stdexten  
– Added extension ‘stdexten-NOANSWER’ priority 1 to stdexten  
– Added extension ‘stdexten-NOANSWER’ priority 2 to stdexten  
– Added extension ‘stdexten-NOANSWER’ priority 3 to stdexten  
– Added extension ‘stdexten-BUSY’ priority 1 to stdexten  
– Added extension ‘stdexten-BUSY’ priority 2 to stdexten  
– Added extension ‘stdexten-BUSY’ priority 3 to stdexten  
– Added extension ‘\_stdexten[-].’ priority 1 to stdexten  
– Added extension ‘a’ priority 1 to stdexten  
– Added extension ‘a’ priority 2 to stdexten  
– Registered extension context ‘stdPrivacyexten’  
– Added extension ‘\_X.’ priority 60000 to stdPrivacyexten  
– Added extension ‘\_X.’ priority 60001 to stdPrivacyexten  
– Added extension ‘\_X.’ priority 60002 to stdPrivacyexten  
– Added extension ‘\_X.’ priority 60003 to stdPrivacyexten  
– Added extension ‘\_X.’ priority 60004 to stdPrivacyexten  
– Added extension ‘\_X.’ priority 60005 to stdPrivacyexten  
– Added extension ‘\_X.’ priority 60006 to stdPrivacyexten  
– Added extension ‘\_X.’ priority 60007 to stdPrivacyexten  
– Added extension ‘\_X.’ priority 60008 to stdPrivacyexten  
– Added extension ‘stdexten-NOANSWER’ priority 1 to stdPrivacyexten  
– Added extension ‘stdexten-NOANSWER’ priority 2 to stdPrivacyexten  
– Added extension ‘stdexten-NOANSWER’ priority 3 to stdPrivacyexten  
– Added extension ‘stdexten-BUSY’ priority 1 to stdPrivacyexten  
– Added extension ‘stdexten-BUSY’ priority 2 to stdPrivacyexten  
– Added extension ‘stdexten-BUSY’ priority 3 to stdPrivacyexten  
– Added extension ‘stdexten-DONTCALL’ priority 1 to stdPrivacyexten  
– Added extension ‘stdexten-TORTURE’ priority 1 to stdPrivacyexten  
– Added extension ‘\_stdexten-.’ priority 1 to stdPrivacyexten  
– Added extension ‘a’ priority 1 to stdPrivacyexten  
– Added extension ‘a’ priority 2 to stdPrivacyexten  
– Registered extension context ‘macro-page’  
– Added extension ‘s’ priority 1 to macro-page  
– Added extension ‘s’ priority 2 to macro-page  
– Added extension ‘s’ priority 3 to macro-page  
– Added extension ‘s’ priority 4 to macro-page  
– Added extension ‘s’ priority 5 to macro-page  
– Added extension ‘s’ priority 6 to macro-page  
– Added extension ‘s’ priority 7 to macro-page  
– Registered extension context ‘demo’  
– Including context ‘stdexten’ in context ‘demo’  
– Added extension ‘s’ priority 1 to demo  
– Added extension ‘s’ priority 2 to demo  
– Added extension ‘s’ priority 3 to demo  
– Added extension ‘s’ priority 4 to demo  
– Added extension ‘s’ priority 5 to demo  
– Added extension ‘s’ priority 6 to demo  
– Added extension ‘s’ priority 7 to demo  
– Added extension ‘2’ priority 1 to demo  
– Added extension ‘2’ priority 2 to demo  
– Added extension ‘3’ priority 1 to demo  
– Added extension ‘3’ priority 2 to demo  
– Added extension ‘1000’ priority 1 to demo  
– Added extension ‘1234’ priority 1 to demo  
– Added extension ‘1234’ priority 2 to demo  
– Added extension ‘1234’ priority 3 to demo  
– Added extension ‘1235’ priority 1 to demo  
– Added extension ‘1236’ priority 1 to demo  
– Added extension ‘1236’ priority 2 to demo  
– Added extension ‘#’ priority 1 to demo  
– Added extension ‘#’ priority 2 to demo  
– Added extension ‘t’ priority 1 to demo  
– Added extension ‘i’ priority 1 to demo  
– Added extension ‘500’ priority 1 to demo  
– Added extension ‘500’ priority 2 to demo  
– Added extension ‘500’ priority 3 to demo  
– Added extension ‘500’ priority 4 to demo  
– Added extension ‘600’ priority 1 to demo  
– Added extension ‘600’ priority 2 to demo  
– Added extension ‘600’ priority 3 to demo  
– Added extension ‘600’ priority 4 to demo  
– Added extension ‘76245’ priority 1 to demo  
– Added extension ‘\_7XXX’ priority 1 to demo  
– Added extension ‘7999’ priority 1 to demo  
– Added extension ‘7999’ priority 2 to demo  
– Added extension ‘8500’ priority 1 to demo  
– Added extension ‘8500’ priority 2 to demo  
– Registered extension context ‘page’  
– Added extension ‘\_X.’ priority 1 to page  
– Registered extension context ‘default’  
– Including context ‘demo’ in context ‘default’  
== Parsing ‘/etc/asterisk/users.conf’: Found  
pbx\_config.so =\> (Text Extension Configuration)  
== Registered application ‘ZapSendKeypadFacility’  
== Parsing ‘/etc/asterisk/zapata.conf’: Found  
– Automatically generated pseudo channel  
== Parsing ‘/etc/asterisk/users.conf’: Found  
== Registered channel type ‘Zap’ (Zapata Telephony Driver w/PRI)  
== Registered application ‘zapCD’  
== Registered application ‘zapInband’  
== Registered application ‘zapEC’  
== Manager registered action ZapTransfer  
== Manager registered action ZapHangup  
== Manager registered action ZapDialOffhook  
== Manager registered action ZapDNDon  
== Manager registered action ZapDNDoff  
== Manager registered action ZapShowChannels  
== Manager registered action ZapRestart  
chan\_zap.so =\> (Zapata Telephony)  
== Registered custom function RAND  
func\_rand.so =\> (Random number dialplan function)  
== Registered application 'ChanIsAvail’  
app\_chanisavail.so =\> (Check channel availability)  
== Registered custom function URIDECODE  
== Registered custom function URIENCODE  
func\_uri.so =\> (URI encode/decode dialplan functions)  
== Registered application 'SendURL’  
app\_url.so =\> (Send URL Applications)  
== Registered channel type ‘Agent’ (Call Agent Proxy Channel)  
== Parsing ‘/etc/asterisk/agents.conf’: Found  
== Parsing ‘/etc/asterisk/users.conf’: Found  
== Registered application ‘AgentLogin’  
== Registered application ‘AgentCallbackLogin’  
== Registered application ‘AgentMonitorOutgoing’  
== Manager registered action Agents  
== Manager registered action AgentLogoff  
== Manager registered action AgentCallbackLogin  
== Registered custom function AGENT  
chan\_agent.so =\> (Agent Proxy Channel)  
== Registered custom function CALLERID  
func\_callerid.so =\> (Caller ID related dialplan function)  
== Registered custom function ISNULL  
== Registered custom function SET  
== Registered custom function EXISTS  
== Registered custom function IF  
== Registered custom function IFTIME  
func\_logic.so =\> (Logical dialplan functions)  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘chan\_unistim.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘chan\_unistim.so’ could not be loaded.  
res\_convert.so =\> (File format conversion CLI command)  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘func\_lock.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘func\_lock.so’ could not be loaded.  
== Registered application 'Echo’  
app\_echo.so =\> (Simple Echo Application)  
== Registered application ‘While’  
== Registered application ‘EndWhile’  
== Registered application ‘ExitWhile’  
== Registered application 'ContinueWhile’  
app\_while.so =\> (While Loops and Conditional Execution)  
res\_clioriginate.so =\> (Call origination from the CLI)  
== Registered file format wav49, extension(s) WAV|wav49  
format\_wav\_gsm.so =\> (Microsoft WAV format (Proprietary GSM))  
== Registered application ‘Log’  
== Registered application 'Verbose’  
app\_verbose.so =\> (Send verbose output)  
== Registered application 'Read’  
app\_read.so =\> (Read Variable Application)  
== Registered custom function CDR  
func\_cdr.so =\> (CDR dialplan function)  
== Parsing ‘/etc/asterisk/cdr\_manager.conf’: Found  
cdr\_manager.so =\> (Asterisk Manager Interface CDR Backend)  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘app\_minivm.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘app\_minivm.so’ could not be loaded.  
== Registered application 'ICES’  
app\_ices.so =\> (Encode and Stream via icecast and ices)  
== Registered application ‘MixMonitor’  
== Registered application 'StopMixMonitor’  
app\_mixmonitor.so =\> (Mixed Audio Monitoring Application)  
== Registered application 'Record’  
app\_record.so =\> (Trivial Record Application)  
== Parsing ‘/etc/asterisk/cdr.conf’: Found  
cdr\_csv.so =\> (Comma Separated Values CDR Backend)  
== Parsing ‘/etc/asterisk/alarmreceiver.conf’: Found  
== Registered application 'AlarmReceiver’  
app\_alarmreceiver.so =\> (Alarm Receiver for Asterisk)  
== Parsing ‘/etc/asterisk/festival.conf’: Found  
== Registered application 'Festival’  
app\_festival.so =\> (Simple Festival Interface)  
== Parsing ‘/etc/asterisk/dundi.conf’: Found  
== Using TOS bits 0  
== DUNDi Ready and Listening on 0.0.0.0 port 4520  
== Registered custom function DUNDILOOKUP  
pbx\_dundi.so =\> (Distributed Universal Number Discovery (DUNDi))  
== Registered application 'Morsecode’  
app\_morsecode.so =\> (Morse code)  
== Registered application ‘ChanSpy’  
== Registered application ‘ExtenSpy’  
== Registered application 'ChanSpyChan’  
app\_chanspy.so =\> (Listen to the audio of an active channel)  
== Parsing ‘/etc/asterisk/skinny.conf’: Found  
== Skinny listening on 0.0.0.0:2000  
== Registered channel type ‘Skinny’ (Skinny Client Control Protocol (Skinny))  
== Parsing ‘/etc/asterisk/codecs.conf’: Found  
– codec\_zap: using generic PLC  
== No hardware transcoders found.  
codec\_zap.so =\> (Generic Zaptel Transcoder Codec Translator)  
== Registered application 'DumpChan’  
app\_dumpchan.so =\> (Dump Info About The Calling Channel)  
== Registered custom function MD5  
== Registered custom function CHECK\_MD5  
func\_md5.so =\> (MD5 digest dialplan functions)  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘func\_sysinfo.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘func\_sysinfo.so’ could not be loaded.  
== Registered translator ‘alawtoulaw’ from format alaw to ulaw, cost 1  
== Registered translator ‘ulawtoalaw’ from format ulaw to alaw, cost 1  
codec\_a\_mu.so =\> (A-law and Mulaw direct Coder/Decoder)  
== Parsing ‘/etc/asterisk/codecs.conf’: Found  
– codec\_g726: using generic PLC  
== Registered translator ‘g726tolin’ from format g726 to slin, cost 1  
== Registered translator ‘lintog726’ from format slin to g726, cost 1  
== Registered translator ‘g726aal2tolin’ from format g726aal2 to slin, cost 1  
== Registered translator ‘lintog726aal2’ from format slin to g726aal2, cost 1  
== Registered translator ‘g726aal2tog726’ from format g726aal2 to g726, cost 1  
== Registered translator ‘g726tog726aal2’ from format g726 to g726aal2, cost 1  
codec\_g726.so =\> (ITU G.726-32kbps G726 Transcoder)  
== Registered file format g726-40, extension(s) g726-40  
== Registered file format g726-32, extension(s) g726-32  
== Registered file format g726-24, extension(s) g726-24  
== Registered file format g726-16, extension(s) g726-16  
format\_g726.so =\> (Raw G.726 (16/24/32/40kbps) data)  
== Registered custom function CHANNEL  
func\_channel.so =\> (Channel information dialplan function)  
== Registered application 'DISA’  
app\_disa.so =\> (DISA (Direct Inward System Access) Application)  
== Registered application 'WaitForSilence’  
app\_waitforsilence.so =\> (Wait For Silence)  
== Parsing ‘/etc/asterisk/mgcp.conf’: Found  
== MGCP Listening on 0.0.0.0:2727  
== Using TOS bits 0  
== Registered channel type ‘MGCP’ (Media Gateway Control Protocol (MGCP))  
chan\_mgcp.so =\> (Media Gateway Control Protocol (MGCP))  
== Registered custom function BASE64\_ENCODE  
== Registered custom function BASE64\_DECODE  
func\_base64.so =\> (base64 encode/decode dialplan functions)  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘chan\_ooh323.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘chan\_ooh323.so’ could not be loaded.  
== Registered application 'DPickup’  
app\_directed\_pickup.so =\> (Directed Call Pickup Application)  
pbx\_spool.so =\> (Outgoing Spool Support)  
== Registered application 'NBScat’  
app\_nbscat.so =\> (Silly NBS Stream Application)  
== Registered channel type ‘Local’ (Local Proxy Channel Driver)  
chan\_local.so =\> (Local Proxy Channel (Note: used internally by other modules))  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘func\_speex.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘func\_speex.so’ could not be loaded.  
== Parsing ‘/etc/asterisk/amd.conf’: Found  
– AMD defaults: initialSilence [2500] greeting [1500] afterGreetingSilence [800] totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [3] silenceThreshold [256]  
== Registered application 'AMD’  
app\_amd.so =\> (Answering Machine Detection Application)  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘func\_module.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘func\_module.so’ could not be loaded.  
== Registered file format sln, extension(s) sln|raw  
format\_sln.so =\> (Raw Signed Linear Audio support (SLN))  
== Registered application ‘SetCallerPres’  
== Registered application 'SetCallerID’  
app\_setcallerid.so =\> (Set CallerID Application)  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘codec\_g722.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘codec\_g722.so’ could not be loaded.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘res\_timing\_pthread.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘res\_timing\_pthread.so’ could not be loaded.  
== Registered application 'LookupCIDName’  
app\_lookupcidname.so =\> (Look up CallerID Name from local database)  
== Registered file format gsm, extension(s) gsm  
format\_gsm.so =\> (Raw GSM data)  
pbx\_loopback.so =\> (Loopback Switch)  
== Registered custom function GLOBAL  
func\_global.so =\> (Global variable dialplan functions)  
== Registered application 'ChannelRedirect’  
app\_channelredirect.so =\> (Channel Redirect)  
== Registered file format h264, extension(s) h264  
format\_h264.so =\> (Raw H.264 data)  
== Registered custom function LANGUAGE  
func\_language.so =\> (Channel language dialplan function)  
== Registered application 'SMS’  
app\_sms.so =\> (SMS/PSTN handler)  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘func\_shell.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘func\_shell.so’ could not be loaded.  
== Registered file format iLBC, extension(s) ilbc  
format\_ilbc.so =\> (Raw iLBC data)  
== Parsing ‘/etc/asterisk/codecs.conf’: Found  
– codec\_adpcm: using generic PLC  
== Registered translator ‘adpcmtolin’ from format adpcm to slin, cost 1  
== Registered translator ‘lintoadpcm’ from format slin to adpcm, cost 1  
codec\_adpcm.so =\> (Adaptive Differential PCM Coder/Decoder)  
== Parsing ‘/etc/asterisk/cdr\_pgsql.conf’: Found  
cdr\_pgsql.so =\> (PostgreSQL CDR Backend)  
== Registered application 'SetTransferCapability’  
app\_settransfercapability.so =\> (Set ISDN Transfer Capability)  
== Registered application 'NoCDR’  
app\_cdr.so =\> (Tell Asterisk to not maintain a CDR for the current call)  
== Registered application ‘Dial’  
== Registered application 'RetryDial’  
app\_dial.so =\> (Dialing Application)  
== Registered application 'GetCPEID’  
app\_getcpeid.so =\> (Get ADSI CPE ID)  
== Registered custom function CUT  
== Registered custom function SORT  
func\_cut.so =\> (Cut out information from a string)  
== Registered application 'SendImage’  
app\_image.so =\> (Image Transmission Application)  
== Registered file format ogg\_vorbis, extension(s) ogg  
format\_ogg\_vorbis.so =\> (OGG/Vorbis audio)  
cdr\_sqlite.so =\> (SQLite CDR Backend)  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘func\_version.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘func\_version.so’ could not be loaded.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:619 inspect\_module: Module ‘func\_dialplan.so’ does not provide a description.  
[Jun 18 13:42:00] WARNING[20393]: loader.c:678 load\_resource: Module ‘func\_dialplan.so’ could not be loaded.  
== Registered application 'UserEvent’  
app\_userevent.so =\> (Custom User Event Application)  
== Registered application ‘VoiceMail’  
== Registered application ‘VoiceMailMain’  
== Registered application ‘MailboxExists’  
== Registered application ‘VMAuthenticate’  
== Parsing ‘/etc/asterisk/voicemail.conf’: Found  
== Parsing ‘/etc/asterisk/users.conf’: Found  
app\_voicemail.so =\> (Comedian Mail (Voicemail System))  
== Registered application 'WaitForRing’  
app\_waitforring.so =\> (Waits until first ring after time)  
== Registered custom function REALTIME  
func\_realtime.so =\> (Read/Write values from a RealTime repository)  
== Registered custom function GROUP\_COUNT  
== Registered custom function GROUP\_MATCH\_COUNT  
== Registered custom function GROUP\_LIST  
== Registered custom function GROUP  
func\_groupcount.so =\> (Channel group dialplan functions)  
== Registered application 'BackgroundDetect’  
app\_talkdetect.so =\> (Playback with Talk Detection)  
== Manager registered action PlayDTMF  
== Registered application 'SendDTMF’  
app\_senddtmf.so =\> (Send DTMF digits Application)  
== Registered application 'MP3Player’  
app\_mp3.so =\> (Silly MP3 Application)  
== Registered application ‘RealTimeUpdate’  
== Registered application 'RealTime’  
app\_realtime.so =\> (Realtime Data Lookup/Rewrite)  
== Registered application 'ControlPlayback’  
app\_controlplayback.so =\> (Control Playback Application)  
== Registered application 'ZapScan’  
app\_zapscan.so =\> (Scan Zap channels application)  
== Registered custom function MUSICCLASS  
func\_moh.so =\> (Music-on-hold dialplan function)  
== Registered application ‘SpeechCreate’  
== Registered application ‘SpeechLoadGrammar’  
== Registered application ‘SpeechUnloadGrammar’  
== Registered application ‘SpeechActivateGrammar’  
== Registered application ‘SpeechDeactivateGrammar’  
== Registered application ‘SpeechStart’  
== Registered application ‘SpeechBackground’  
== Registered application ‘SpeechDestroy’  
== Registered application ‘SpeechProcessingSound’  
== Registered custom function SPEECH  
== Registered custom function SPEECH\_SCORE  
== Registered custom function SPEECH\_TEXT  
== Registered custom function SPEECH\_GRAMMAR  
== Registered custom function SPEECH\_ENGINE  
== Registered custom function SPEECH\_RESULTS\_TYPE  
app\_speech\_utils.so =\> (Dialplan Speech Applications)  
== Parsing ‘/etc/asterisk/sip.conf’: Found  
== Parsing ‘/etc/asterisk/users.conf’: Found  
== SIP Listening on 0.0.0.0:5060  
== Using SIP TOS: none  
== Parsing ‘/etc/asterisk/sip\_notify.conf’: Found  
== Registered channel type ‘SIP’ (Session Initiation Protocol (SIP))  
== Registered application ‘SIPDtmfMode’  
== Registered application ‘SIPAddHeader’  
== Registered custom function SIP\_HEADER  
== Registered custom function SIPPEER  
== Registered custom function SIPCHANINFO  
== Registered custom function CHECKSIPDOMAIN  
== Manager registered action SIPpeers  
== Manager registered action SIPshowpeer  
chan\_sip.so =\> (Session Initiation Protocol (SIP))  
[Jun 18 13:42:00] WARNING[20393]: pbx.c:2981 ast\_register\_application: Already have an application ‘VoiceMail’  
[Jun 18 13:42:00] WARNING[20393]: pbx.c:2981 ast\_register\_application: Already have an application ‘VoiceMailMain’  
[Jun 18 13:42:00] WARNING[20393]: pbx.c:2981 ast\_register\_application: Already have an application ‘MailboxExists’  
[Jun 18 13:42:00] WARNING[20393]: pbx.c:2981 ast\_register\_application: Already have an application ‘VMAuthenticate’ [/quote]

Oh yeah thats right. I remember my instructor saying that asterisk -r doesnt run asterisk, it just reconnects me to it. How do you run it? Sorry I had to paste the whole thing just in case you need the info 😆 so is there something wrong here ?:([/img]

---

<div class="post-metadata">

**Author:** ![flickersparks](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@flickersparks](https://community.asterisk.org/u/flickersparks)\
**Post date:** [June 20, 2009, 5:04am UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/5 "2009-06-20T05:04:55Z")

</div>

so uh anyone have any ideas? ❓

---

<div class="post-metadata">

**Author:** ![riddlebox](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@riddlebox](https://community.asterisk.org/u/riddlebox)\
**Post date:** [June 20, 2009, 1:56pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/6 "2009-06-20T13:56:28Z")

</div>

you start asterisk by running the command “asterisk” as root, or  
"sudo asterisk" then connect to it by running “asterisk -r” or  
"sudo asterisk -r"

---

<div class="post-metadata">

**Author:** ![flickersparks](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@flickersparks](https://community.asterisk.org/u/flickersparks)\
**Post date:** [June 20, 2009, 2:02pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/7 "2009-06-20T14:02:13Z")

</div>

what is the command to run asterisk though?

---

<div class="post-metadata">

**Author:** ![riddlebox](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@riddlebox](https://community.asterisk.org/u/riddlebox)\
**Post date:** [June 20, 2009, 2:04pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/8 "2009-06-20T14:04:34Z")

</div>

you TYPE asterisk at the command prompt, the command is asterisk

---

<div class="post-metadata">

**Author:** ![flickersparks](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@flickersparks](https://community.asterisk.org/u/flickersparks)\
**Post date:** [June 20, 2009, 2:18pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/9 "2009-06-20T14:18:55Z")

</div>

typing asterisk in the command prompt didn’t do anything though. I did /etc/init.d/asterisk start and it said that it is starting asterisk but it didn’t say ok in the end. I tried typing asterisk -r after that and it still couldn’t connect to a running asterisk. ☹

---

<div class="post-metadata">

**Author:** ![riddlebox](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@riddlebox](https://community.asterisk.org/u/riddlebox)\
**Post date:** [June 20, 2009, 2:36pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/10 "2009-06-20T14:36:53Z")

</div>

you wont see anything as an output, what distro are you using first?  
debian, ubuntu, fedora, centos,… either way if you installed it correctly if you are root you will start it with asterisk, or /etc/init.d/asterisk start but remember you have to be root, or use sudo. If you can start asterisk with asterisk -c I would assume it would work.

---

<div class="post-metadata">

**Author:** ![flickersparks](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@flickersparks](https://community.asterisk.org/u/flickersparks)\
**Post date:** [June 20, 2009, 2:43pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/11 "2009-06-20T14:43:43Z")

</div>

[quote=“riddlebox”]you wont see anything as an output, what distro are you using first?  
debian, ubuntu, fedora, centos,… either way if you installed it correctly if you are root you will start it with asterisk, or /etc/init.d/asterisk start but remember you have to be root, or use sudo. If you can start asterisk with asterisk -c I would assume it would work.[/quote]

i’m using ubuntu 9 and I am logged in as super user actually. I expected everything to work also but the error Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) just keeps going up so I can’t get to asterisk command line. When I did asterick -c, it displayed a bunch of warning messages in like a charcoal background saying loader.c:678 load\_resource: Module ‘res\_timing\_pthread.so’ could not be loaded. then other warning messages follow. crap I need to use ubuntu everyday. I have no idea what is going on lol

---

<div class="post-metadata">

**Author:** ![riddlebox](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@riddlebox](https://community.asterisk.org/u/riddlebox)\
**Post date:** [June 21, 2009, 12:49pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/12 "2009-06-21T12:49:33Z")

</div>

how did you compile asterisk? I have to run ./configure as my user, then as super user as you put it, I run make && make install. Plus I am assuming you did an apt-get install build-essential

---

<div class="post-metadata">

**Author:** ![flickersparks](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@flickersparks](https://community.asterisk.org/u/flickersparks)\
**Post date:** [June 21, 2009, 4:06pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/13 "2009-06-21T16:06:22Z")

</div>

ok here are basically the steps that I followed from my previous class:

[quote]  
apt-get update  
apt-get upgrade  
apt-get build-dep asterisk  
apt-get install linux-headers-'uname -r’  
apt-get install openssh-server  
cd /usr/src/  
wget [ftp.digium.com/pub/asterisk/rele … 6.0.tar.gz](http://ftp.digium.com/pub/asterisk/releases/asterisk-1.6.0.tar.gz)  
wget [ftp.digium.com/pub/zaptel/releas … 2.1.tar.gz](http://ftp.digium.com/pub/zaptel/releases/zaptel-1.4.12.1.tar.gz)  
wget [ftp.digium.com/pub/libpri/releas … 4.7.tar.gz](http://ftp.digium.com/pub/libpri/releases/libpri-1.4.7.tar.gz)  
wget [ftp.digium.com/pub/asterisk/rele … 6.0.tar.gz](http://ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.6.0.tar.gz)  
wget [ftp.digium.com/pub/asterisk/rele … 2.1.tar.gz](http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gz)  
tar -xf asterisk-1.6.0.tar.gz  
tar -xf asterisk-sounds-1.2.1.tar.gz  
tar -xf libpri-1.4.7.tar.gz  
tar -xf zaptel-1.4.12.1.tar.gz  
tar -xf asterisk-addons-1.6.0.tar.gz  
cd zaptel-1.4.12.1/  
./configure  
make  
make install  
cd …/libpri-1.4.7/  
make  
make install  
cd …/asterisk-1.6.0/  
./configure  
make  
make install  
make samples  
cd …/asterisk-addons-1.6.0/  
./configure  
make  
make install  
make samples  
If you cannot run the â€œasterisk â€“râ€

---

<div class="post-metadata">

**Author:** ![riddlebox](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@riddlebox](https://community.asterisk.org/u/riddlebox)\
**Post date:** [June 21, 2009, 8:27pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/14 "2009-06-21T20:27:17Z")

</div>

is this ubuntu server? or regular ubuntu? did the software actually compile where did you get the instructions?

---

<div class="post-metadata">

**Author:** ![flickersparks](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@flickersparks](https://community.asterisk.org/u/flickersparks)\
**Post date:** [June 21, 2009, 10:57pm UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/15 "2009-06-21T22:57:06Z")

</div>

I believe its regular ubuntu. I had an iso image of ubuntu 9.04 desktop i386. I didn’t have any errors when I compiled them as far as I know. I was following these instructions from my previous VoIP class and yeah I want to experiment with it here at home.

---

<div class="post-metadata">

**Author:** ![riddlebox](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@riddlebox](https://community.asterisk.org/u/riddlebox)\
**Post date:** [June 22, 2009, 2:21am UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/16 "2009-06-22T02:21:47Z")

</div>

how can you install ubuntu desktop and be able to compile apps without installing build-essential. You are typing “sudo su -” before doing any of the compiling right? I have read your steps and know that you are compiling but I want to know if you are doing it as root the entire time or part of the time or at all, was there any errors when compiling? Have you tried a make clean, make mrproper, then as your user, ./configure, sudo make, sudo make install? Are the steps that you followed on the internet? If you do a “sudo asterisk” at the command prompt, then “sudo asterisk -r” what happens?

---

<div class="post-metadata">

**Author:** ![flickersparks](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@flickersparks](https://community.asterisk.org/u/flickersparks)\
**Post date:** [June 22, 2009, 2:55am UTC](https://community.asterisk.org/t/unable-to-run-asterisk/27606/17 "2009-06-22T02:55:17Z")

</div>

> [@riddlebox](#):
>
> how can you install ubuntu desktop and be able to compile apps without installing build-essential. You are typing “sudo su -” before doing any of the compiling right? I have read your steps and know that you are compiling but I want to know if you are doing it as root the entire time or part of the time or at all, was there any errors when compiling? Have you tried a make clean, make mrproper, then as your user, ./configure, sudo make, sudo make install? Are the steps that you followed on the internet? If you do a “sudo asterisk” at the command prompt, then “sudo asterisk -r” what happens?

I actually do su at the prompt then from there, I just do the instructions so all the files are located in the root profile and not the user. The whole time, I was using the super user to execute commands. the command sudo asterisk does not do anything or at least thats what I observed then the sudo asterisk -r shows the same error. These instructions were made by the school’s faculty assistants before and they did work. For some reason, I couldn’t get it to work here at home. I am going to just start up from scratch and try to install it on ubuntu server this time. I’ll let you know what happens. Thanks for your continuous reply btw.
