--- asterisk/apps/app_queue.c 2005-02-20 12:02:20.000000000 -0700 +++ asterisk-20050223/apps/app_queue.c 2005-02-24 14:29:43.000000000 -0700 @@ -1165,8 +1166,10 @@ ast_cdr_busy(in->cdr); ast_hangup(o->chan); o->chan = NULL; - if (qe->parent->strategy) + if (qe->parent->strategy) { + *to = orig; ring_one(qe, outgoing, &numbusies); + } numbusies++; break; case AST_CONTROL_CONGESTION: @@ -1177,8 +1180,10 @@ ast_cdr_busy(in->cdr); ast_hangup(o->chan); o->chan = NULL; - if (qe->parent->strategy) + if (qe->parent->strategy) { + *to = orig; ring_one(qe, outgoing, &numbusies); + } numbusies++; break; case AST_CONTROL_RINGING: @@ -1203,8 +1208,10 @@ o->stillgoing = 0; ast_hangup(o->chan); o->chan = NULL; - if (qe->parent->strategy) + if (qe->parent->strategy) { + *to = orig; ring_one(qe, outgoing, &numbusies); + } } } o = o->next;