@ -3521,7 +3521,8 @@ check_turns:
if ( ! res )
break ;
if ( valid_exit ( & qe , res ) ) {
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " , " %s|%d " , qe . digits , qe . pos ) ;
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " , " %s|%d|%d|%ld " ,
qe . digits , qe . pos , qe . opos , ( long ) time ( NULL ) - qe . start ) ;
break ;
}
}
@ -3541,7 +3542,8 @@ check_turns:
record_abandoned ( & qe ) ;
reason = QUEUE_TIMEOUT ;
res = 0 ;
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHTIMEOUT " , " %d " , qe . pos ) ;
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHTIMEOUT " , " %d|%d|%ld " ,
qe . pos , qe . opos , ( long ) time ( NULL ) - qe . start ) ;
break ;
}
@ -3549,7 +3551,8 @@ check_turns:
/* Make a position announcement, if enabled */
if ( qe . parent - > announcefrequency & & ! ringing & &
( res = say_position ( & qe ) ) ) {
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " , " %s|%d " , qe . digits , qe . pos ) ;
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " , " %s|%d|%d|%ld " ,
qe . digits , qe . pos , qe . opos , ( long ) time ( NULL ) - qe . start ) ;
break ;
}
@ -3559,7 +3562,8 @@ check_turns:
/* Make a periodic announcement, if enabled */
if ( qe . parent - > periodicannouncefrequency & & ! ringing & &
( res = say_periodic_announcement ( & qe ) ) ) {
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " , " %c|%d " , res , qe . pos ) ;
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " , " %s|%d|%d|%ld " ,
qe . digits , qe . pos , qe . opos , ( long ) time ( NULL ) - qe . start ) ;
break ;
}
@ -3574,8 +3578,8 @@ check_turns:
( long ) time ( NULL ) - qe . start ) ;
}
} else if ( valid_exit ( & qe , res ) ) {
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " ,
" %s|%d " , qe . digits , qe . pos ) ;
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " , " %s|%d|%d|%ld " ,
qe . digits , qe . pos , qe . opos , ( long ) time ( NULL ) - qe . start ) ;
}
break ;
}
@ -3609,7 +3613,7 @@ check_turns:
record_abandoned ( & qe ) ;
reason = QUEUE_TIMEOUT ;
res = 0 ;
ast_queue_log ( args. queuename , chan - > uniqueid , " NONE " , " EXITWITHTIMEOUT " , " %d " , qe . pos ) ;
ast_queue_log ( qe. parent - > name , qe . chan - > uniqueid , " NONE " , " EXITWITHTIMEOUT " , " %d |%d|%ld " , qe . pos , qe . opos , ( long ) time ( NULL ) - qe . start ) ;
break ;
}
@ -3625,14 +3629,16 @@ check_turns:
break ;
}
if ( res & & valid_exit ( & qe , res ) ) {
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " , " %s|%d " , qe . digits , qe . pos ) ;
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHKEY " , " %s|%d|%d|%ld " ,
qe . digits , qe . pos , qe . opos , ( long ) time ( NULL ) - qe . start ) ;
break ;
}
/* exit after 'timeout' cycle if 'n' option enabled */
if ( go_on ) {
if ( option_verbose > 2 )
ast_verbose ( VERBOSE_PREFIX_3 " Exiting on time-out cycle \n " ) ;
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHTIMEOUT " , " %d " , qe . pos ) ;
ast_queue_log ( args . queuename , chan - > uniqueid , " NONE " , " EXITWITHTIMEOUT " , " %d|%d|%ld " ,
qe . pos , qe . opos , ( long ) time ( NULL ) - qe . start ) ;
record_abandoned ( & qe ) ;
reason = QUEUE_TIMEOUT ;
res = 0 ;