]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't play dialtone if the seizing the channel fails (Bug 7754)
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 13 Nov 2006 00:34:44 +0000 (00:34 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 13 Nov 2006 00:34:44 +0000 (00:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47522 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 69177a981917cc1f04a17ed0adf6e2d437bad01d..fee8475c8910801f33ee2d6a488a409c58276f94 100644 (file)
@@ -6268,7 +6268,9 @@ static int handle_init_event(struct zt_pvt *i, int event)
                case SIG_FXOLS:
                case SIG_FXOGS:
                case SIG_FXOKS:
-                       zt_set_hook(i->subs[SUB_REAL].zfd, ZT_OFFHOOK);
+                       res = zt_set_hook(i->subs[SUB_REAL].zfd, ZT_OFFHOOK);
+                       if (res && (errno == EBUSY))
+                               break;
                        if (i->cidspill) {
                                /* Cancel VMWI spill */
                                free(i->cidspill);