Can someone tell me why this is not valid... [start] exten => 1000,1,Answer exten => 1000,2,Wait,1 exten => 1000,3,AgentcallbackLogin(1000||2000@Local) exten => 2000,1,Macro(DialProxy,115551212) exten => 3000,1,Queue(testq||||45) while this is: [start] exten => 1000,1,Answer exten => 1000,2,Wait,1 exten => 1000,3,AgentcallbackLogin(1000||2000@start) exten => 2000,1,Macro(DialProxy,115551212) exten => 3000,1,Queue(testq||||45) I'd swear blind I was able to pass 2000@Local to AgentcallbackLogin once before. I really don't like having to put the name of the context in there. If the context name changes, you have to change the reference to it in AgentcallbackLogin as well. Thanks. Doug.
In article <645FEC31A18FE54A8721500CDD55A7B6035D0A22@mail.oneeighty.com>, Douglas Garstang <dgarstang@oneeighty.com> wrote:> Can someone tell me why this is not valid... > > [start] > exten => 1000,1,Answer > exten => 1000,2,Wait,1 > exten => 1000,3,AgentcallbackLogin(1000||2000@Local) > exten => 2000,1,Macro(DialProxy,115551212) > exten => 3000,1,Queue(testq||||45) > > while this is: > > [start] > exten => 1000,1,Answer > exten => 1000,2,Wait,1 > exten => 1000,3,AgentcallbackLogin(1000||2000@start)Do this instead: exten => 1000,3,AgentcallbackLogin(1000||2000@${CONTEXT})> exten => 2000,1,Macro(DialProxy,115551212) > exten => 3000,1,Queue(testq||||45) > > I'd swear blind I was able to pass 2000@Local to AgentcallbackLogin once before. I really > don't like having to put the name of the context in there. If the context name changes, you > have to change the reference to it in AgentcallbackLogin as well.Hope this helps! Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org
Thanks Tony. -----Original Message----- From: Tony Mountifield [mailto:tony@softins.clara.co.uk] Sent: Sat 8/12/2006 2:22 AM To: asterisk-users@lists.digium.com Cc: Subject: [asterisk-users] Re: AgentcallbackLogin() In article <645FEC31A18FE54A8721500CDD55A7B6035D0A22@mail.oneeighty.com>, Douglas Garstang <dgarstang@oneeighty.com> wrote: > Can someone tell me why this is not valid... > > [start] > exten => 1000,1,Answer > exten => 1000,2,Wait,1 > exten => 1000,3,AgentcallbackLogin(1000||2000@Local) > exten => 2000,1,Macro(DialProxy,115551212) > exten => 3000,1,Queue(testq||||45) > > while this is: > > [start] > exten => 1000,1,Answer > exten => 1000,2,Wait,1 > exten => 1000,3,AgentcallbackLogin(1000||2000@start) Do this instead: exten => 1000,3,AgentcallbackLogin(1000||2000@${CONTEXT}) > exten => 2000,1,Macro(DialProxy,115551212) > exten => 3000,1,Queue(testq||||45) > > I'd swear blind I was able to pass 2000@Local to AgentcallbackLogin once before. I really > don't like having to put the name of the context in there. If the context name changes, you > have to change the reference to it in AgentcallbackLogin as well. Hope this helps! Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org _______________________________________________ --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