diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a7150e15dbfc790607d0cd8eff66cbffd785fa8e..3bc9083b32d1f4ee776d42c889db8c4574893050 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 */