Upgrade Asterisk to 1.8.8

Hi All,

I am Trying to Upgrade Asterisk-1.4.37 to Asterisk-1.8.8. I used Following steps

(1) make clean
(2) ./configure
(3) make
(4) make install
(5) make samples

When i am trying to start it…it crashes with segfault…following are logs…

Linux:~# asterisk -vvvvvvvvvvvvvvvgc
Asterisk 1.8.8.0, Copyright © 1999 - 2011 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.

== Parsing ‘/etc/asterisk/asterisk.conf’: == Found
== Parsing ‘/etc/asterisk/extconfig.conf’: == Found
== Parsing ‘/etc/asterisk/logger.conf’: == Found
== Parsing ‘/etc/asterisk/asterisk.conf’: == Found
== Manager registered action DataGet
== Parsing ‘/etc/asterisk/codecs.conf’: == Found
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 Login
== Manager registered action Challenge
== Manager registered action Hangup
== Manager registered action Status
== Manager registered action Setvar
== Manager registered action Getvar
== Manager registered action GetConfig
== Manager registered action GetConfigJSON
== Manager registered action UpdateConfig
== Manager registered action CreateConfig
== Manager registered action ListCategories
== Manager registered action Redirect
== Manager registered action Atxfer
== 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 SendText
== Manager registered action UserEvent
== Manager registered action WaitEvent
== Manager registered action CoreSettings
== Manager registered action CoreStatus
== Manager registered action Reload
== Manager registered action CoreShowChannels
== Manager registered action ModuleLoad
== Manager registered action ModuleCheck
== Manager registered action AOCMessage
== Parsing ‘/etc/asterisk/manager.conf’: == Found
== Parsing ‘/etc/asterisk/users.conf’: == Found
== Parsing ‘/etc/asterisk/cdr.conf’: == Found
[Dec 16 10:33:33] NOTICE[11749]: cdr.c:1558 do_reload: CDR simple logging enabled.
== Parsing ‘/etc/asterisk/cel.conf’: == Found
– CEL logging disabled.
== Parsing ‘/etc/asterisk/dsp.conf’: == Found
== Parsing ‘/etc/asterisk/udptl.conf’: == Found
== UDPTL allocating from port range 4000 -> 4999
Asterisk PBX Core Initializing
Registering builtin applications:
== Registered custom function ‘EXCEPTION’
== Registered custom function ‘TESTTIME’
[Answer]
== Registered application ‘Answer’
[BackGround]
== Registered application ‘BackGround’
[Busy]
== Registered application ‘Busy’
[Congestion]
== Registered application ‘Congestion’
[ExecIfTime]
== Registered application ‘ExecIfTime’
[Goto]
== Registered application ‘Goto’
[GotoIf]
== Registered application ‘GotoIf’
[GotoIfTime]
== Registered application ‘GotoIfTime’
[ImportVar]
== Registered application ‘ImportVar’
[Hangup]
== Registered application ‘Hangup’
[Incomplete]
== Registered application ‘Incomplete’
[NoOp]
== Registered application ‘NoOp’
[Proceeding]
== Registered application ‘Proceeding’
[Progress]
== Registered application ‘Progress’
[RaiseException]
== Registered application ‘RaiseException’
[ResetCDR]
== Registered application ‘ResetCDR’
[Ringing]
== Registered application ‘Ringing’
[SayAlpha]
== Registered application ‘SayAlpha’
[SayDigits]
== Registered application ‘SayDigits’
[SayNumber]
== Registered application ‘SayNumber’
[SayPhonetic]
== Registered application ‘SayPhonetic’
[Set]
== Registered application ‘Set’
[MSet]
== Registered application ‘MSet’
[SetAMAFlags]
== Registered application ‘SetAMAFlags’
[Wait]
== Registered application ‘Wait’
[WaitExten]
== Registered application ‘WaitExten’
== Manager registered action ShowDialPlan
== 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-old’
– Registered indication country ‘tw’
– Registered indication country ‘ve’
– Registered indication country ‘za’
– Setting default indication country to ‘us’
== Parsing ‘/etc/asterisk/features.conf’: == Found
– Registered extension context ‘parkedcalls’; registrar: features
– Added extension ‘700’ priority 1 to parkedcalls
== Registered application ‘Bridge’
== Registered application ‘ParkedCall’
== Registered application ‘Park’
== Manager registered action ParkedCalls
== Manager registered action Park
== Manager registered action Bridge
== Manager registered action DBGet
== Manager registered action DBPut
== Manager registered action DBDel
== Manager registered action DBDelTree
== Parsing ‘/etc/asterisk/enum.conf’: == Found
== Registered application ‘CallCompletionRequest’
== Registered application ‘CallCompletionCancel’
== Parsing ‘/etc/asterisk/ccss.conf’: == Found
Asterisk Dynamic Loader Starting:
== Parsing ‘/etc/asterisk/modules.conf’: == Found
[Dec 16 10:33:33] NOTICE[11749]: loader.c:1118 load_modules: 221 modules will be loaded.
[Dec 16 10:33:33] WARNING[11749]: loader.c:387 load_dynamic_module: Error loading module ‘res_fax_digium.so’: /usr/lib/asterisk/modules/res_fax_digium.so: undefined symbol: ao2_lock
[Dec 16 10:33:33] WARNING[11749]: loader.c:387 load_dynamic_module: Error loading module ‘chan_ooh323.so’: /usr/lib/asterisk/modules/chan_ooh323.so: undefined symbol: ast_rtp_bridge
[Dec 16 10:33:33] WARNING[11749]: loader.c:387 load_dynamic_module: Error loading module ‘app_dahdiscan.so’: /usr/lib/asterisk/modules/app_dahdiscan.so: undefined symbol: dahdi_chan_name
– Loaded PUBLIC key ‘freeworlddialup’
– Loaded PUBLIC key 'iaxtel’
res_crypto.so => (Cryptographic Digital Signatures)
== Parsing ‘/etc/asterisk/res_stun_monitor.conf’: == Found
res_stun_monitor.so => (STUN Network Monitor)
== Parsing ‘/etc/asterisk/smdi.conf’: == Found
[Dec 16 10:33:33] NOTICE[11749]: res_smdi.c:1418 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
== 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/adsi.conf’: == Found
res_adsi.so => (ADSI Resource)
== Parsing ‘/etc/asterisk/res_fax.conf’: == Found
== Registered application ‘SendFAX’
== Registered application ‘ReceiveFAX’
== Registered custom function 'FAXOPT’
res_fax.so => (Generic FAX Applications)
res_speech.so => (Generic Speech Recognition API)
== AGI Command ‘answer’ registered
== AGI Command ‘asyncagi break’ registered
== AGI Command ‘channel status’ registered
== AGI Command ‘database del’ registered
== AGI Command ‘database deltree’ registered
== AGI Command ‘database get’ registered
== AGI Command ‘database put’ registered
== AGI Command ‘exec’ registered
== AGI Command ‘get data’ registered
== AGI Command ‘get full variable’ registered
== AGI Command ‘get option’ registered
== AGI Command ‘get variable’ registered
== AGI Command ‘hangup’ registered
== AGI Command ‘noop’ registered
== AGI Command ‘receive char’ registered
== AGI Command ‘receive text’ registered
== AGI Command ‘record file’ registered
== AGI Command ‘say alpha’ registered
== AGI Command ‘say digits’ registered
== AGI Command ‘say number’ registered
== AGI Command ‘say phonetic’ registered
== AGI Command ‘say date’ registered
== AGI Command ‘say time’ registered
== AGI Command ‘say datetime’ registered
== AGI Command ‘send image’ registered
== AGI Command ‘send text’ registered
== AGI Command ‘set autohangup’ registered
== AGI Command ‘set callerid’ registered
== AGI Command ‘set context’ registered
== AGI Command ‘set extension’ registered
== AGI Command ‘set music’ registered
== AGI Command ‘set priority’ registered
== AGI Command ‘set variable’ registered
== AGI Command ‘stream file’ registered
== AGI Command ‘control stream file’ registered
== AGI Command ‘tdd mode’ registered
== AGI Command ‘verbose’ registered
== AGI Command ‘wait for digit’ registered
== AGI Command ‘speech create’ registered
== AGI Command ‘speech set’ registered
== AGI Command ‘speech destroy’ registered
== AGI Command ‘speech load grammar’ registered
== AGI Command ‘speech unload grammar’ registered
== AGI Command ‘speech activate grammar’ registered
== AGI Command ‘speech deactivate grammar’ registered
== AGI Command ‘speech recognize’ registered
== Registered application ‘DeadAGI’
== Registered application ‘EAGI’
== Manager registered action AGI
== Registered application 'AGI’
res_agi.so => (Asterisk Gateway Interface (AGI))
== Parsing ‘/etc/asterisk/calendar.conf’: == Found
== Registered custom function ‘CALENDAR_BUSY’
== Registered custom function ‘CALENDAR_EVENT’
== Registered custom function ‘CALENDAR_QUERY’
== Registered custom function ‘CALENDAR_QUERY_RESULT’
== Registered custom function 'CALENDAR_WRITE’
res_calendar.so => (Asterisk Calendar integration)
res_ael_share.so => (share-able code for AEL)
[Dec 16 10:33:33] WARNING[11749]: loader.c:449 load_dynamic_module: Error loading module ‘app_hasnewvoicemail.so’: /usr/lib/asterisk/modules/app_hasnewvoicemail.so: undefined symbol: ast_custom_function_register
[Dec 16 10:33:33] WARNING[11749]: loader.c:839 load_resource: Module ‘app_hasnewvoicemail.so’ could not be loaded.
[Dec 16 10:33:33] WARNING[11749]: loader.c:449 load_dynamic_module: Error loading module ‘app_pickupchan.so’: /usr/lib/asterisk/modules/app_pickupchan.so: undefined symbol: ast_debug_get_by_file
[Dec 16 10:33:33] WARNING[11749]: loader.c:839 load_resource: Module ‘app_pickupchan.so’ could not be loaded.
[Dec 16 10:33:33] WARNING[11749]: loader.c:449 load_dynamic_module: Error loading module ‘app_saycountpl.so’: /usr/lib/asterisk/modules/app_saycountpl.so: undefined symbol: ast_register_application_xml
[Dec 16 10:33:33] WARNING[11749]: loader.c:839 load_resource: Module ‘app_saycountpl.so’ could not be loaded.
[Dec 16 10:33:33] WARNING[11749]: loader.c:449 load_dynamic_module: Error loading module ‘func_language.so’: /usr/lib/asterisk/modules/func_language.so: undefined symbol: ast_custom_function_register
[Dec 16 10:33:33] WARNING[11749]: loader.c:839 load_resource: Module ‘func_language.so’ could not be loaded.
[Dec 16 10:33:33] WARNING[11749]: loader.c:449 load_dynamic_module: Error loading module ‘app_lookupcidname.so’: /usr/lib/asterisk/modules/app_lookupcidname.so: undefined symbol: ast_register_application
[Dec 16 10:33:33] WARNING[11749]: loader.c:839 load_resource: Module ‘app_lookupcidname.so’ could not be loaded.
[Dec 16 10:33:33] WARNING[11749]: loader.c:449 load_dynamic_module: Error loading module ‘res_features.so’: /usr/lib/asterisk/modules/res_features.so: undefined symbol: ast_channel_walk_locked
[Dec 16 10:33:33] WARNING[11749]: loader.c:839 load_resource: Module ‘res_features.so’ could not be loaded.
Segmentation fault (core dumped)

Please Help.
Thanks in Advance

Vijay Goyal

After make install, did you see a notice about modules in /usr/lib/asterisk/modules that weren’t compiled for the version of Asterisk you just installed? Remove them first.

Hi Malcolmd,

Thanks for your help…

it worked after removing /usr/lib/asterisk/modules/

Same issue here. with 1.8.8.2 pegging one of the CPU’s right after the console shows:

== Parsing '/etc/asterisk/modules.conf': == Found [Jan 23 11:06:11] NOTICE[16714]: loader.c:1118 load_modules: 181 modules will be loaded.

I tried letting it run all night and it is still “hung” in the morning. This is a configuration that runs fine on an Athlon 6000+ x2 at version 1.8.7.0 on OpenSUSE 10.3 x64. It wasn’t until I upgraded to AMD FX-8120 (8 core) Sabertooth 990fx - OpenSUSE 12.1 x86_64 (kernel 3.1.0) That this behavior began.

I tried ./configure:

[quote]configure: *** XML documentation will not be available because the ‘libxml2’ development package is missing.
configure: *** Please run the ‘configure’ script with the ‘–disable-xmldoc’ parameter option
configure: *** or install the ‘libxml2’ development package.[/quote]

I looked in my software config and it says I already have libxml2 installed. I wonder if this is a 64-bit issue?

[quote]
pluto:/home/install/asterisk/asterisk-1.8.8.2 # uname -a
Linux pluto 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC 2011 (187dde0) x86_64 x86_64 x86_64 GNU/Linux

pluto:/home/install/asterisk/asterisk-1.8.8.2 # ./configure --disable-xmldoc[/quote]

make
make install
asterisk ; asterisk -vvvr

Disabling optimization doesn’t change behavior. I already tried “rm -r /usr/lib64/asterisk/modules/” and this hasn’t helped either. The load modules code isn’t giving me any clues and the log files don’t either. It would be nice if for the 181 modules a statement would be issued for each module, like “starting load of app_adsiprog.so …” so I’d have a name of what to disable before my next try.

This one has me stumped and using Google and searching this forum so far hasn’t been able to provide answers. Any ideas what to try next? I’m considering leaving the old system running (an extra continuous 120W power), just so I can have a working Asterisk system.

UPDATE: Bug Report submitted https://issues.asterisk.org/jira/browse/ASTERISK-19245