Hi all!

I am trying to figure out how DEVICE_STATE is working, no luck so far.

sip.conf
[0317998975]
type=friend
regexten=0317998975
secret=????
username=0317998975
callerid="Magnus Benngard" 
[email protected]
host=dynamic
canreinvite=yes
dtmfmode=rfc2833
nat=yes
disallow=all
allow=alaw

extensions.conf
exten => 0317998975,hint,SIP/0317998975
exten => 0317998975,1,NoOp([email protected] has state
${DEVICE_STATE(SIP/0317998975)})
exten => 0317998975,2,Dial(SIP/0317998975)

It doesn't matter if I have a call on 0317998975 or not. i always get:
-- Executing [[email protected]:1]
NoOp("SIP/0317998985-00000011", "[email protected] has state
NOT_INUSE") in new stack

So I figure out that I have missed something but cant figure out what. :(
Any ideeas?

Asterisk SVN-trunk-r234256 built by root @ sip on a i686 running Linux on
2009-12-11 11:07:02 UTC

Med vänliga hälsningar
MAGNUS BENNGRD

Direktnr 031-799 89 75

Fältspatsgatan 2
421 30
Västra Frölunda

Tel. 031-799 89 00
Fax 031-799 89 01

www.inputinterior.se [1] 

Links:
------
[1] http://www.inputinterior.se

<<inline: 7>>

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Reply via email to