aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-31 19:53:38 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-31 19:53:38 +0000
commitcb4e5d7b66172bced21ace7fbfa042492291e16d (patch)
tree1a941d4aca7f1e9914d5b0289137c52f16a020ee /channels
parent5320d461a7872a94c6b153a896a8627f0c7443a3 (diff)
stop retransmitting INVITE after we have sent CANCEL for the same call
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6472 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index a7150e15d..3bc9083b3 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2351,6 +2351,8 @@ static int sip_hangup(struct ast_channel *ast)
INVITE, but do set an autodestruct just in case we never get it. */
ast_clear_flag(&locflags, SIP_NEEDDESTROY);
sip_scheddestroy(p, 15000);
+ /* stop retransmitting an INVITE that has not received a response */
+ __sip_pretend_ack(p);
if ( p->initid != -1 ) {
/* channel still up - reverse dec of inUse counter
only if the channel is not auto-congested */