I want to have the status of the devices registered as output in the cli just to be able to do a check for the actual status by calling an extension. I use this lines:
exten => 03456,1,NoOP(The status of ${NR1001} attached to 1001 is ${DEVICE_STATE(SIP/${NR1001})})
exten => 03456,n,NoOP(The status of ${NR1002} attached to 1002 is ${DEVICE_STATE(SIP/${NR1002})})
exten => 03456,n,NoOP(The status of ${NR1003} attached to 1003 is ${DEVICE_STATE(SIP/${NR1003})})
This is the cli output:
– Goto (dialplan,03456,1)
– Executing [03456@dialplan:1] NoOp(“SIP/IMSI000000000000002-0000000d”, “The status of IMSI000000000000001 attached to 1001 is NOT_INUSE”) in new stack
– Executing [03456@dialplan:2] NoOp(“SIP/IMSI000000000000002-0000000d”, “The status of IMSI000000000000002 attached to 1002 is NOT_INUSE”) in new stack
– Executing [03456@dialplan:3] NoOp(“SIP/IMSI000000000000002-0000000d”, “The status of IMSI204080664540008 attached to 1003 is NOT_INUSE”) in new stack
– Auto fallthrough, channel ‘SIP/IMSI000000000000002-0000000d’ status is ‘UNKNOWN’
dialplan line 1 is a Polycom soundpoint phone up and running.
dialplan line 2 is a registered zoiper phone
dialplan lin 3 is a gsm phone registered with use of OpenBTS. From Asterisk perspective it is a SIP endpoint that is up and running.
The “NOT_INUSE” device status as output in the three lines, as far as I can see and from what I understand of the idea of the DEVICE_STAT(), is not correct.
I just installed Asterisk 1.6.2 but before I tried the same with 1.4.28 and with the same result. Am I doing something wrong or do I misunderstand the purpose of the DEVICE_STAT function. What has to be done to make it work? Thanks in advance for any poiters and/or help.
Thanks for the pointer. I added the call-limit=xx line to all the sip entries and it seems to make a difference.
The cli output looks like:
– Goto (dialplan,03456,1)
– Executing [03456@dialplan:1] NoOp(“SIP/IMSI204080664540008-00000028”, “The status of IMSI000000000000001 attached to 1001 is NOT_INUSE”) in new stack
– Executing [03456@dialplan:2] NoOp(“SIP/IMSI204080664540008-00000028”, “The status of IMSI000000000000002 attached to 1002 is INUSE”) in new stack
– Executing [03456@dialplan:3] NoOp(“SIP/IMSI204080664540008-00000028”, “The status of IMSI204080664540008 attached to 1003 is BUSY”) in new stack
– Executing [03456@dialplan:4] NoOp(“SIP/IMSI204080664540008-00000028”, “The status of IMSI204123170034543 attached to 1004 is BUSY”) in new stack
Now the question is what the rapported statusses actualy mean.
dialplan line 1 is the Polycom Soundpoint phone, registered but not used for making a phone call. Does the NOT_INUSE status mean the same as “available for use but not in use now” or NOT_INUSE like you use it for a car standing on a roof.
dialplan line 2 is zoiper used to call extension 03456 so IMSI000000000000002 really is INUSE. But what is the difference between INUSE and BUSY
dialplan line 3 and 4 are two Nokia 3310 registered using OpenBTS and having a phonecall between them. Yes they are BUSY but why BUSY and not INUSE like zoiper when making a call?
This are the statusses available but is there documentation like rfc 2119 what every status represents so it is clear what the difference between this statusses is.
UNKNOWN | NOT_INUSE | INUSE | BUSY | INVALID | UNAVAILABLE | RINGING | RINGINUSE | ONHOLD
Again, thanks for responding so fast but I hope someone can give me info or a pointer to info about the different statusses and their differences.