This the error and warning I got when I issued below command:
sudo asterisk -vvvgc ( Coz I'm running for first time )

rachel@rachelpbx:~$ sudo asterisk -vvvgc
[sudo] password for rachel:
Asterisk 1.4.21.2~dfsg-3ubuntu2, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
================================================== =======================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to Bugs in package asterisk (version 1:1.6.2.0~dfsg~rc1-1) in unstable -- Debian Bug report logs
================================================== =======================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
== Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
== Parsing '/etc/asterisk/dnsmgr.conf': Found
== Parsing '/etc/asterisk/http.conf': Found
== Manager registered action Ping
== Manager registered action Events
== Manager registered action Logoff
== Manager registered action Hangup
== Manager registered action Message
== Manager registered action Status
== Manager registered action Setvar
== Manager registered action Getvar
== Manager registered action GetConfig
== Manager registered action UpdateConfig
== Manager registered action Redirect
== Manager registered action Originate
== Manager registered action Command
== Manager registered action ExtensionState
== Manager registered action AbsoluteTimeout
== Manager registered action MailboxStatus
== Manager registered action MailboxCount
== Manager registered action ListCommands
== Manager registered action UserEvent
== Manager registered action WaitEvent
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager.d/README.conf': Found
== Parsing '/etc/asterisk/users.conf': Found
Asterisk Management interface listening on port 5038
== Parsing '/etc/asterisk/cdr.conf': Found
[Oct 14 13:28:26] NOTICE[12232]: cdr.c:1373 do_reload: CDR simple logging enabled.
== Parsing '/etc/asterisk/rtp.conf': Found
== RTP Allocating from port range 10000 -> 20000
== Parsing '/etc/asterisk/udptl.conf': Found
== UDPTL allocating from port range 4000 -> 4999
Asterisk PBX Core Initializing
Registering builtin applications:
[Answer]
== Registered application 'Answer'
[BackGround]
== Registered application 'BackGround'
[Busy]
== Registered application 'Busy'
[Congestion]
== Registered application 'Congestion'
[Goto]
== Registered application 'Goto'
[GotoIf]
== Registered application 'GotoIf'
[GotoIfTime]
== Registered application 'GotoIfTime'
[ExecIfTime]
== Registered application 'ExecIfTime'
[Hangup]
== Registered application 'Hangup'
[NoOp]
== Registered application 'NoOp'
[Progress]
== Registered application 'Progress'
[ResetCDR]
== Registered application 'ResetCDR'
[Ringing]
== Registered application 'Ringing'
[SayNumber]
== Registered application 'SayNumber'
[SayDigits]
== Registered application 'SayDigits'
[SayAlpha]
== Registered application 'SayAlpha'
[SayPhonetic]
== Registered application 'SayPhonetic'
[SetAMAFlags]
== Registered application 'SetAMAFlags'
[SetGlobalVar]
== Registered application 'SetGlobalVar'
[Set]
== Registered application 'Set'
[ImportVar]
== Registered application 'ImportVar'
[Wait]
== Registered application 'Wait'
[WaitExten]
== Registered application 'WaitExten'
== Manager registered action DBget
== Manager registered action DBput
== Manager registered action DBdel
== Parsing '/etc/asterisk/enum.conf': Found
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
[Oct 14 13:28:26] NOTICE[12232]: loader.c:859 load_modules: 168 modules will be loaded.
== Registered application 'MusicOnHold'
== Registered application 'WaitMusicOnHold'
== Registered application 'SetMusicOnHold'
== Registered application 'StartMusicOnHold'
== Registered application 'StopMusicOnHold'
== Parsing '/etc/asterisk/musiconhold.conf': Found
-- Files not found in /var/lib/asterisk/moh for moh class:default
res_musiconhold.so => (Music On Hold Resource)
== Parsing '/etc/asterisk/watchdog.conf': Found
res_watchdog.so => (Watchdog Resource)
-- Loaded PUBLIC key 'iaxtel'
-- Loaded PUBLIC key 'jnctn'
-- Loaded PUBLIC key 'freeworlddialup'
res_crypto.so => (Cryptographic Digital Signatures)
== Registered application 'StealChan'
== Registered application 'PickupChan'
== Registered application 'PickDown'
== Registered application 'Steal'
== Registered application 'PickUp'
app_pickup.so => (PickUp/PickDown/Steal/PickupChan/StealChan)
== Registered application 'Monitor'
== Registered application 'StopMonitor'
== Registered application 'ChangeMonitor'
== Registered application 'PauseMonitor'
== Registered application 'UnpauseMonitor'
== Manager registered action Monitor
== Manager registered action StopMonitor
== Manager registered action ChangeMonitor
== Manager registered action PauseMonitor
== Manager registered action UnpauseMonitor
res_monitor.so => (Call Monitoring Resource)
== Parsing '/etc/asterisk/esel.conf': Found
res_esel.so => (Extension State Export Logic (E.S.E.L.) Resource)
== Registered custom function SMDI_MSG_RETRIEVE
== Registered custom function SMDI_MSG
== Parsing '/etc/asterisk/smdi.conf': Found
[Oct 14 13:28:26] WARNING[12232]: res_smdi.c:1335 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
== Registered application 'Bridge'
== Parsing '/etc/asterisk/features.conf': Found
-- Registered extension context 'parkedcalls'
-- Added extension '700' priority 1 to parkedcalls
== Registered application 'ParkedCall'
== Registered application 'Park'
== Manager registered action ParkedCalls
== Manager registered action Park
== Manager registered action Bridge
== Registered application 'HoldedCall'
== Registered application 'AutoanswerLogin'
== Registered application 'Autoanswer'
res_features.so => (Call Features Resource)
res_speech.so => (Generic Speech Recognition API)
== Parsing '/etc/asterisk/res_snmp.conf': Found
Loading [Sub]Agent Module
res_snmp.so => (SNMP [Sub]Agent for Asterisk)
== Parsing '/etc/asterisk/res_odbc.conf': Found
[Oct 14 13:28:26] NOTICE[12232]: res_odbc.c:235 load_odbc_config: Adding ENV var: INFORMIXSERVER=my_special_database
[Oct 14 13:28:26] NOTICE[12232]: res_odbc.c:235 load_odbc_config: Adding ENV var: INFORMIXDIR=/opt/informix
[Oct 14 13:28:26] NOTICE[12232]: res_odbc.c:716 load_module: res_odbc loaded.
res_odbc.so => (ODBC Resource)
== Registered application 'DeadAGI'
== Registered application 'EAGI'
== Registered application 'XAGI'
== Registered application 'AGI'
res_agi.so => (Asterisk Gateway Interface (AGI))
== Parsing '/etc/asterisk/indications.conf': Found
-- Registered indication country 'at'
-- Registered indication country 'au'
-- Registered indication country 'bg'
-- Registered indication country 'br'
-- Registered indication country 'be'
-- Registered indication country 'ch'
-- Registered indication country 'cl'
-- Registered indication country 'cn'
-- Registered indication country 'cz'
-- Registered indication country 'de'
-- Registered indication country 'dk'
-- Registered indication country 'ee'
-- Registered indication country 'es'
-- Registered indication country 'fi'
-- Registered indication country 'fr'
-- Registered indication country 'gr'
-- Registered indication country 'hu'
-- Registered indication country 'il'
-- Registered indication country 'in'
-- Registered indication country 'it'
-- Registered indication country 'lt'
-- Registered indication country 'jp'
-- Registered indication country 'mx'
-- Registered indication country 'my'
-- Registered indication country 'nl'
-- Registered indication country 'no'
-- Registered indication country 'nz'
-- Registered indication country 'ph'
-- Registered indication country 'pl'
-- Registered indication country 'pt'
-- Registered indication country 'ru'
-- Registered indication country 'se'
-- Registered indication country 'sg'
-- Registered indication country 'th'
-- Registered indication country 'uk'
-- Registered indication country 'us'
-- Registered indication country 'us-o'
-- Registered indication country 'tw'
-- Registered indication country 've'
-- Registered indication country 'za'
-- Setting default indication country to 'us'
== Registered application 'PlayTones'
== Registered application 'StopPlayTones'
res_indications.so => (Indications Resource)
== Parsing '/etc/asterisk/adsi.conf': Found
res_adsi.so => (ADSI Resource)
== Parsing '/etc/asterisk/jabber.conf': Found
== Manager registered action JabberSend
== Registered application 'JabberSend'
== Registered application 'JabberStatus'
res_jabber.so => (AJI - Asterisk Jabber Interface)
== Registered application 'Segfault'
app_segfault.so => (Application for crashing Asterisk with a segmentation fault)
== Registered custom function ENUMLOOKUP
== Registered custom function TXTCIDNAME
func_enum.so => (ENUM related dialplan functions)
== Registered file format gsm, extension(s) gsm
format_gsm.so => (Raw GSM data)
[Oct 14 13:28:26] WARNING[12232]: cdr_addon_mysql.c:316 my_load_module: Unable to load config for mysql CDR's: cdr_mysql.conf
cdr_addon_mysql.so => (MySQL CDR Backend)
== Registered application 'Dial'
== Registered application 'RetryDial'
app_dial.so => (Dialing Application)
== Registered application 'ExternalIVR'
app_externalivr.so => (External IVR Interface Application)
== Parsing '/etc/asterisk/skinny.conf': Found
== Skinny listening on 0.0.0.0:2000
== Registered channel type 'Skinny' (Skinny Client Control Protocol (Skinny))
== Registered custom function URIDECODE
== Registered custom function URIENCODE
func_uri.so => (URI encode/decode dialplan functions)
== Registered file format iLBC, extension(s) ilbc
format_ilbc.so => (Raw iLBC data)
== Registered application 'Authenticate'
app_authenticate.so => (Authentication Application)
== Registered application 'Dictate'
app_dictate.so => (Virtual Dictation Machine)
== Parsing '/etc/asterisk/cdr_manager.conf': Found
cdr_manager.so => (Asterisk Manager Interface CDR Backend)
== Registered custom function MUSICCLASS
func_moh.so => (Music-on-hold dialplan function)
== Registered custom function DEVSTATE
func_devstate.so => (Gets or sets a device state in the dialplan)
== Registered custom function CUT
== Registered custom function SORT
func_cut.so => (Cut out information from a string)
[Oct 14 13:28:26] ERROR[12232]: chan_vpb.cc:2722 ast_module_load_result load_module(): No Voicetronix cards detected
== Registered application 'DPickup'
app_directed_pickup.so => (Directed Call Pickup Application)
== Registered custom function ENV
== Registered custom function STAT
func_env.so => (Environment/filesystem dialplan functions)
== Registered custom function SHA1
func_sha1.so => (SHA-1 computation dialplan function)
== Registered application 'ControlPlayback'
app_controlplayback.so => (Control Playback Application)
== Registered custom function MATH
func_math.so => (Mathematical dialplan function)
== Registered custom function BLACKLIST
== Registered application 'LookupBlacklist'
app_lookupblacklist.so => (Look up Caller*ID name/number from blacklist database)
== 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)
== Registered application 'Transfer'
app_transfer.so => (Transfer)
== 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)
== Parsing '/etc/asterisk/cdr_pgsql.conf': Found
cdr_pgsql.so => (PostgreSQL CDR Backend)
[Oct 14 13:28:26] ERROR[12232]: res_config_mysql.c:629 mysql_reconnect: MySQL RealTime: Failed to connect database server on (err 2002). Check debug for more info.
[Oct 14 13:28:26] WARNING[12232]: res_config_mysql.c:476 load_module: MySQL RealTime: Couldn't establish connection. Check debug.
[Oct 14 13:28:26] NOTICE[12232]: config.c:1274 ast_config_engine_register: Registered Config Engine mysql
MySQL RealTime driver loaded.
res_config_mysql.so => (MySQL RealTime Configuration Driver)
== Parsing '/etc/asterisk/festival.conf': Found
== Registered application 'Festival'
app_festival.so => (Simple Festival Interface)
== Parsing '/etc/asterisk/codecs.conf': Found
-- CODEC SPEEX: Setting Quality to 3
-- CODEC SPEEX: Setting Complexity to 2
-- CODEC SPEEX: Perceptual Enhancement Mode. [on]
-- CODEC SPEEX: VAD Mode. [on]
-- CODEC SPEEX: VBR Mode. [on]
-- CODEC SPEEX: Disabling ABR
-- CODEC SPEEX: Setting VBR Quality to 4.000000
-- CODEC SPEEX: DTX Mode. [off]
-- CODEC SPEEX: Preprocessing. [off]
-- CODEC SPEEX: Preprocessor VAD. [off]
-- CODEC SPEEX: Preprocessor AGC. [off]
-- CODEC SPEEX: Setting preprocessor AGC Level to 8000.000000
-- CODEC SPEEX: Preprocessor Denoise. [off]
-- CODEC SPEEX: Preprocessor Dereverb. [off]
-- CODEC SPEEX: Setting preprocessor Dereverb Decay to 0.400000
-- CODEC SPEEX: Setting preprocessor Dereverb Level to 0.300000
== Registered translator 'speextolin' from format speex to slin, cost 2
== Registered translator 'lintospeex' from format slin to speex, cost 11
codec_speex.so => (Speex Coder/Decoder)
== Registered custom function RAND
func_rand.so => (Random number dialplan function)
== Registered application 'StackPop'
== Registered application 'Return'
== Registered application 'GosubIf'
== Registered application 'Gosub'
app_stack.so => (Stack Routines)
== Registered application 'ZapBarge'
app_zapbarge.so => (Barge in on Zap channel application)
== Registered application 'DBdel'
== Registered application 'DBdeltree'
app_db.so => (Database Access Functions)
== Parsing '/etc/asterisk/say.conf': Found
== Registered application 'Playback'
app_playback.so => (Sound File Playback Application)
== Registered application 'ForkCDR'
app_forkcdr.so => (Fork The CDR into 2 separate entities)
== 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))
== Parsing '/etc/asterisk/h323.conf': Found
== Creating H.323 Endpoint
== Parsing '/etc/asterisk/users.conf': Found
== Registered channel type 'H323' (The NuFone Network's Open H.323 Channel Driver)
== H.323 listener started
chan_h323.so => (The NuFone Network's OpenH323 Channel Driver)
== Registered application 'MixMonitor'
== Registered application 'StopMixMonitor'
app_mixmonitor.so => (Mixed Audio Monitoring Application)
pbx_spool.so => (Outgoing Spool Support)
== 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)
== Registered application 'TestClient'
== Registered application 'TestServer'
app_test.so => (Interface Test Application)
== Parsing '/etc/asterisk/codecs.conf': Found
-- codec_gsm: using generic PLC
== Registered translator 'gsmtolin' from format gsm to slin, cost 1
== Registered translator 'lintogsm' from format slin to gsm, cost 4
codec_gsm.so => (GSM Coder/Decoder)
== Registered application 'NBScat'
app_nbscat.so => (Silly NBS Stream Application)
== Registered application 'PrivacyManager'
app_privacy.so => (Require phone number to be entered, if no CallerID sent)
== 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 'TrySystem'
== Registered application 'System'
app_system.so => (Generic System() application)
== Registered custom function GLOBAL
func_global.so => (Global variable dialplan functions)
== Registered file format h264, extension(s) h264
format_h264.so => (Raw H.264 data)
== Parsing '/etc/asterisk/alarmreceiver.conf': Found
== Registered application 'AlarmReceiver'
app_alarmreceiver.so => (Alarm Receiver for Asterisk)
== Parsing '/etc/asterisk/codecs.conf': Found
-- codec_lpc10: using generic PLC
== Registered translator 'lpc10tolin' from format lpc10 to slin, cost 2
== Registered translator 'lintolpc10' from format slin to lpc10, cost 3
codec_lpc10.so => (LPC10 2.4kbps Coder/Decoder)
== Registered application 'TxFAX'
app_txfax.so => (Trivial FAX Transmit Application)
== Registered custom function CDR
func_cdr.so => (CDR dialplan function)
== Registered application 'DISA'
app_disa.so => (DISA (Direct Inward System Access) Application)
== Registered application 'MacroExit'
== Registered application 'MacroIf'
== Registered application 'MacroExclusive'
== Registered application 'Macro'
app_macro.so => (Extension Macros)
== Registered file format vox, extension(s) vox
format_vox.so => (Dialogic VOX (ADPCM) File Format)
== Registered application 'Milliwatt'
app_milliwatt.so => (Digital Milliwatt (mu-law) Test Application)
== Registered application 'MYSQL'
app_addon_sql_mysql.so => (Simple Mysql Interface)
== Registered application 'ChanIsAvail'
app_chanisavail.so => (Check channel availability)
== Registered application 'DumpChan'
app_dumpchan.so => (Dump Info About The Calling Channel)
== Parsing '/etc/asterisk/cdr_odbc.conf': Found
cdr_odbc.so => (ODBC CDR Backend)
== Parsing '/etc/asterisk/cdr_custom.conf': Found
cdr_custom.so => (Customizable Comma Separated Values CDR Backend)
== Registered application 'SendText'
app_sendtext.so => (Send Text Applications)
== Registered application 'Exec'
== Registered application 'TryExec'
== Registered application 'ExecIf'
app_exec.so => (Executes dialplan applications)
== Registered application 'ADSIProg'
app_adsiprog.so => (Asterisk ADSI Programming Application)
== Registered file format g729, extension(s) g729
format_g729.so => (Raw G729 data)
== Registered application 'ChanSpy'
== Registered application 'ExtenSpy'
== Registered application 'ChanSpyChan'
app_chanspy.so => (Listen to the audio of an active channel)
== Parsing '/etc/asterisk/rtp.conf': Found
== Parsing '/etc/asterisk/oh323.conf': Found
[Oct 14 13:28:26] ERROR[12232]: chan_oh323.c:5374 load_module: H.323 listener creation failed.

Help me solve the errors and warning and asterisk up and running on
sudo asterisk -r command

Thanks