From: Ben Kramer Date: Fri, 20 Aug 2004 02:55:29 +0000 (+0000) Subject: / check so as not to enable loo-drop on FXS X-Git-Tag: 1.0.0~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed20af4517e97b8e48345add2b04490e06b50251;p=thirdparty%2Fasterisk.git / check so as not to enable loo-drop on FXS git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3627 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_vpb.c b/channels/chan_vpb.c index 182f3d352e..c9ca07665d 100755 --- a/channels/chan_vpb.c +++ b/channels/chan_vpb.c @@ -1499,9 +1499,11 @@ static int vpb_answer(struct ast_channel *ast) if (option_verbose > 3) ast_verbose(VERBOSE_PREFIX_4 "%s: Answering channel\n",p->dev); - if (option_verbose > 4) - ast_verbose("%s: Disabling Loop Drop detection\n",p->dev); - vpb_disable_event(p->handle, VPB_MDROP); + if (p->mode == MODE_FXO){ + if (option_verbose > 4) + ast_verbose("%s: Disabling Loop Drop detection\n",p->dev); + vpb_disable_event(p->handle, VPB_MDROP); + } if (ast->_state != AST_STATE_UP) { if (p->mode == MODE_FXO){ @@ -1540,9 +1542,11 @@ static int vpb_answer(struct ast_channel *ast) // ast_verbose("%s: unLOCKING in answer [%d]\n", p->dev,res); } vpb_sleep(500); - if (option_verbose > 4) - ast_verbose("%s: Re-enabling Loop Drop detection\n",p->dev); - vpb_enable_event(p->handle,VPB_MDROP); + if (p->mode == MODE_FXO){ + if (option_verbose > 4) + ast_verbose("%s: Re-enabling Loop Drop detection\n",p->dev); + vpb_enable_event(p->handle,VPB_MDROP); + } res = ast_mutex_unlock(&p->lock); /* if(option_verbose>3) ast_verbose("%s: unLOCKING in answer [%d]\n", p->dev,res);