[Asterisk-Users] Wrap-up
TC
trclark at shaw.ca
Wed Jun 18 15:37:28 MST 2003
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
More information about the asterisk-users
mailing list