Re: [asterisk-users] Function not Registered??

2012-05-29 Thread Lee, John (Sydney)
Thanks very much Mark for pointing that out to me.
Before, I have always been coding using DEVSTATE until my colleague downloaded 
a new version of func_devstate.c which began to use DEVICE_STATE.
So, my old AEL2 script will need to be changed.

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mark Wiater
Sent: Saturday, 26 May 2012 5:22 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Function not Registered??

On 5/25/2012 3:18 AM,  Lee, John (Sydney) said:

 -- Executing [*1223*1**1900@incoming:78] Set(SIP/1900-08ee1da8, 
DEVSTATE(Custom:cfalw1900)=INUSE) in new stack
I use

'Set(DEVICE_STATE(Custom:var)=BUSY)'

in my 1.4 dialplans to set device state.

mark
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Function not Registered??

2012-05-25 Thread Lee, John (Sydney)
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@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

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Function not Registered??

2012-05-25 Thread Mark Wiater
On 5/25/2012 3:18 AM,  Lee, John (Sydney) said:

  -- Executing [*1223*1**1900@incoming:78] Set(SIP/1900-08ee1da8, 
 DEVSTATE(Custom:cfalw1900)=INUSE) in new stack

I use
   
'Set(DEVICE_STATE(Custom:var)=BUSY)'

in my 1.4 dialplans to set device state.

mark
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users