mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@14566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -9031,15 +9031,19 @@ static void *pri_dchannel(void *vpri)
|
||||
ast_log(LOG_WARNING, "Received SETUP_ACKNOWLEDGE on unconfigured channel %d/%d span %d\n",
|
||||
PRI_SPAN(e->setup_ack.channel), PRI_CHANNEL(e->setup_ack.channel), pri->span);
|
||||
} else {
|
||||
ast_mutex_lock(&pri->pvts[chanpos]->lock);
|
||||
pri->pvts[chanpos]->setup_ack = 1;
|
||||
/* Send any queued digits */
|
||||
for (x=0;x<strlen(pri->pvts[chanpos]->dialdest);x++) {
|
||||
ast_log(LOG_DEBUG, "Sending pending digit '%c'\n", pri->pvts[chanpos]->dialdest[x]);
|
||||
pri_information(pri->pri, pri->pvts[chanpos]->call,
|
||||
pri->pvts[chanpos]->dialdest[x]);
|
||||
}
|
||||
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
|
||||
chanpos = pri_fixup_principle(pri, chanpos, e->ring.call);
|
||||
if (chanpos > -1) {
|
||||
ast_mutex_lock(&pri->pvts[chanpos]->lock);
|
||||
pri->pvts[chanpos]->setup_ack = 1;
|
||||
/* Send any queued digits */
|
||||
for (x=0;x<strlen(pri->pvts[chanpos]->dialdest);x++) {
|
||||
ast_log(LOG_DEBUG, "Sending pending digit '%c'\n", pri->pvts[chanpos]->dialdest[x]);
|
||||
pri_information(pri->pri, pri->pvts[chanpos]->call,
|
||||
pri->pvts[chanpos]->dialdest[x]);
|
||||
}
|
||||
ast_mutex_unlock(&pri->pvts[chanpos]->lock);
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Unable to move channel %d!\n", e->setup_ack.channel);
|
||||
}
|
||||
break;
|
||||
case PRI_EVENT_NOTIFY:
|
||||
|
||||
@@ -1144,6 +1144,9 @@ static struct ast_channel *ast_feature_request_and_dial(struct ast_channel *call
|
||||
ast_indicate(caller, AST_CONTROL_RINGING);
|
||||
} else if ((f->subclass == AST_CONTROL_BUSY) || (f->subclass == AST_CONTROL_CONGESTION)) {
|
||||
state = f->subclass;
|
||||
if (option_verbose > 2)
|
||||
ast_verbose( VERBOSE_PREFIX_3 "%s is busy\n", chan->name);
|
||||
ast_indicate(caller, AST_CONTROL_BUSY);
|
||||
ast_frfree(f);
|
||||
f = NULL;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user