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

The message does not contain any threats
AVG for MS Exchange Server (2012.0.1913 - 2114/4827)
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to