marek cervenka
2019-Apr-03 15:56 UTC
[asterisk-users] detect if call to device is from queue
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 tnx Marek
Joshua C. Colp
2019-Apr-03 16:00 UTC
[asterisk-users] detect if call to device is from queue
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 phonesIf 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