projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3d0f7e
)
If we can't transfer, be sure we hangup
author
Mark Spencer
<markster@digium.com>
Mon, 18 Aug 2003 05:23:10 +0000
(
05:23
+0000)
committer
Mark Spencer
<markster@digium.com>
Mon, 18 Aug 2003 05:23:10 +0000
(
05:23
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1359
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
343d9fd
..
719a226
100755
(executable)
--- 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;