[asterisk-commits] tilghman: branch 1.2 r47522 -
/branches/1.2/channels/chan_zap.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Nov 12 17:34:45 MST 2006
Author: tilghman
Date: Sun Nov 12 18:34:44 2006
New Revision: 47522
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47522
Log:
Don't play dialtone if the seizing the channel fails (Bug 7754)
Modified:
branches/1.2/channels/chan_zap.c
Modified: branches/1.2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_zap.c?view=diff&rev=47522&r1=47521&r2=47522
==============================================================================
--- branches/1.2/channels/chan_zap.c (original)
+++ branches/1.2/channels/chan_zap.c Sun Nov 12 18:34:44 2006
@@ -6268,7 +6268,9 @@
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);
More information about the asterisk-commits
mailing list