[asterisk-users] Re: AgentcallbackLogin()

Tony Mountifield tony at softins.clara.co.uk
Sat Aug 12 01:22:51 MST 2006


In article <645FEC31A18FE54A8721500CDD55A7B6035D0A22 at mail.oneeighty.com>,
Douglas Garstang <dgarstang at 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 at 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 at 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 at 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 at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list