diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ab30761af50c56fce17f3696e9f550e376fc209a..af79f4b683835e0998e8fac71a749f75c4947911 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -24815,9 +24815,6 @@ static int handle_invite_replaces(struct sip_pvt *p, struct sip_request *req, st ast_setstate(c, AST_STATE_DOWN); ast_channel_unlock(c); - /* The call should be down with no ast_channel, so hang it up */ - ast_channel_tech_pvt_set(c, dialog_unref(ast_channel_tech_pvt(c), "unref dialog c->tech_pvt")); - /* c and c's tech pvt must be unlocked at this point for ast_hangup */ ast_hangup(c); /* this indicates to handle_request_do that the owner channel has already been unlocked */