<div style="font-family:Arial;font-size:14px"><div style="font-family: Arial; font-size: 14px;">Hi all!<br /><br />I am trying to figure out how DEVICE_STATE is working, no luck so far.<br /><br />sip.conf<br />[0317998975]<br />type=friend<br />regexten=0317998975<br />secret=????<br />username=0317998975<br />callerid="Magnus Benngard" <0317998975><br />mailbox=0317998975@inputinterior.se<br />host=dynamic<br />canreinvite=yes<br />dtmfmode=rfc2833<br />nat=yes<br />disallow=all<br />allow=alaw<br /><br />extensions.conf<br />exten => 0317998975,hint,SIP/0317998975<br />exten => 0317998975,1,NoOp(0317998975@inputinterior.se has state ${DEVICE_STATE(SIP/0317998975)})<br />exten => 0317998975,2,Dial(SIP/0317998975)<br /><br />It doesn't matter if I have a call on 0317998975 or not. i always get:<br />-- Executing [0317998975@inputinterior.se:1] NoOp("SIP/0317998985-00000011", "0317998975@inputinterior.se has state NOT_INUSE") in new stack<br /><br />So I figure out that I have missed something but cant figure out what. :(<br />Any ideeas?<br /><br />Asterisk SVN-trunk-r234256 built by root @ sip on a i686 running Linux on 2009-12-11 11:07:02 UTC<br /><br /><br /><br />
<p>Med vänliga hälsningar<br /><strong>Magnus Benngård</strong><br /><br />Direktnr 031-799 89 75<br /></p>
<img title="mailfot" src="cid:INPUTINTERIORMAILFOT7@inputinterior.se" border="0" alt="mailfot" /><br />
<p>Fältspatsgatan 2<br />421 30 Västra Frölunda<br /><br />Tel. 031-799 89 00<br />Fax 031-799 89 01<br /><br /><a style="font-size: 12px; text-decoration: none;" href="http://www.inputinterior.se">www.inputinterior.se</a></p>
</div></div>