Unable to run asterisk

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?

Hi

And have you started Asterisk ?

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

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

Ian

Hi again

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

Ian

[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 :laughing: so is there something wrong here ?:([/img]

so uh anyone have any ideas? :question:

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"

what is the command to run asterisk though?

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

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. :frowning:

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=“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

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

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
wget ftp.digium.com/pub/zaptel/releas … 2.1.tar.gz
wget ftp.digium.com/pub/libpri/releas … 4.7.tar.gz
wget ftp.digium.com/pub/asterisk/rele … 6.0.tar.gz
wget ftp.digium.com/pub/asterisk/rele … 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â€

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

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.

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.