[asterisk-dev] Jabber Manager Command

Russell Bryant russell at digium.com
Sun Aug 6 09:08:04 MST 2006


On Sun, 2006-08-06 at 17:17 +0200, Matt Riddell (NZ) wrote:
> I'm trying to let the manager send jabber messages

> usr/src/asterisk/manager.c:889: undefined reference to `ast_aji_get_client'

The problem is that this function is not implemented in the Asterisk
core.  It is implemented in a module.  It is saying "You used this
function, but I can't find it.".

> any ideas?

There are some tricks that would make this possible to implement in
manager.c, but there is a better way.  Implement this manager action is
res_jabber.c.  See other modules, such as something like chan_sip.c., to
see how it "registers" and "unregisters" manager actions when the
modules is loaded and unloaded.

Functions of interest when looking up how to do this are:
ast_manager_register2() in load_module()
ast manager_unregister() in unload_module()

-- 
Russell Bryant
Software Developer
Digium, Inc.




More information about the asterisk-dev mailing list