mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
CLear dial buffer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2918,6 +2918,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
|
|||||||
} else
|
} else
|
||||||
ast_log(LOG_DEBUG, "Sent deferred digit string: %s\n", p->dop.dialstr);
|
ast_log(LOG_DEBUG, "Sent deferred digit string: %s\n", p->dop.dialstr);
|
||||||
p->dop.dialstr[0] = '\0';
|
p->dop.dialstr[0] = '\0';
|
||||||
|
p->dop.op = ZT_DIAL_OP_REPLACE;
|
||||||
break;
|
break;
|
||||||
case SIG_FEATDMF:
|
case SIG_FEATDMF:
|
||||||
case SIG_FEATB:
|
case SIG_FEATB:
|
||||||
@@ -4059,6 +4060,8 @@ static void *ss_thread(void *data)
|
|||||||
(!strcmp(nbridge->type,"Zap")) &&
|
(!strcmp(nbridge->type,"Zap")) &&
|
||||||
ISTRUNK(pbridge)) {
|
ISTRUNK(pbridge)) {
|
||||||
int func = ZT_FLASH;
|
int func = ZT_FLASH;
|
||||||
|
/* Clear out the dial buffer */
|
||||||
|
p->dop.dialstr[0] = '\0';
|
||||||
/* flash hookswitch */
|
/* flash hookswitch */
|
||||||
if ((ioctl(pbridge->subs[SUB_REAL].zfd,ZT_HOOK,&func) == -1) && (errno != EINPROGRESS)) {
|
if ((ioctl(pbridge->subs[SUB_REAL].zfd,ZT_HOOK,&func) == -1) && (errno != EINPROGRESS)) {
|
||||||
ast_log(LOG_WARNING, "Unable to flash external trunk on channel %s: %s\n",
|
ast_log(LOG_WARNING, "Unable to flash external trunk on channel %s: %s\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user