Summary:ASTERISK-03444: [request] Add option to agents to NOT to do native transfer
Reporter:Nick Barnes (bcnit)Labels:
Date Opened:2005-02-07 07:22:46.000-0600Date Closed:2008-01-15 15:24:41.000-0600
Versions:Frequency of
Description:When performing Dial(Agent/2000), Asterisk dials (Local/234@agent) (assuming that agent 2000 is logged in with extension 234)!

However, a native transfer is made (the '/n' option is not used on the Dial(Local/234@agent)) and all variables are lost.

This means that in the context [agent], we know nothing other than the extension number to call. We don't know which agent number was dialed or have access to any other variables we may have set up previously. Nor can we return any variables to the original Dial(Agent/2000) extension.

This means that we can't implement voicemail for the agent if they're busy/unavailable and nor can we do other things with the call (like pass it to the right queue) if we can't talk to the agent.

It would be extremely useful to (optionally) have the Dial(Local..... command not do it natively. e.g. Dial(Local/234@agent/n).
Comments:By: Kevin P. Fleming (kpfleming) 2005-02-07 15:58:37.000-0600

I don't think this change will get added to the 1.0 branch, since that is stable and new features are not being added to it.

In CVS HEAD, you could possibly set the variables you need using '_' or '__' prefixes to have them automatically copied down into the channel that chan_agent creates, if chan_agent ensures that they get copied. If not, it should do so :-)

edited on: 02-07-05 15:58

By: Mark Spencer (markster) 2005-02-07 16:24:04.000-0600

I've just added support in chan_agent in CVS head to inherit variables across the link.  Can you confirm this works for your solution?

By: Mark Spencer (markster) 2005-02-10 01:18:30.000-0600

One last request for you to test if my change in CVS head makes it work for you.

By: Mark Spencer (markster) 2005-02-13 01:54:02.000-0600

Assuming this is fixed in the absense of any information to the contrary.

By: Russell Bryant (russell) 2005-02-13 20:59:02.000-0600

not included in 1.0 since it is a new feature ...

By: Digium Subversion (svnbot) 2008-01-15 15:24:41.000-0600

Repository: asterisk
Revision: 4983

U   trunk/channels/chan_agent.c

r4983 | markster | 2008-01-15 15:24:41 -0600 (Tue, 15 Jan 2008) | 2 lines

Inherit variables across an agent (bug ASTERISK-3444)