[Asterisk-Dev] Adding code to the manager interface

Robert Spielmann spielmann at plus.cablesurf.de
Sat Jan 29 14:44:46 MST 2005


Hi all,

I've just added some code to manager.c, my code needs ast_moh_stop and
ast_bridge_call. Currently, I cannot compile Asterisk because there are
undefined references to those 2 functions. Output:

gcc -g  -o asterisk -Wl,-E  io.o sched.o logger.o frame.o loader.o
config.o channel.o translate.o file.o say.o pbx.o cli.o md5.o term.o
ulaw.o alaw.o callerid.o fskmodem.o image.o app.o cdr.o tdd.o acl.o
rtp.o manager.o asterisk.o ast_expr.o dsp.o chanvars.o indications.o
autoservice.o db.o privacy.o astmm.o enum.o srv.o dns.o aescrypt.o
aestab.o aeskey.o utils.o  editline/libedit.a db1-ast/libdb1.a
stdtime/libtime.a -ldl -lpthread -lncurses -lm -lresolv   -lssl
manager.o(.text+0x56e1): In function `action_bridge':
/usr/src/asterisk/manager.c:842: undefined reference to `ast_moh_stop'
manager.o(.text+0x56ef):/usr/src/asterisk/manager.c:842: undefined
reference to `ast_moh_stop'
manager.o(.text+0x5737):/usr/src/asterisk/manager.c:854: undefined
reference to `ast_bridge_call' collect2: ld returned 1 exit status
make: *** [asterisk] Error 1

How can I solve this problem?

Cheers,
Robert

-- 
"Whether Halliburton, ENRON or anyone
greed is a weapon of mass destruction"
Faithless, "Mass Destruction"

Visit my website: http://www.byteforge.org



More information about the asterisk-dev mailing list