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
Magnus Benng?rd schrieb:> I am trying to figure out how DEVICE_STATE is working, no luck so far. > > sip.conf > [0317998975]Set call-limit=10 (or any other value > 0)> 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?sip.conf: [general] allowsubscribe = yes notifyringing = yes notifyhold = yes limitonpeers = yes Philipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de --
Philipp Kempgen wrote:> Magnus Benng?rd schrieb: > Set > call-limit=10 > (or any other value > 0)Actually, I believe call-limit is deprecated, and you can instead use callcounter=yes Leif Madsen.
Thx! Did try "callcounter=yes" and it worked the way u told me! It might have solved another problem 2, need to do some more tests... On Sun, 13 Dec 2009 15:14:22 -0500, Leif Madsen wrote: Philipp Kempgen wrote:> Magnus Benng?rd schrieb: > Set > call-limit=10 > (or any other value > 0)Actually, I believe call-limit is deprecated, and you can instead use callcounter=yes Leif Madsen. _______________________________________________ -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091214/29ecdad2/attachment.htm