.titleBar { margin-bottom: 5px!important; }

Fehler beim Start von Asterisk

Dieses Thema im Forum "Asterisk Allgemein" wurde erstellt von Perbacco, 6 Feb. 2006.

  1. Perbacco

    Perbacco Neuer User

    Registriert seit:
    30 Dez. 2005
    Beiträge:
    7
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Wie im Kurs "Wir konfigurieren uns ein Asterisk" angebenen, wurde das aktuelle Paket (1.2.4) übersetzt und installiert. Beim Aufruf von "asterisk -vvvg" kommt es zur Meldung "asterisk: relocation error: /usr/lib/asterisk/modules/res_obdc.so: undefined symbol: ast_load". Anbei die vollständige Ausgabe. Wer kann hier helfen?

    Code:
    wiesel:/etc/asterisk# asterisk -vvvg
      == Parsing '/etc/asterisk/asterisk.conf': Found
      == Parsing '/etc/asterisk/extconfig.conf': Found
    Asterisk 1.2.4, Copyright (C) 1999 - 2006 Digium, Inc. and others.
    Created by Mark Spencer <markster@digium.com>
    Asterisk comes with ABSOLUTELY NO WARRANTY; type '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 'show license' for details.
    =========================================================================
      == Parsing '/etc/asterisk/logger.conf': Found
    Asterisk Event Logger Started /var/log/asterisk/event_log
      == Parsing '/etc/asterisk/dnsmgr.conf': Found
    Asterisk Dynamic Loader loading preload modules:
      == Parsing '/etc/asterisk/modules.conf': Found
      == 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 Command
      == Manager registered action ExtensionState
      == Manager registered action AbsoluteTimeout
      == Manager registered action MailboxStatus
      == Manager registered action MailboxCount
      == Manager registered action ListCommands
      == Parsing '/etc/asterisk/manager.conf': Found
      == Parsing '/etc/asterisk/cdr.conf': Found
    Feb  6 20:20:58 NOTICE[17134]: cdr.c:1188 do_reload: CDR simple logging enabled.
      == 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'
     [ExecIfTime]
      == Registered application 'ExecIfTime'
     [Hangup]
      == Registered application 'Hangup'
     [NoOp]
      == Registered application 'NoOp'
     [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'
     [Set]
      == Registered application 'Set'
     [SetVar]
      == Registered application 'SetVar'
     [ImportVar]
      == Registered application 'ImportVar'
     [Wait]
      == Registered application 'Wait'
     [WaitExten]
      == Registered application 'WaitExten'
    Asterisk Dynamic Loader Starting:
      == Parsing '/etc/asterisk/modules.conf': Found
     [res_musiconhold.so] => (Music On Hold Resource)
      == Registered application 'MusicOnHold'
      == Registered application 'WaitMusicOnHold'
      == Registered application 'SetMusicOnHold'
      == Registered application 'StartMusicOnHold'
      == Registered application 'StopMusicOnHold'
      == Parsing '/etc/asterisk/musiconhold.conf': Found
     [res_features.so] => (Call Features 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
     [res_adsi.so] => (ADSI Resource)
      == Parsing '/etc/asterisk/adsi.conf': Found
     [res_crypto.so] => (Cryptographic Digital Signatures)
        -- Loaded PUBLIC key 'freeworlddialup'
        -- Loaded PUBLIC key 'iaxtel'
     [res_indications.so] => (Indications Configuration)
      == Parsing '/etc/asterisk/indications.conf': Found
        -- Registered indication country 'at'
        -- Registered indication country 'au'
        -- 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 'it'
        -- Registered indication country 'lt'
        -- Registered indication country 'mx'
        -- Registered indication country 'nl'
        -- Registered indication country 'no'
        -- Registered indication country 'nz'
        -- Registered indication country 'pl'
        -- Registered indication country 'pt'
        -- Registered indication country 'ru'
        -- Registered indication country 'se'
        -- Registered indication country 'sg'
        -- Registered indication country 'uk'
        -- Registered indication country 'us'
        -- Registered indication country 'us-o'
        -- Registered indication country 'tw'
        -- Registered indication country 'za'
        -- Setting default indication country to 'us'
      == Registered application 'PlayTones'
      == Registered application 'StopPlayTones'
     [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
     [res_agi.so] => (Asterisk Gateway Interface (AGI))
      == Registered application 'DeadAGI'
      == Registered application 'EAGI'
      == Registered application 'AGI'
     [res_odbc.so] => (ODBC Resource)
    asterisk: relocation error: /usr/lib/asterisk/modules/res_odbc.so: undefined symbol: ast_load
    
     
  2. Liquido

    Liquido Neuer User

    Registriert seit:
    13 Jan. 2006
    Beiträge:
    57
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Beruf:
    System-Engineer
    Was steht den bei dir in dem File res_odbc.conf drin?
     
  3. betateilchen

    betateilchen Grandstream-Guru

    Registriert seit:
    30 Juni 2004
    Beiträge:
    12,882
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Ort:
    am Letzenberg
    Es ist kein Problem der conf Datei. Das Modul selbst wird schon nicht geladen.

    Da muß aber beim kompilieren selbst schon was schiefgegangen sein !

    Am einfachsten ist es, Du trägst in der Datei

    /etc/asterisk/modules.conf eine Zeile

    Code:
    noload => res_odbc.so
    ein und probierst dann nochmal, den Asterisk zu starten.

    Diese Zeile solltest Du übrigens dort eintragen, wo schon andere noload=> Zeilen stehen und bitte NICHT am Ende der modules.conf !
     
  4. Perbacco

    Perbacco Neuer User

    Registriert seit:
    30 Dez. 2005
    Beiträge:
    7
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Mittlerweile läuft Asterisk. Allerdings habe ich ein Modul nach dem anderen ausgetragen müssen, d.h. folgende zusätzlichen Einträge enthält nun die /etc/asterisk/modules.conf:

    noload => res_odbc.so
    noload => res_config_odbc.so
    noload => pbx_wilcalu.so
    noload => chan_zap.so
    noload => chan_capi.so
    noload => app_devstate.so
    noload => app_meetme.so
    noload => cdr_pgsql.so
    noload => cdr_odbc.so
    noload => app_capiCD.so
    noload => app_capiHOLD.so
    noload => app_capiRETRIEVE.so
    noload => app_capiECT.so
    noload => app_capiMCID.so
    noload => app_directed_pickup.so

    Hat das irgendwelche Auswirkungen?
     
  5. betateilchen

    betateilchen Grandstream-Guru

    Registriert seit:
    30 Juni 2004
    Beiträge:
    12,882
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Ort:
    am Letzenberg
    Für den Kurs hat das keine Auswirkungen. Aber Du mußt unterscheiden, ob Du beim Starten des Asterisk Fehler mit Abbrüchen des Start hattest, oder nur Warnungen beim Starten. Die Warnungen kannst Du normalerweise ignorieren und brauchst keine Änderungen an der modules.conf vornehmen.
     
  6. franzose

    franzose Neuer User

    Registriert seit:
    10 Sep. 2004
    Beiträge:
    133
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Ort:
    Munich
    #6 franzose, 7 Feb. 2006
    Zuletzt bearbeitet: 7 Feb. 2006
    Hallo,

    habe auch das betateilchen Tutorial durchgearbeitet (erst einmal Lektion 2 ;)), allerdings startet der Asterisk auch bei mir nicht:

    Code:
    galgnet:/etc/asterisk # asterisk -vvvvg
    Asterisk 1.2.4-BRIstuffed-0.3.0-PRE-1k, Copyright (C) 1999 - 2006 Digium, Inc. and others.
    Created by Mark Spencer <markster@digium.com>
    Asterisk comes with ABSOLUTELY NO WARRANTY; type '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 'show license' for details.
    =========================================================================
      == Parsing '/etc/asterisk/logger.conf': Found
    Asterisk Event Logger Started /var/log/asterisk/event_log
    Asterisk Dynamic Loader loading preload modules:
      == Parsing '/etc/asterisk/modules.conf': Found
      == 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 Command
      == Manager registered action ExtensionState
      == Manager registered action AbsoluteTimeout
      == Manager registered action MailboxStatus
      == Manager registered action MailboxCount
      == Manager registered action ListCommands
      == RTP Allocating from port range 5000 -> 31000
    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'
     [ExecIfTime]
      == Registered application 'ExecIfTime'
     [Hangup]
      == Registered application 'Hangup'
     [NoOp]
      == Registered application 'NoOp'
     [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'
     [Set]
      == Registered application 'Set'
     [SetVar]
      == Registered application 'SetVar'
     [ImportVar]
      == Registered application 'ImportVar'
     [Wait]
      == Registered application 'Wait'
     [WaitExten]
      == Registered application 'WaitExten'
    Asterisk Dynamic Loader Starting:
      == Parsing '/etc/asterisk/modules.conf': Found
     [res_musiconhold.so] => (Music On Hold Resource)
      == Registered application 'MusicOnHold'
      == Registered application 'WaitMusicOnHold'
      == Registered application 'SetMusicOnHold'
      == Registered application 'StartMusicOnHold'
      == Registered application 'StopMusicOnHold'
    Feb  7 01:04:08 WARNING[4995]: res_musiconhold.c:1195 load_module: No music on h [res_indications.so] => (Indications Configuration)
      == Registered application 'PlayTones'
      == Registered application 'StopPlayTones'
     [res_watchdog.so] => (Watchdog Resource)
     [res_features.so] => (Call Features Resource)
        -- Registered extension context 'parkedcalls'
        -- Added extension '700' priority 1 to parkedcalls
      == Registered application 'ParkedCall'
      == Registered application 'Park'
      == Manager registered action ParkedCalls
      == Registered application 'HoldedCall'
      == Registered application 'AutoanswerLogin'
      == Registered application 'Autoanswer'
     [res_agi.so] => (Asterisk Gateway Interface (AGI))
      == Registered application 'DeadAGI'
      == Registered application 'EAGI'
      == Registered application 'XAGI'
      == Registered application 'AGI'
     [res_crypto.so] => (Cryptographic Digital Signatures)
        -- Loaded PUBLIC key 'iaxtel'
        -- Loaded PUBLIC key 'freeworlddialup'
     [res_adsi.so] => (ADSI Resource)
     [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
     [pbx_dundi.so] => (Distributed Universal Number Discovery (DUNDi))
    Feb  7 01:04:08 ERROR[4995]: pbx_dundi.c:4574 set_config: Unable to load config dundi.conf
      == Using TOS bits 0
      == DUNDi Ready and Listening on 0.0.0.0 port 4520
      == Registered application 'DUNDiLookup'
      == Registered custom function DUNDILOOKUP
     [pbx_functions.so] => (Builtin dialplan functions)
      == Registered custom function MD5
      == Registered custom function CHECK_MD5
      == Registered custom function MATH
      == Registered custom function GROUP_COUNT
      == Registered custom function GROUP_MATCH_COUNT
      == Registered custom function GROUP
      == Registered custom function GROUP_LIST
      == Registered custom function FIELDQTY
      == Registered custom function REGEX
      == Registered custom function LEN
      == Registered custom function STRFTIME
      == Registered custom function EVAL
      == Registered custom function CDR
      == Registered custom function ISNULL
      == Registered custom function SET
      == Registered custom function EXISTS
      == Registered custom function IF
      == Registered custom function IFTIME
      == Registered custom function ENV
      == Registered custom function DB
      == Registered custom function DB_EXISTS
      == Registered custom function TIMEOUT
      == Registered custom function LANGUAGE
      == Registered custom function MUSICCLASS
     [pbx_ael.so] => (Asterisk Extension Language Compiler)
    Feb  7 01:04:08 WARNING[4995]: pbx_ael.c:1146 ast_ael_compile: Unable to open '/etc/asterisk/extensions.ael': No such file or directory
    Feb  7 01:04:08 WARNING[4995]: pbx.c:3741 ast_merge_contexts_and_delete: Requested contexts didn't get merged
     [pbx_spool.so] => (Outgoing Spool Support)
     [pbx_loopback.so] => (Loopback Switch)
     [pbx_config.so] => (Text Extension Configuration)
      == Parsing '/etc/asterisk/extensions.conf': Found
        -- Registered extension context 'lokal'
        -- Added extension '_3X' priority 1 to lokal
        -- Added extension '_3X' priority 2 to lokal
        -- Registered extension context 'default'
        -- Including context 'lokal' in context 'default'
     [pbx_realtime.so] => (Realtime Switch)
     [chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
      == Registered channel type 'MGCP' (Media Gateway Control Protocol (MGCP))
     [chan_zap.so] => (Zapata Telephony w/PRI)
      == Parsing '/etc/asterisk/zapata.conf': Found
        -- Registered channel 1, PRI Signalling signalling
        -- Registered channel 2, PRI Signalling signalling
        -- Automatically generated pseudo channel
      == Starting D-Channel on span 1
      == Registered channel type 'Zap' (Zapata Telephony Driver w/PRI)
      == Manager registered action ZapTransfer
      == Manager registered action ZapHangup
      == Manager registered action ZapDialOffhook
      == Manager registered action ZapDNDon
      == Manager registered action ZapDNDoff
      == Manager registered action ZapShowChannels
      == Registered application 'zapEC'
      == Registered application 'zapCD'
     [chan_local.so] => (Local Proxy Channel)
      == Registered channel type 'Local' (Local Proxy Channel Driver)
     [skipping chan_alsa.so]
     [chan_iax2.so] => (Inter Asterisk eXchange (Ver 2))
      == Registered custom function IAXPEER
      == Registered application 'IAX2Provision'
      == Manager registered action IAXpeers
      == Manager registered action IAXnetstats
      == Parsing '/etc/asterisk/iax.conf': Found
      == Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
      == Using TOS bits 0
      == Binding IAX2 to default address 0.0.0.0:4569
      == IAX Ready and Listening
      == Loaded firmware 'iaxy.bin'
     [chan_agent.so] => (Agent Proxy Channel)
      == Registered channel type 'Agent' (Call Agent Proxy Channel)
      == Registered application 'AgentLogin'
      == Registered application 'AgentCallbackLogin'
      == Registered application 'AgentMonitorOutgoing'
      == Manager registered action Agents
      == Manager registered action AgentLogoff
      == Manager registered action AgentCallbackLogin
     [chan_capi.so] => (Common ISDN API for Asterisk)
    Feb  7 01:04:08 ERROR[4995]: chan_capi.c:2622 load_module: Unable to load config capi.conf, CAPI disabled
     [chan_phone.so] => (Linux Telephony API Support)
    Feb  7 01:04:08 ERROR[4995]: chan_phone.c:1305 load_module: Unable to load config phone.conf
    Feb  7 01:04:08 WARNING[4995]: loader.c:414 __load_resource: chan_phone.so: load_module failed, returning -1
    Feb  7 01:04:08 WARNING[4995]: loader.c:554 load_modules: Loading module chan_phone.so failed!
    
    Ich habe absolut keine Ahnung, woran das liegt....habe nur eine HFC-Karte im System, eine AVM-Karte soll noch nicht zum Einsatz kommen.

    /edit: So, eine Nacht drüber geschlafen und mal folgendes eingetragen in die modules.conf:

    Code:
    noload => chan_oss.so
    ;
    ; Insert your own "noload"-rules here
    ;
    noload => chan_capi.so
    noload => chan_phone.so
    noload => chan_zap.so
    noload => app_capiCD.so
    noload => app_capiECT.so
    noload => cdr_custom.so
    Jetzt startet er, aber wofür waren die ganzen Module? Ich meine, ich habe jetzt planlos alles herausgeschmissen, was geht, aber war das auch Sinn der Sache?

    Er meckert auch über eine fehlende extensions.ael, was hat das zu bedeuten?
     
  7. Nebelkater

    Nebelkater Neuer User

    Registriert seit:
    22 Mai 2006
    Beiträge:
    64
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Ort:
    Köln
    Auch wenn der Beitrag schon ein bisschen älter ist, wer aber auf der Fehlersuche ist, weil er das gleiche Problem hat, wird ihn sicherlich finden - daher eine Erklärung zu dem oben beschriebenen Problem

    "asterisk: relocation error: /usr/lib/asterisk/modules/res_odbc.so: undefined symbol: ast_load".

    Das tritt imho dann auf, wenn Asterisk ohne ODBC-Unterstützung kompiliert wurde (also ohne installiertes unixODBC), auf dem Rechner (oder auf dem Rechner wo man die Dateien dann hinkopiert hat) aber bereits eine res_odbc.so aus einer älteren Installation vorhanden war, die dann versucht wird zu laden.