diff --git a/apps/app_queue.c b/apps/app_queue.c index ba3940e48dc5011fef85b28ca541a599161d4406..e7a5ef93aec7395fc628028ba84a9f4b3869e192 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2606,7 +2606,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce if (bridge != AST_PBX_NO_HANGUP_PEER) ast_hangup(peer); update_queue(qe->parent, member); - res = bridge ? -1 : 0; + res = bridge ? bridge : 1; } out: hangupcalls(outgoing, NULL);