Re: [asterisk-users] Hitting # to Transfer out of a Queue
I have a similar problem with the queues. After getting dialtone for transfer, i dial extension for transfering , the agent hangsup, the user is in the queue at this time but didnt get transfered. The cli show this warning: WARNING[2867]: chan_h323.c:691 oh323_indicate: Don't know how to indicate condition 16 on ip$192.168.0.22:24582/1 and also WARNING[2867]: chan_h323.c:691 oh323_indicate: Don't know how to indicate condition 17 on ip$192.168.0.22:24582/1 The first warning is displayed as soon as i press the # key, and the second when i finish dialing extension. I have no idea what condition 16 and 17 mean. Any help? On 7/18/06, Douglas Garstang [EMAIL PROTECTED] wrote: And I thought that t and T allowed the caller and callee to transfer a call? -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] Sent: Tuesday, July 18, 2006 3:10 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue I thought # to transfer didnt work if you have a t,t orr in your dial string since asterisk remains in the media path? but its just a guess. -- Original message -- From: Douglas Garstang [EMAIL PROTECTED] -Original Message- From: Douglas Garstang Sent: Tuesday, July 18, 2006 12:30 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue -Original Message-From: Patrick [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 18, 2006 12:20 PMTo: Asterisk Users Mailing List - Non-Commercial DiscussionSubject: RE: [asterisk-users] Hitting # to Transfer out of a Queue On Tue, 2006-07-18 at 10:29 -0600, Douglas Garstang wrote:[snip] exten = oe_ccare,1,NoOp(*** Incoming callfrom ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n,GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n,Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) Is this a literal copy of your dialplan? If so I was not aware you couldput spaces between priorities and actions. Have you triedremoving them:exten = foo,1,NoOP(spaces are evil, mostly) Patrick, yes, this is a literal portion. I have no reason to believe that spsaces between the priority, and the command cause problems, so I haven't tried that yet. Just trying to make the horrible assembler-like Asterisk dialplan language more readable. I just tried this with a very simple dialplan example that didn't involve queues. exten = 4001,1,Set(__TRANSFER_CONTEXT=footest) exten = 4001,2,Dial(SIP/2944093,20,tr) [footest] exten = 1234,1,Answer exten = 1234,2,Wait,1 exten = 1234,3,Playback(blue-eyed-polar-bear) I dial 4001, and answer the call at 2944093. I then hit #1, and asterisk plays 'pbx-transfer' followed by dial tone. I put in 1234, and extension 1234 in context footest is called. Works fine. I'm starting to wonder if this is a bug of some sort, and TRANSFER_CONTEXT cannot be used with queues. Has anyone actually tried it? exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) ... more stuff here and we also have the context where agent callbacks are. I even tried putting the TRANSFER_CONTEXT where the agent is called. [one_callback] ; ; Agent callbacks. Used by the AgentCallBackLogin app to dial agents. ; exten = 80014054,1,NoOp(Dialling Customer Care Spare) exten = 80014054,n, Set(__TRANSFER_CONTEXT=one_start) exten = 80014054,n,Dial(SIP/80014054) The one_start context should match any number dialled, as it has _X. as a pattern match. However, as I said, as soon as I enter a digit, asterisk plays pbx-invalid. Further to this, I've added some debugging statements... exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(BEFORE Q ${TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30
Re: [asterisk-users] Hitting # to Transfer out of a Queue
*snipped Patrick, yes, this is a literal portion. I have no reason to believe that spsaces between the priority, and the command cause problems, so I haven't tried that yet. Just trying to make the horrible assembler-like Asterisk dialplan language more readable. *snipped this doesn't apply, but should be noted there are 'space' issues with ael (not tested against ael2 from current svn trunk) UserEvent(SomeString${Var1}|OtherString: ${Var2}); this does not work UserEvent(SomeString${Var1}| OtherString: ${Var2}); this does work (note the space before OtherString) ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
-Original Message- From: Nic Bellamy [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 11:31 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Hitting # to Transfer out of a Queue Douglas Garstang wrote: Why? I don't want the variable to be global, or inherit to other channels. I only want it to be persistent for the current call in progress. It'll only inherit to channels *created from this one*, eg. Agent channels, Local channels and the like. It doesn't make it a global variable - see doc/README.variables for further information. Nic, Still no luck with this. I have: exten = oe_ccare,1,NoOp(Queue oe_ccare called) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:30|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) and I'm still getting this console message when someone hits a digit... Jul 18 08:27:37 VERBOSE[26274] logger.c: -- Unable to find extension '4' in context '' Don't know why the context is '', null. Douglas. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Hitting # to Transfer out of a Queue
Douglas Garstang wrote: Jul 18 08:27:37 VERBOSE[26274] logger.c: -- Unable to find extension '4' in context '' Don't know why the context is '', null. Silly question, Has a context been defined in the queues.conf? ; A context may be specified, in which if the user types a SINGLE ; digit extension while they are in the queue, they will be taken out ; of the queue and sent to that extension in this context. ; ;context = qoutcon Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
-Original Message- From: Doug Lytle [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 8:43 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Hitting # to Transfer out of a Queue Douglas Garstang wrote: Jul 18 08:27:37 VERBOSE[26274] logger.c: -- Unable to find extension '4' in context '' Don't know why the context is '', null. Silly question, Has a context been defined in the queues.conf? ; A context may be specified, in which if the user types a SINGLE ; digit extension while they are in the queue, they will be taken out ; of the queue and sent to that extension in this context. ; ;context = qoutcon Doug, This is not the same thing. The 'context' parameter in queues.conf is used to allow a caller, while waiting in a queue, to dial an extension and be taken somewhere else. That's not what I am trying to do. I am trying to get Asterisk assisted transfers to work with Queues. That is, someone dials into a queue, the AgentCallBackLogin() function calls the agent, and the agent wants to transfer the caller somewhere else. Quite different. :) We'd use SIP transfers initiated from the phones, but this seems to cause Asterisk to completely lock up. See these bugs: http://bugs.digium.com/view.php?id=7458 http://bugs.digium.com/view.php?id=6626 ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
-Original Message- From: Massimo Nuvoli [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 8:30 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Hitting # to Transfer out of a Queue Douglas Garstang ha scritto: I have dialled into a Queue, and an agent has answered the call with AgentcallbackLogin(). The agent hits #1, to transfer the call. Asterisk responds with 'Transfer', followed by dial tone. As soon as I enter a digit, Asterisk responds with 'I am sorry. That is not a valid extension' This is working for regular user-user dialling, not going through Queues. The queue app has Tt passed to it. Anyone got any ideas? In the queue configuration there is a context used when dialing (also in this case). Also, check the console, something like unable to find XY extension in KZ context must come out with the error. Asterisk is logging: Jul 18 10:02:38 VERBOSE[28172] logger.c: -- Unable to find extension '1' in context '' I don't know why the context is empty, because I am setting it... exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) but... it's still empty! ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
On Tue, 2006-07-18 at 10:29 -0600, Douglas Garstang wrote: [snip] exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) Is this a literal copy of your dialplan? If so I was not aware you could put spaces between priorities and actions. Have you tried removing them: exten = foo,1,NoOP(spaces are evil, mostly) Regards, Patrick ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
-Original Message- From: Patrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 12:20 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue On Tue, 2006-07-18 at 10:29 -0600, Douglas Garstang wrote: [snip] exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) Is this a literal copy of your dialplan? If so I was not aware you could put spaces between priorities and actions. Have you tried removing them: exten = foo,1,NoOP(spaces are evil, mostly) Patrick, yes, this is a literal portion. I have no reason to believe that spsaces between the priority, and the command cause problems, so I haven't tried that yet. Just trying to make the horrible assembler-like Asterisk dialplan language more readable. I just tried this with a very simple dialplan example that didn't involve queues. exten = 4001,1,Set(__TRANSFER_CONTEXT=footest) exten = 4001,2,Dial(SIP/2944093,20,tr) [footest] exten = 1234,1,Answer exten = 1234,2,Wait,1 exten = 1234,3,Playback(blue-eyed-polar-bear) I dial 4001, and answer the call at 2944093. I then hit #1, and asterisk plays 'pbx-transfer' followed by dial tone. I put in 1234, and extension 1234 in context footest is called. Works fine. I'm starting to wonder if this is a bug of some sort, and TRANSFER_CONTEXT cannot be used with queues. Has anyone actually tried it? exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) ... more stuff here and we also have the context where agent callbacks are. I even tried putting the TRANSFER_CONTEXT where the agent is called. [one_callback] ; ; Agent callbacks. Used by the AgentCallBackLogin app to dial agents. ; exten = 80014054,1,NoOp(Dialling Customer Care Spare) exten = 80014054,n,Set(__TRANSFER_CONTEXT=one_start) exten = 80014054,n,Dial(SIP/80014054) The one_start context should match any number dialled, as it has _X. as a pattern match. However, as I said, as soon as I enter a digit, asterisk plays pbx-invalid. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
-Original Message- From: Douglas Garstang Sent: Tuesday, July 18, 2006 12:30 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue -Original Message- From: Patrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 12:20 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue On Tue, 2006-07-18 at 10:29 -0600, Douglas Garstang wrote: [snip] exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) Is this a literal copy of your dialplan? If so I was not aware you could put spaces between priorities and actions. Have you tried removing them: exten = foo,1,NoOP(spaces are evil, mostly) Patrick, yes, this is a literal portion. I have no reason to believe that spsaces between the priority, and the command cause problems, so I haven't tried that yet. Just trying to make the horrible assembler-like Asterisk dialplan language more readable. I just tried this with a very simple dialplan example that didn't involve queues. exten = 4001,1,Set(__TRANSFER_CONTEXT=footest) exten = 4001,2,Dial(SIP/2944093,20,tr) [footest] exten = 1234,1,Answer exten = 1234,2,Wait,1 exten = 1234,3,Playback(blue-eyed-polar-bear) I dial 4001, and answer the call at 2944093. I then hit #1, and asterisk plays 'pbx-transfer' followed by dial tone. I put in 1234, and extension 1234 in context footest is called. Works fine. I'm starting to wonder if this is a bug of some sort, and TRANSFER_CONTEXT cannot be used with queues. Has anyone actually tried it? exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) ... more stuff here and we also have the context where agent callbacks are. I even tried putting the TRANSFER_CONTEXT where the agent is called. [one_callback] ; ; Agent callbacks. Used by the AgentCallBackLogin app to dial agents. ; exten = 80014054,1,NoOp(Dialling Customer Care Spare) exten = 80014054,n,Set(__TRANSFER_CONTEXT=one_start) exten = 80014054,n,Dial(SIP/80014054) The one_start context should match any number dialled, as it has _X. as a pattern match. However, as I said, as soon as I enter a digit, asterisk plays pbx-invalid. Further to this, I've added some debugging statements... exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(BEFORE Q ${TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) exten = oe_ccare-open,n, NoOp(AFTER Q ${TRANSFER_CONTEXT}) The variable TRANSFER_CONTEXT is not modified by the Queue command. It remains unchanged. I also put debugging where we dial the agent... exten = 80014054,1,NoOp(BEFORE DIAL AGENT ${TRANSFER_CONTEXT}) exten = 80014054,n,Dial(SIP/80014054) The variable is still unchanged before dialling the agent. HOWEVER, the asterisk console still logs this when I try and do a transfer. It looks like the DIAL command is IGNORING the TRANSFER_CONTEXT variable when called from a queue. Jul 18 11:51:48 VERBOSE[30143] logger.c: -- Unable to find extension '1' in context '' ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
I thought # to transfer didnt work if you have a t,t orr in your dial string since asterisk remains in the media path? but its just a guess. -- Original message -- From: Douglas Garstang [EMAIL PROTECTED] -Original Message- From: Douglas Garstang Sent: Tuesday, July 18, 2006 12:30 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue -Original Message- From: Patrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 12:20 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue On Tue, 2006-07-18 at 10:29 -0600, Douglas Garstang wrote: [snip] exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) Is this a literal copy of your dialplan? If so I was not aware you could put spaces between priorities and actions. Have you tried removing them: exten = foo,1,NoOP(spaces are evil, mostly) Patrick, yes, this is a literal portion. I have no reason to believe that spsaces between the priority, and the command cause problems, so I haven't tried that yet. Just trying to make the horrible assembler-like Asterisk dialplan language more readable. I just tried this with a very simple dialplan example that didn't involve queues. exten = 4001,1,Set(__TRANSFER_CONTEXT=footest) exten = 4001,2,Dial(SIP/2944093,20,tr) [footest] exten = 1234,1,Answer exten = 1234,2,Wait,1 exten = 1234,3,Playback(blue-eyed-polar-bear) I dial 4001, and answer the call at 2944093. I then hit #1, and asterisk plays 'pbx-transfer' followed by dial tone. I put in 1234, and extension 1234 in context footest is called. Works fine. I'm starting to wonder if this is a bug of some sort, and TRANSFER_CONTEXT cannot be used with queues. Has anyone actually tried it? exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) ... more stuff here and we also have the context where agent callbacks are. I even tried putting the TRANSFER_CONTEXT where the agent is called. [one_callback] ; ; Agent callbacks. Used by the AgentCallBackLogin app to dial agents. ; exten = 80014054,1,NoOp(Dialling Customer Care Spare) exten = 80014054,n,Set(__TRANSFER_CONTEXT=one_start) exten = 80014054,n,Dial(SIP/80014054) The one_start context should match any number dialled, as it has _X. as a pattern match. However, as I said, as soon as I enter a digit, asterisk plays pbx-invalid. Further to this, I've added some debugging statements... exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(BEFORE Q ${TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) exten = oe_ccare-open,n, NoOp(AFTER Q ${TRANSFER_CONTEXT}) The variable TRANSFER_CONTEXT is not modified by the Queue command. It remains unchanged. I also put debugging where we dial the agent... exten = 80014054,1,NoOp(BEFORE DIAL AGENT ${TRANSFER_CONTEXT}) exten = 80014054,n,Dial(SIP/80014054) The variable is still unchanged before dialling the agent. HOWEVER, the asterisk console still logs this when I try and do a transfer. It looks like the DIAL command is IGNORING the TRANSFER_CONTEXT variable when called from a queue. Jul 18 11:51:48 VERBOSE[30143
RE: [asterisk-users] Hitting # to Transfer out of a Queue
And I thought that t and T allowed the caller and callee to transfer a call? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:10 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue I thought # to transfer didnt work if you have a t,t orr in your dial string since asterisk remains in the media path? but its just a guess. -- Original message -- From: Douglas Garstang [EMAIL PROTECTED] -Original Message- From: Douglas Garstang Sent: Tuesday, July 18, 2006 12:30 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue -Original Message- From: Patrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 12:20 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue On Tue, 2006-07-18 at 10:29 -0600, Douglas Garstang wrote: [snip] exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) Is this a literal copy of your dialplan? If so I was not aware you could put spaces between priorities and actions. Have you tried removing them: exten = foo,1,NoOP(spaces are evil, mostly) Patrick, yes, this is a literal portion. I have no reason to believe that spsaces between the priority, and the command cause problems, so I haven't tried that yet. Just trying to make the horrible assembler-like Asterisk dialplan language more readable. I just tried this with a very simple dialplan example that didn't involve queues. exten = 4001,1,Set(__TRANSFER_CONTEXT=footest) exten = 4001,2,Dial(SIP/2944093,20,tr) [footest] exten = 1234,1,Answer exten = 1234,2,Wait,1 exten = 1234,3,Playback(blue-eyed-polar-bear) I dial 4001, and answer the call at 2944093. I then hit #1, and asterisk plays 'pbx-transfer' followed by dial tone. I put in 1234, and extension 1234 in context footest is called. Works fine. I'm starting to wonder if this is a bug of some sort, and TRANSFER_CONTEXT cannot be used with queues. Has anyone actually tried it? exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) ... more stuff here and we also have the context where agent callbacks are. I even tried putting the TRANSFER_CONTEXT where the agent is called. [one_callback] ; ; Agent callbacks. Used by the AgentCallBackLogin app to dial agents. ; exten = 80014054,1,NoOp(Dialling Customer Care Spare) exten = 80014054,n, Set(__TRANSFER_CONTEXT=one_start) exten = 80014054,n,Dial(SIP/80014054) The one_start context should match any number dialled, as it has _X. as a pattern match. However, as I said, as soon as I enter a digit, asterisk plays pbx-invalid. Further to this, I've added some debugging statements... exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(BEFORE Q ${TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) exten = oe_ccare-open,n, NoOp(AFTER Q ${TRANSFER_CONTEXT}) The variable TRANSFER_CONTEXT is not modified by the Queue command. It remains unchanged. I also
RE: [asterisk-users] Hitting # to Transfer out of a Queue
Yes sorry.. i was thinking of something else. I had a problem where I put the T in the dial string and the media wouldnt go end-end, but thats because Asterisk has to remain in the RTP stream to hear the #. Much different that what your reporting... sorry to mis-lead ya... -- Original message -- From: Douglas Garstang [EMAIL PROTECTED] And I thought that t and T allowed the caller and callee to transfer a call? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:10 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue I thought # to transfer didnt work if you have a t,t orr in your dial string since asterisk remains in the media path? but its just a guess. -- Original message -- From: Douglas Garstang [EMAIL PROTECTED] -Original Message- From: Douglas Garstang Sent: Tuesday, July 18, 2006 12:30 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue -Original Message- From: Patrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 12:20 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Hitting # to Transfer out of a Queue On Tue, 2006-07-18 at 10:29 -0600, Douglas Garstang wrote: [snip] exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) Is this a literal copy of your dialplan? If so I was not aware you could put spaces between priorities and actions. Have you tried removing them: exten = foo,1,NoOP(spaces are evil, mostly) Patrick, yes, this is a literal portion. I have no reason to believe that spsaces between the priority, and the command cause problems, so I haven't tried that yet. Just trying to make the horrible assembler-like Asterisk dialplan language more readable. I just tried this with a very simple dialplan example that didn't involve queues. exten = 4001,1,Set(__TRANSFER_CONTEXT=footest) exten = 4001,2,Dial(SIP/2944093,20,tr) [footest] exten = 1234,1,Answer exten = 1234,2,Wait,1 exten = 1234,3,Playback(blue-eyed-polar-bear) I dial 4001, and answer the call at 2944093. I then hit #1, and asterisk plays 'pbx-transfer' followed by dial tone. I put in 1234, and extension 1234 in context footest is called. Works fine. I'm starting to wonder if this is a bug of some sort, and TRANSFER_CONTEXT cannot be used with queues. Has anyone actually tried it? exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(__TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n, NoOp(${__TRANSFER_CONTEXT}) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) ... more stuff here and we also have the context where agent callbacks are. I even tried putting the TRANSFER_CONTEXT where the agent is called. [one_callback] ; ; Agent callbacks. Used by the AgentCallBackLogin app to dial agents. ; exten = 80014054,1,NoOp(Dialling Customer Care Spare) exten = 80014054,n, Set(__TRANSFER_CONTEXT=one_start) exten = 80014054,n,Dial(SIP/80014054) The one_start context should match any number dialled, as it has _X. as a pattern match. However, as I said, as soon as I enter a digit, asterisk plays pbx-invalid. Further to this, I've added some debugging statements... exten = oe_ccare,1,NoOp(*** Incoming call from ${CALLERID} to queue oe_ccare) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:00|mon-fri|*|*?one_queue_acd,oe_ccare-open
Re: [asterisk-users] Hitting # to Transfer out of a Queue
Douglas Garstang ha scritto: I have dialled into a Queue, and an agent has answered the call with AgentcallbackLogin(). The agent hits #1, to transfer the call. Asterisk responds with 'Transfer', followed by dial tone. As soon as I enter a digit, Asterisk responds with 'I am sorry. That is not a valid extension' This is working for regular user-user dialling, not going through Queues. The queue app has Tt passed to it. Anyone got any ideas? In the queue configuration there is a context used when dialing (also in this case). Also, check the console, something like unable to find XY extension in KZ context must come out with the error. Byez. signature.asc Description: OpenPGP digital signature ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
-Original Message- From: Massimo Nuvoli [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 8:30 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Hitting # to Transfer out of a Queue Douglas Garstang ha scritto: I have dialled into a Queue, and an agent has answered the call with AgentcallbackLogin(). The agent hits #1, to transfer the call. Asterisk responds with 'Transfer', followed by dial tone. As soon as I enter a digit, Asterisk responds with 'I am sorry. That is not a valid extension' This is working for regular user-user dialling, not going through Queues. The queue app has Tt passed to it. Anyone got any ideas? In the queue configuration there is a context used when dialing (also in this case). Also, check the console, something like unable to find XY extension in KZ context must come out with the error. Byez. Thanks, but that's not what I was was asking. The context setting in queues.conf is used to drop a caller out of the queue into a new context. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Hitting # to Transfer out of a Queue
Andres wrote: Douglas Garstang wrote: I have dialled into a Queue, and an agent has answered the call with AgentcallbackLogin(). The agent hits #1, to transfer the call. Asterisk responds with 'Transfer', followed by dial tone. As soon as I enter a digit, Asterisk responds with 'I am sorry. That is not a valid extension' This is working for regular user-user dialling, not going through Queues. The queue app has Tt passed to it. You have to figure out what context the transfer is trying to use. In your case, the context does not have the extension your are dialing. First look at what context the agent is in, maybe thats the one being used. ... and when you find the correct context (a 'set verbose 99' before attempting the transfer should help you track it down - if it doesn't show you anything in the console, check the logs), you'll need to tell it what the correct context is. You do this by setting the TRANSFER_CONTEXT channel variable before going into the queue, eg. [somequeue] exten = s,1,Set(__TRANSFER_CONTEXT=from-internal) exten = s,n,Queue(foo,rt) (Whether the '__' prefix to make the variable inheritable is required will depend on your dialplan, but it Works For Me(tm).) Cheers, Nic. -- Nic Bellamy, Head Of Engineering, Vadacom Ltd - http://www.vadacom.co.nz/ ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
-Original Message- From: Nic Bellamy [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 4:48 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Hitting # to Transfer out of a Queue Andres wrote: Douglas Garstang wrote: I have dialled into a Queue, and an agent has answered the call with AgentcallbackLogin(). The agent hits #1, to transfer the call. Asterisk responds with 'Transfer', followed by dial tone. As soon as I enter a digit, Asterisk responds with 'I am sorry. That is not a valid extension' This is working for regular user-user dialling, not going through Queues. The queue app has Tt passed to it. You have to figure out what context the transfer is trying to use. In your case, the context does not have the extension your are dialing. First look at what context the agent is in, maybe thats the one being used. ... and when you find the correct context (a 'set verbose 99' before attempting the transfer should help you track it down - if it doesn't show you anything in the console, check the logs), you'll need to tell it what the correct context is. You do this by setting the TRANSFER_CONTEXT channel variable before going into the queue, eg. [somequeue] exten = s,1,Set(__TRANSFER_CONTEXT=from-internal) exten = s,n,Queue(foo,rt) (Whether the '__' prefix to make the variable inheritable is required will depend on your dialplan, but it Works For Me(tm).) Nic, assuming that was my problem (dunno how it worked before), I tried this... exten = oe_ccare,1,NoOp(Queue oe_ccare called) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:30|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) and so on... Anyway, when I press #1, and get 'pbx-transfer' followed by dial tone, as soon as I enter a digit, Asterisk still logs this to the console: Jul 17 17:07:53 VERBOSE[16439] logger.c: -- Unable to find extension '2' in context '' It seems that the TRANSFER_CONTEXT variable is not being set eventhough I am setting it... Douglas. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Hitting # to Transfer out of a Queue
exten = oe_ccare,1,NoOp(Queue oe_ccare called) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:30|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) and so on... Anyway, when I press #1, and get 'pbx-transfer' followed by dial tone, as soon as I enter a digit, Asterisk still logs this to the console: Jul 17 17:07:53 VERBOSE[16439] logger.c: -- Unable to find extension '2' in context '' It seems that the TRANSFER_CONTEXT variable is not being set eventhough I am setting it... You need the 2 underscores infront of it__TRANSFER_CONTEXT -- Andres Technical Support http://www.telesip.net ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Hitting # to Transfer out of a Queue
Why? I don't want the variable to be global, or inherit to other channels. I only want it to be persistent for the current call in progress. -Original Message- From: Andres [mailto:[EMAIL PROTECTED] Sent: Mon 7/17/2006 5:27 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject: Re: [asterisk-users] Hitting # to Transfer out of a Queue exten = oe_ccare,1,NoOp(Queue oe_ccare called) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:30|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) and so on... Anyway, when I press #1, and get 'pbx-transfer' followed by dial tone, as soon as I enter a digit, Asterisk still logs this to the console: Jul 17 17:07:53 VERBOSE[16439] logger.c: -- Unable to find extension '2' in context '' It seems that the TRANSFER_CONTEXT variable is not being set eventhough I am setting it... You need the 2 underscores infront of it__TRANSFER_CONTEXT -- Andres Technical Support http://www.telesip.net ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Hitting # to Transfer out of a Queue
Douglas Garstang wrote: Why? I don't want the variable to be global, or inherit to other channels. I only want it to be persistent for the current call in progress. It'll only inherit to channels *created from this one*, eg. Agent channels, Local channels and the like. It doesn't make it a global variable - see doc/README.variables for further information. Cheers, Nic. -Original Message- From: Andres [mailto:[EMAIL PROTECTED] Sent: Mon 7/17/2006 5:27 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject: Re: [asterisk-users] Hitting # to Transfer out of a Queue exten = oe_ccare,1,NoOp(Queue oe_ccare called) exten = oe_ccare,n,Set(TIMEOUT(response)=5) exten = oe_ccare,n, GotoIfTime(8:00-17:30|mon-fri|*|*?one_queue_acd,oe_ccare-open,1) exten = oe_ccare,n,Goto(oe_ccare-shut,1) exten = oe_ccare-open,1, Answer exten = oe_ccare-open,n, Set(TRANSFER_CONTEXT=one_start) exten = oe_ccare-open,n(queue1), Queue(oe_custcare30) and so on... Anyway, when I press #1, and get 'pbx-transfer' followed by dial tone, as soon as I enter a digit, Asterisk still logs this to the console: Jul 17 17:07:53 VERBOSE[16439] logger.c: -- Unable to find extension '2' in context '' It seems that the TRANSFER_CONTEXT variable is not being set eventhough I am setting it... You need the 2 underscores infront of it__TRANSFER_CONTEXT -- Nic Bellamy, Head Of Engineering, Vadacom Ltd - http://www.vadacom.co.nz/ ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Hitting # to Transfer out of a Queue
Douglas Garstang wrote: I have dialled into a Queue, and an agent has answered the call with AgentcallbackLogin(). The agent hits #1, to transfer the call. Asterisk responds with 'Transfer', followed by dial tone. As soon as I enter a digit, Asterisk responds with 'I am sorry. That is not a valid extension' This is working for regular user-user dialling, not going through Queues. The queue app has Tt passed to it. You have to figure out what context the transfer is trying to use. In your case, the context does not have the extension your are dialing. First look at what context the agent is in, maybe thats the one being used. Anyone got any ideas? Doug. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Andres Technical Support http://www.telesip.net ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users