mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
Turn off moh on SIP transfer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4449,10 +4449,12 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
|||||||
c = p->owner;
|
c = p->owner;
|
||||||
if (c) {
|
if (c) {
|
||||||
transfer_to = c->bridge;
|
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 */
|
||||||
transmit_request_with_auth(p, "BYE", 0, 1);
|
transmit_request_with_auth(p, "BYE", 0, 1);
|
||||||
p->alreadygone = 1;
|
p->alreadygone = 1;
|
||||||
|
Reference in New Issue
Block a user