diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-18 05:23:10 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-18 05:23:10 +0000 |
commit | ed5ea9b2ad9183925dc55d57266a28f65f13ee30 (patch) | |
tree | f6358288afbc976a483149e5c5c8c977da5cca1c /channels | |
parent | 166f660c0eb85a07a52efaf8c98d955fd2926c7b (diff) |
If we can't transfer, be sure we hangup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1359 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 343d9fd43..719a2269a 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4473,6 +4473,10 @@ static int attempt_transfer(struct sip_pvt *p1, struct sip_pvt *p2) } } else { 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 0; |