I use a PERL AGI to control my phones, but the “Out of the box” solution
(depending on your release)  would be to use a macro to dial the
queue/extension and use channel status to see if A is inuse before dialing
B.  

Here’s an example from
http://www.voip-info.org/wiki/view/Asterisk+func+device_State

 

exten => 100,1,ExecIf($<a  href=' ${device_state(sip ${exten})} =" INUSE '">
${DEVICE_STATE(SIP/${EXTEN})} = INUSE ?Busy) </a  href=' ${device_state(sip>
exten => 100,2,Dial(SIP/${EXTEN})

 

you could expand on this as an “OR” switch where you would’nt ring 100/101
if either was in use.

 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Magnus
Löfqvist
Sent: Thursday, August 20, 2009 10:06 AM
To: [email protected]
Subject: [asterisk-users] Pause/Unpause agent based on devstate

 

Hi,

 

I dont know if this is possible, but I want to pause a queue member if
another member are busy in the phone. 

We have agents that has 2 phones and both are logged in to the same queue.

 

I don’t want the second phone to call if the first are in use.

 

Any ideas?

 

Magnus

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

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

Reply via email to