]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix the flash/*0 when incoming call comes on FXO -> FXS
authorMartin Pycko <martinp@digium.com>
Mon, 19 May 2003 23:43:44 +0000 (23:43 +0000)
committerMartin Pycko <martinp@digium.com>
Mon, 19 May 2003 23:43:44 +0000 (23:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1044 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 4a9bf980f086966dda9a18a01783e4e26f62df53..1537dbda62339c62ddd643be4c71455352cf914c 100755 (executable)
@@ -2884,8 +2884,9 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
                        case SIG_SF_FEATDMF:
                        case SIG_SF_FEATB:
                                /* FGD MF *Must* wait for wink */
-                               res = ioctl(p->subs[SUB_REAL].zfd, ZT_DIAL, &p->dop);
-                               if (res < 0) {
+                               if (strlen(p->dop.dialstr)) {
+                                       res = ioctl(p->subs[SUB_REAL].zfd, ZT_DIAL, &p->dop);
+                               else if (res < 0) {
                                        ast_log(LOG_WARNING, "Unable to initiate dialing on trunk channel %d\n", p->channel);
                                        p->dop.dialstr[0] = '\0';
                                        return NULL;