CLear dial buffer
authorMark Spencer <markster@digium.com>
Mon, 19 May 2003 21:50:32 +0000 (21:50 +0000)
committerMark Spencer <markster@digium.com>
Mon, 19 May 2003 21:50:32 +0000 (21:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1040 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index af6454a..4a9bf98 100755 (executable)
@@ -2918,6 +2918,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
                                } else 
                                        ast_log(LOG_DEBUG, "Sent deferred digit string: %s\n", p->dop.dialstr);
                                p->dop.dialstr[0] = '\0';
+                               p->dop.op = ZT_DIAL_OP_REPLACE;
                                break;
                        case SIG_FEATDMF:
                        case SIG_FEATB:
@@ -4059,6 +4060,8 @@ static void *ss_thread(void *data)
                                    (!strcmp(nbridge->type,"Zap")) &&
                                    ISTRUNK(pbridge)) {
                                        int func = ZT_FLASH;
+                                       /* Clear out the dial buffer */
+                                       p->dop.dialstr[0] = '\0';
                                        /* flash hookswitch */
                                        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",