mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 01:36:48 +00:00
res_pjsip_refer: Fix bugs involving Parking/PJSIP/transfers
PJSIP would never send the final 200 Notify for a blind transfer when transferring to parking. This patch fixes that. In addition, it fixes a reference leak when performing blind transfers to non-bridging extensions. Review: https://reviewboard.asterisk.org/r/3485/ ........ Merged revisions 414400 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -516,6 +516,7 @@ static int park_app_exec(struct ast_channel *chan, const char *data)
|
||||
if (!silence_announcements && !transferer) {
|
||||
ast_stream_and_wait(chan, "pbx-parkingfailed", "");
|
||||
}
|
||||
publish_parked_call_failure(chan);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -523,6 +524,7 @@ static int park_app_exec(struct ast_channel *chan, const char *data)
|
||||
res = ast_bridge_features_init(&chan_features);
|
||||
if (res) {
|
||||
ast_bridge_features_cleanup(&chan_features);
|
||||
publish_parked_call_failure(chan);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user