[asterisk-users] detect if call to device is from queue
Joshua C. Colp
jcolp at digium.com
Wed Apr 3 11:00:32 CDT 2019
On Wed, Apr 3, 2019, at 12:57 PM, marek cervenka wrote:
> hi,
>
> do you have idea if is possible detect if a call to device(1) is from
> queue? (i.e. if app_queue set some variable)
>
> exten => 800,1,queue(sales) ; queue pick exten 20
>
> exten => 20,1,noop("detect variables")
>
> exten => 20,n,Dial(SIP/20)
>
>
> (1) its through a local interface i.e Local/20 at phones
If you're using a Local channel then you control the context it goes to. You can therefore send it to one which is only used by app_queue, and thus know the call is from a Queue. You could even have a dialing context per queue to know which one if you wanted.
--
Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-users
mailing list