From ec623148c09e5051fb29bb1558cf74680331c145 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 13 Nov 2006 00:34:44 +0000 Subject: [PATCH] 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 --- channels/chan_zap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);