If we can't transfer, be sure we hangup

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent c3d0f7e463
commit 341c78552d

@ -4473,6 +4473,10 @@ static int attempt_transfer(struct sip_pvt *p1, struct sip_pvt *p2)
} }
} else { } else {
ast_log(LOG_NOTICE, "Transfer attempted with no bridged calls to transfer\n"); ast_log(LOG_NOTICE, "Transfer attempted with no bridged calls to transfer\n");
if (p1->owner)
ast_softhangup(p1->owner, AST_SOFTHANGUP_DEV);
if (p2->owner)
ast_softhangup(p2->owner, AST_SOFTHANGUP_DEV);
return -1; return -1;
} }
return 0; return 0;

Loading…
Cancel
Save