[Asterisk-Users] Wrap-up
Mark Spencer
markster at digium.com
Thu Jun 19 06:31:40 MST 2003
In principle, agent_call is supposed to return almost immediately.
Mark
On Wed, 18 Jun 2003, TC wrote:
> I found a similar issue
> I change'd the chan_agent so that an agent must "press any key to continue"
> b4 the agent is actually connected to the next call
> its just a couple line patch
>
> --- chan_agent.c 2003-06-18 15:26:18.000000000 -0700
> +++ chan_agent.std 2003-06-18 07:15:08.000000000 -0700
> @@ -220,6 +220,7 @@
>
> static int agent_call(struct ast_channel *ast, char *dest, int timeout)
> {
> + int d;
> struct agent_pvt *p = ast->pvt->pvt;
> int res = -1;
> ast_pthread_mutex_lock(&p->lock);
> @@ -250,8 +251,12 @@
> }
> if( !res )
> {
> - /* Call is immediately up */
> - ast_setstate(ast, AST_STATE_UP);
> + d = ast_waitfordigit(p->chan, 5000);
> + if ( d > 0)
> + /* %TC Call is immediately up */
> + ast_setstate(ast, AST_STATE_UP);
> + else
> + res = 0; /* nothing timed out */
> }
> CLEANUP(ast,p);
> ast_pthread_mutex_unlock(&p->lock);
>
>
>
> -----Original Message-----
> From: Jim Friedeck <asterisk at carhil.com>
> To: asterisk-users at lists.digium.com <asterisk-users at lists.digium.com>
> Date: June 18, 2003 1:29 PM
> Subject: [Asterisk-Users] Wrap-up
>
>
> >Is it possible to specify a 'wrap-up' time in a queue so agents will
> >have a specified amount of time to complete tasks between calls unless
> >they hit a key on the phone? As it is they can recieve a call moments
> >after they hang up with no 'down time'. Thanks
> >
> >Jim Friedeck
> >
> >_______________________________________________
> >Asterisk-Users mailing list
> >Asterisk-Users at lists.digium.com
> >http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list