Turn off moh on SIP transfer
[asterisk/asterisk.git] / 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;
-                                       if (transfer_to)
+                                       if (transfer_to) {
+                                               ast_moh_stop(transfer_to);
                                                ast_async_goto(transfer_to,p->context, p->refer_to,1, 1);
+                                       }
                                }
                        }
                        /* Always increment on a BYE */