]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 47522 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 13 Nov 2006 01:12:01 +0000 (01:12 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 13 Nov 2006 01:12:01 +0000 (01:12 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47522 | tilghman | 2006-11-12 18:34:44 -0600 (Sun, 12 Nov 2006) | 2 lines

Don't play dialtone if the seizing the channel fails (Bug 7754)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47523 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 3dbbb3be87a5441c0eeeab9590ec050dc7ab13c5..348856f1068841fa5b04a49e80d3baa119eb902f 100644 (file)
@@ -6541,7 +6541,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);