[asterisk-users] Function not Registered??

Lee, John (Sydney) John.Lee at compuware.com
Fri May 25 02:18:23 CDT 2012


Hi all,



I am running the same Asterisk 1.4.21.2 with the same configuration on all the servers in the region.

I got this function called func_devstate which I use to control the lights of the Polycom phones.

This module works well for all the Asterisk servers except this one.



To get it to work, I basically compile this module together with the others and there is no need to explicitly load it in modules.conf.

The problem is when my script uses function DEVSTATE, the Asterisk console shows that it is not registered.



However, when I did a module show, it was there.



I did restart Asterisk or include it in module.conf but it did not resolve the problem.



Do you have any clues why this is happening?

Thanks in advance.



-- Executing [*1223*1**1900 at incoming:78] Set("SIP/1900-08ee1da8", "DEVSTATE(Custom:cfalw1900)=INUSE") in new stack
[May 25 11:59:46] ERROR[8913]: pbx.c:1564 ast_func_write: Function DEVSTATE not registered



/usr/lib/asterisk/modules/func_devstate.so
/usr/src/asterisk-1.4.21.2/funcs/.func_devstate.makeopts
/usr/src/asterisk-1.4.21.2/funcs/.func_devstate.moduleinfo
/usr/src/asterisk-1.4.21.2/funcs/.func_devstate.o.d
/usr/src/asterisk-1.4.21.2/funcs/func_devstate.c
/usr/src/asterisk-1.4.21.2/funcs/func_devstate.o
/usr/src/asterisk-1.4.21.2/funcs/func_devstate.so



*CLI> module show like func_devstate.so

Module Description Use Count
func_devstate.so Gets or sets a device state in the dialp 0
1 modules loaded

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120525/4051070c/attachment.htm>


More information about the asterisk-users mailing list