[asterisk-users] Hot desking and presence

Noah Engelberth Noah at directlinkcomputers.com
Thu Feb 23 15:43:10 CST 2012


One modification to my previous dialplan:
[hotdesk_outbound]
includes (via cascade) internal-calls

exten => .X,1,NoOp()
...snip do stuff to determine who's calling, set their extension number to WHO...
same => n,Set(GROUP(activecalls)=${WHO})
same => n,Set(DEVICE_STATE(Custom:${WHO})=INUSE)
...snip make the call...

Needs to be:
[hotdesk_outbound]
includes (via cascade) internal-calls

exten => .X,1,NoOp()
...snip do stuff to determine who's calling, set their extension number to WHO...
same => n,Set(GROUP(activecallers)=${WHO})
same => n,Set(DEVICE_STATE(Custom:${WHO})=INUSE)
...snip make the call...

And similarly, all checks or use of GROUP_COUNT(${WHO}@activecalls) should be changed to GROUP_COUNT(${WHO}@activecallers).  I missed the fact that setting GROUP(activecalls)=${E} later on in my dialplan was overwriting the GROUP(activecalls)=${WHO} for intra-office calls, and thus breaking my ability to see that the person placing the intra-office call was "on another line" if a second call rang their phone or what have you.


Noah Engelberth
MetaLINK Technologies
System Administration

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AVG Certification.txt
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120223/90196f0a/attachment.txt>


More information about the asterisk-users mailing list