[asterisk-users] only ring phones that are not on a call

Benny Amorsen benny+usenet at amorsen.dk
Wed Feb 18 08:48:46 CST 2009


"Danny Nicholas" <danny at debsinc.com> writes:

> You could set up a hint for the extension and check the hint for "inuse"
> before executing the Dial in your dialplan
>
> Exten => 801,hint,SIP/100
>
> Exten => XXX,1,System("/usr/sbin/asterisk -rx "core show hints"|/bin/grep
> SIP/100|/bin/grep InUse

I think we have a winner for "most creative use of System()".

If the calls go through a queue, a much easier solution is to simply
set ringinuse=so. Job done.

If the calls are done with Dial(), the best way is to use groups. See
http://www.voip-info.org/wiki/index.php?page=Asterisk+func+group


/Benny




More information about the asterisk-users mailing list