Turn off moh on SIP transfer
authorMark Spencer <markster@digium.com>
Wed, 25 Jun 2003 16:12:23 +0000 (16:12 +0000)
committerMark Spencer <markster@digium.com>
Wed, 25 Jun 2003 16:12:23 +0000 (16:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1121 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 27932d4..6ff15bc 100755 (executable)
@@ -4449,8 +4449,10 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                                c = p->owner;
                                if (c) {
                                        transfer_to = c->bridge;
                                c = p->owner;
                                if (c) {
                                        transfer_to = c->bridge;
-                                       if (transfer_to)
+                                       if (transfer_to) {
+                                               ast_moh_stop(transfer_to);
                                                ast_async_goto(transfer_to,p->context, p->refer_to,1, 1);
                                                ast_async_goto(transfer_to,p->context, p->refer_to,1, 1);
+                                       }
                                }
                        }
                        /* Always increment on a BYE */
                                }
                        }
                        /* Always increment on a BYE */