[asterisk-users] DEVICE_STATE

Magnus Benngård magnus.b at inputinterior.se
Sat Dec 12 05:25:56 CST 2009


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" 
mailbox=0317998975 at inputinterior.se
host=dynamic
canreinvite=yes
dtmfmode=rfc2833
nat=yes
disallow=all
allow=alaw

extensions.conf
exten => 0317998975,hint,SIP/0317998975
exten => 0317998975,1,NoOp(0317998975 at inputinterior.se 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 [0317998975 at inputinterior.se:1]
NoOp("SIP/0317998985-00000011", "0317998975 at inputinterior.se 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091212/fa898237/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7
Type: image/png
Size: 6742 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20091212/fa898237/attachment.png 


More information about the asterisk-users mailing list