[Asterisk-Dev] asterisk startup

Vitaly Apolonsky apollo at nameserver.net.ua
Sun Jul 25 02:35:24 MST 2004


Hello ,

modules.conf
...............
;RES
;
load => res_musiconhold.so

...............

; CDR
;
load => cdr_mysql.so
load => cdr_csv.so
eof


but thus the file cdr_mysql.so is not present in
/usr/lib/asterisk/modules, here that occurs if start asterisk

[root at localhost /]# asterisk -vc
Asterisk CVS-HEAD-07/23/04-15:08:10, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster at digium.com>
=========================================================================
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk PBX Core Initializing
Registering builtin applications:
 [AbsoluteTimeout]
 [Answer]
 [BackGround]
 [Busy]
 [Congestion]
 [DigitTimeout]
 [Goto]
 [GotoIf]
 [GotoIfTime]
 [Hangup]
 [NoOp]
 [Prefix]
 [Progress]
 [ResetCDR]
 [ResponseTimeout]
 [Ringing]
 [SayNumber]
 [SayDigits]
 [SayAlpha]
 [SayPhonetic]
 [SetAccount]
 [SetAMAFlags]
 [SetGlobalVar]
 [SetLanguage]
 [SetVar]
 [StripMSD]
 [Suffix]
 [Wait]
 [WaitExten]
Asterisk Dynamic Loader Starting:
 [res_adsi.so] => (ADSI Resource)
 [res_features.so] => (Call Parking Resource)
 [res_crypto.so] => (Cryptographic Digital Signatures)
 [res_musiconhold.so] => (Music On Hold Resource)
Warning, flexibel rate not heavily tested!
 [res_indications.so] => (Indications Configuration)
 [res_monitor.so] => (Call Monitoring Resource)
 [chan_sip.so] => (Session Initiation Protocol (SIP))
    -- SIP Seeding '5550000' at 5550000 at 10.5.31.25:5060 for 3600
    -- SIP Seeding '5551111' at 5551111 at 10.5.31.25:5060 for 3600
 [chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
 [chan_iax2.so] => (Inter Asterisk eXchange (Ver 2))
 [chan_zap.so] => (Zapata Telephony)
 [chan_h323.so][root at localhost /]# Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
  
And so indefinitely.
killall -9 mpg123 helps :)

But if a line 'load => res_musiconhold.so' to put after 'load => cdr_mysql.so'
asterisk simply exits with warning.
Jul 25 11:52:03 WARNING[-1085177184]: Loading module cdr_mysql.so failed!

I think, that in a case if during startup there is a error,
it is necessary to stop all earlier started tasks then exits.


-- 
Best regards,
 Vitaly                          mailto:apollo at nameserver.net.ua




More information about the asterisk-dev mailing list