From: Tilghman Lesher Date: Mon, 13 Nov 2006 00:34:44 +0000 (+0000) Subject: Don't play dialtone if the seizing the channel fails (Bug 7754) X-Git-Tag: 1.2.14~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec623148c09e5051fb29bb1558cf74680331c145;p=thirdparty%2Fasterisk.git Don't play dialtone if the seizing the channel fails (Bug 7754) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47522 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 69177a9819..fee8475c89 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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);