Asterisk/Suse 9.2, undefined symbol capidebug problem

Hi,

I am sure my questions are FAQs, but I could not see any solutions addressing my config. I apologize for not searching enough if these have been answered before.

I downloaded individual rpms for Asterisk and dependent libs from ftp.suse.com and installed them on a Suse 9.2 machine with no extra hardware. This PC does not even an analog modem. My plan was to get Asterisk going with SIP softphones with other PCs on the LAN as extensions, play with them a bit, learn some more and then decide what kind of hardware I want.

When I try to execute “/usr/sbin/asterisk -vvvgc” (as root), I get an error message that “capidebug” is undefined.

I found posts about this problem and the suggested remedy was to make sure chan_capi was enabled in modules.conf. I added a line to my modules.conf to do that, and now when I start asterisk, I get an error message that “CAPI is not installed”.

I don’t have any ISDN cards, and so I should not be attempting to load any CAPI drivers, right? The error message about “CAPI is not installed” is to be expected if I try to force chan_capi to be enabled in modules.conf, is that correct?

Any ideas on what I could do get around the “capidebug” problem? “chan_capi.so” does have this symbol defined.

I also get some warnings about mysql, but am not sure if these are show stoppers.

Below are the console outputs during the rpm installation.:


[quote]sritux:/home/sri/tmp # rpm --install asterisk-1.0.0.20040814-0.1.i586.rpm
sritux:/home/sri/tmp # rpm --install asterisk-alsa-1.0.0.20040814-0.1.i586.rpm
sritux:/home/sri/tmp # rpm --install asterisk-capi-0.3.5-3.1.i586.rpm
sritux:/home/sri/tmp # rpm --install asterisk-odbc-1.0.0.20040814-0.1.i586.rpm
sritux:/home/sri/tmp # rpm --install postgresql-libs-7.4.6-0.1.i586.rpm
sritux:/home/sri/tmp # rpm --install spandsp-0.0.1k-4.1.i586.rpm
sritux:/home/sri/tmp # rpm --install zaptel-0.9.1.20040813-1.i586.rpm
Updating etc/sysconfig/zaptel…
sritux:/home/sri/tmp # rpm --install asterisk-pgsql-1.0.0.20040814-0.1.i586.rpm
sritux:/home/sri/tmp # rpm --install asterisk-spandsp-1.0.0.20040814-0.1.i586.rpm
sritux:/home/sri/tmp # rpm --install asterisk-zaptel-1.0.0.20040814-0.1.i586.rpm

sritux:/home/sri/tmp # which asterisk
/usr/sbin/asterisk[/quote]

Here is what I get when I try to execute “asterisk -vvvvc”:

[quote]sritux:/home/sri/tmp # asterisk -vvvvc
== Parsing ‘/etc/asterisk/asterisk.conf’: Found
== Parsing ‘/etc/asterisk/extconfig.conf’: Found
Asterisk CVS-HEAD-08/13/04-12:00:00-BRI-stuffed-0.1.0-RC4a, Copyright © 1999-2004 Digium.
Written by Mark Spencer markster@digium.com

== Parsing ‘/etc/asterisk/logger.conf’: Found
Asterisk Event Logger Started /var/log/asterisk/event_log
== Manager registered action Ping
== Manager registered action Events
== Manager registered action Logoff
== Manager registered action Hangup
== Manager registered action Status
== Manager registered action Setvar
== Manager registered action Getvar
== Manager registered action Redirect
== Manager registered action Originate
== Manager registered action MailboxStatus
== Manager registered action Command
== Manager registered action ExtensionState
== Manager registered action AbsoluteTimeout
== Manager registered action MailboxCount
== Manager registered action ListCommands
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/rtp.conf’: Found
== RTP Allocating from port range 10000 -> 20000
Asterisk PBX Core Initializing
Registering builtin applications:
[AbsoluteTimeout]
== Registered application ‘AbsoluteTimeout’
[Answer]
== Registered application ‘Answer’
[BackGround]
== Registered application ‘BackGround’
[Busy]
== Registered application ‘Busy’
[Congestion]
== Registered application ‘Congestion’
[DigitTimeout]
== Registered application ‘DigitTimeout’
[Goto]
== Registered application ‘Goto’
[GotoIf]
== Registered application ‘GotoIf’
[GotoIfTime]
== Registered application ‘GotoIfTime’
[Hangup]
== Registered application ‘Hangup’
[NoOp]
== Registered application ‘NoOp’
[Prefix]
== Registered application ‘Prefix’
[Progress]
== Registered application ‘Progress’
[ResetCDR]
== Registered application ‘ResetCDR’
[ResponseTimeout]
== Registered application ‘ResponseTimeout’
[Ringing]
== Registered application ‘Ringing’
[SayNumber]
== Registered application ‘SayNumber’
[SayDigits]
== Registered application ‘SayDigits’
[SayAlpha]
== Registered application ‘SayAlpha’
[SayPhonetic]
== Registered application ‘SayPhonetic’
[SetAccount]
== Registered application ‘SetAccount’
[SetAMAFlags]
== Registered application ‘SetAMAFlags’
[SetGlobalVar]
== Registered application ‘SetGlobalVar’
[SetLanguage]
== Registered application ‘SetLanguage’
[SetVar]
== Registered application ‘SetVar’
[StripMSD]
== Registered application ‘StripMSD’
[Suffix]
== Registered application ‘Suffix’
[Wait]
== Registered application ‘Wait’
[WaitExten]
== Registered application 'WaitExten’
Asterisk Dynamic Loader Starting:
== Parsing ‘/etc/asterisk/modules.conf’: Found
[chan_modem.so] => (Generic Voice Modem Driver)
== Parsing ‘/etc/asterisk/modem.conf’: Found
== Loading modem driver chan_modem_aopen.so => (A/Open (Rockwell Chipset) ITU-2 VoiceModem Driver)
== Registered channel type ‘Modem’ (Generic Voice Modem Channel Driver)
[res_musiconhold.so] => (Music On Hold Resource)
== Parsing ‘/etc/asterisk/musiconhold.conf’: Found
Apr 19 09:11:31 WARNING[1076861568]: res_musiconhold.c:543 moh_register: Unableto open pseudo channel for timing… Sound may be choppy.
== Registered application ‘MusicOnHold’
== Registered application ‘WaitMusicOnHold’
== Registered application ‘SetMusicOnHold’
[res_indications.so] => (Indications Configuration)
== Parsing ‘/etc/asterisk/indications.conf’: Found
– Registered indication country ‘cl’
– Registered indication country ‘tw’
– Registered indication country ‘us’
– Registered indication country ‘au’
– Registered indication country ‘fr’
– Registered indication country ‘de’
– Registered indication country ‘nl’
– Registered indication country ‘uk’
– Registered indication country ‘fi’
– Registered indication country ‘no’
– Registered indication country ‘br’
– Registered indication country ‘za’
– Registered indication country ‘it’
– Registered indication country ‘us-o’
– Registered indication country ‘gr’
– Registered indication country ‘ru’
– Registered indication country ‘nz’
– Setting default indication country to ‘us’
== Registered application ‘Playtones’
== Registered application ‘StopPlaytones’
[res_features.so]Found new ID3 Header
Warning, flexible rate not heavily tested!
=> (Call Parking Resource)
== 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
== Registered application ‘HoldedCall’
[res_agi.so] => (Asterisk Gateway Interface (AGI))
== Registered application ‘DeadAGI’
== Registered application ‘EAGI’
== Registered application ‘AGI’
[res_crypto.so] => (Cryptographic Digital Signatures)
– Loaded PUBLIC key ‘iaxtel’
– Loaded PUBLIC key ‘freeworlddialup’
[res_adsi.so] => (ADSI Resource)
== Parsing ‘/etc/asterisk/adsi.conf’: Found
[res_odbc.so] => (ODBC Resource)
== Parsing ‘/etc/asterisk/res_odbc.conf’: Found
Apr 19 09:11:31 NOTICE[1076861568]: res_odbc.c:131 load_odbc_config: registereddatabase handle ‘mysql1’ dsn->[MySQL-asterisk]
Apr 19 09:11:31 WARNING[1076861568]: res_odbc.c:344 odbc_obj_connect: res_odbc:Error SQLConnect=-1 errno=0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified
Apr 19 09:11:31 NOTICE[1076861568]: res_odbc.c:131 load_odbc_config: registereddatabase handle ‘mysql2’ dsn->[MySQL-asterisk]
Apr 19 09:11:31 WARNING[1076861568]: res_odbc.c:344 odbc_obj_connect: res_odbc:Error SQLConnect=-1 errno=0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified
Apr 19 09:11:31 NOTICE[1076861568]: res_odbc.c:375 load_module: res_odbc loaded.
[res_config_odbc.so] => (ODBC Configuration)
Apr 19 09:11:31 NOTICE[1076861568]: config.c:882 ast_config_register: Registered Config Engine odbc
== Parsing ‘/etc/asterisk/extconfig.conf’: Found
Apr 19 09:11:31 NOTICE[1076861568]: res_config_odbc.c:190 load_module: res_config_odbc loaded.
[res_monitor.so] => (Call Monitoring Resource)
== Registered application ‘Monitor’
== Registered application ‘StopMonitor’
== Registered application ‘ChangeMonitor’
== Manager registered action Monitor
== Manager registered action StopMonitor
== Manager registered action ChangeMonitor
[app_sms.so] => (SMS/PSTN handler)
== Registered application ‘SMS’
[app_hasnewvoicemail.so] => (Indicator for whether a voice mailbox has messages in a given folder.
== Registered application ‘HasVoicemail’
== Registered application ‘HasNewVoicemail’
[format_wav_gsm.so] => (Microsoft WAV format (Proprietary GSM))
== Registered file format wav49, extension(s) WAV|wav49
[app_url.so] => (Send URL Applications)
== Registered application ‘SendURL’
[chan_modem_i4l.so] => (ISDN4Linux Emulated Modem Driver)
[chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
== 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))
[app_eval.so] => (Reevaluates strings)
== Registered application ‘Eval’
[chan_zap.so] => (Zapata Telephony w/PRI)
== Parsing ‘/etc/asterisk/zapata.conf’: Found
– Automatically generated pseudo channel
== Registered channel type ‘Zap’ (Zapata Telephony Driver w/PRI)
== Registered channel type ‘Tor’ (Zapata Telephony Driver w/PRI)
== Registered application ‘CallingPres’
== Manager registered action ZapTransfer
== Manager registered action ZapHangup
== Manager registered action ZapDialOffhook
== Manager registered action ZapDNDon
== Manager registered action ZapDNDoff
== Manager registered action ZapShowChannels
[app_sendtext.so] => (Send Text Applications)
== Registered application ‘SendText’
[app_exec.so] => (Executes applications)
== Registered application ‘Exec’
[app_txtcidname.so] => (TXTCIDName)
== Registered application ‘TXTCIDName’
== Parsing ‘/etc/asterisk/enum.conf’: Found
[cdr_manager.so] => (Asterisk Call Manager CDR Backend)
== Parsing ‘/etc/asterisk/cdr_manager.conf’: Found
[app_txfax.so] => (Trivial FAX Transmit Application)
== Registered application ‘TxFAX’
[app_capiCD.so]Apr 19 09:11:32 WARNING[1076861568]: loader.c:242 ast_load_resource: /usr/lib/asterisk/modules/app_capiCD.so: undefined symbol: capidebug
Apr 19 09:11:32 WARNING[1076861568]: loader.c:423 load_modules: Loading module app_capiCD.so failed!
Ouch … error while writing audio data: : Broken pipe
sritux:/home/sri/tmp # [/quote]

Thank you for any help, advice or suggestions. I am going to continue to look through the docs to see what I am doing wrong.

gard

Hello gard,
Did you use yast to install the rpm packages including asterisk rpm? I installed asterisk in Suse 9.2 also just to try it with asterisk and I did not experience that problem, maybe you can just reinstall asterisk. I’ve wrote down the step I did when I install Suse and asterisk, if you want I can e-mail it to you. i’m using fedoracore 3 now.

I think you have 2 options

  1. Try and work with the current install. Was one of the RPMs dependant on the capi RPM? If not try and remove it and also edit modules.conf so that it does not try and load capi. Post your modules.conf if you need more help.

  2. Remove the RPMs and build Asterisk from scratch, should only take about 20 minutes.

please email us the docs u writed
thx a lot
to baghdadi.wajih@gmail.com

[quote=“jpuma”]Hello gard,
Did you use yast to install the rpm packages including asterisk rpm? I installed asterisk in Suse 9.2 also just to try it with asterisk and I did not experience that problem, maybe you can just reinstall asterisk. I’ve wrote down the step I did when I install Suse and asterisk, if you want I can e-mail it to you. i’m using fedoracore 3 now.[/quote]