]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
added fix from #8899
authorChristian Richter <christian.richter@beronet.com>
Wed, 24 Jan 2007 12:57:22 +0000 (12:57 +0000)
committerChristian Richter <christian.richter@beronet.com>
Wed, 24 Jan 2007 12:57:22 +0000 (12:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51989 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 54907c34e2e787309f0f10cbcfa9b9f41b0e217f..cfee1c8922ecca880b7217471f77790ff6197052 100644 (file)
@@ -2278,9 +2278,11 @@ static int misdn_indication(struct ast_channel *ast, int cond, const void *data,
                break;
 
        case AST_CONTROL_HOLD:
+               ast_moh_start(ast,data,ast->musicclass); 
                chan_misdn_log(1, p->bc->port, " --> *\tHOLD pid:%d\n",p->bc?p->bc->pid:-1);
                break;
        case AST_CONTROL_UNHOLD:
+               ast_moh_stop(ast);
                chan_misdn_log(1, p->bc->port, " --> *\tUNHOLD pid:%d\n",p->bc?p->bc->pid:-1);
                break;
        default: