[svn-commits] russell: branch russell/chan_refcount r89714 - /team/russell/chan_refcount/ch...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Nov 27 14:20:42 CST 2007
Author: russell
Date: Tue Nov 27 14:20:41 2007
New Revision: 89714
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89714
Log:
remove a few leftover bits
Modified:
team/russell/chan_refcount/channels/chan_sip.c
Modified: team/russell/chan_refcount/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/channels/chan_sip.c?view=diff&rev=89714&r1=89713&r2=89714
==============================================================================
--- team/russell/chan_refcount/channels/chan_sip.c (original)
+++ team/russell/chan_refcount/channels/chan_sip.c Tue Nov 27 14:20:41 2007
@@ -4089,7 +4089,7 @@
ast_clear_flag(&p->flags[0], SIP_DEFER_BYE_ON_TRANSFER); /* Really hang up next time */
p->needdestroy = 0;
p->owner->tech_pvt = dialog_unref(p->owner->tech_pvt);
- p->owner = NULL; /* Owner will be gone after we return, so take it away */
+ p->owner = NULL; /* Owner will be gone after we return, so take it away */
return 0;
}
@@ -13870,7 +13870,7 @@
msg++;
sipmethod = find_sip_method(msg);
- owner = p->owner ? ast_channel_ref(p->owner) : NULL;
+ owner = p->owner;
if (owner)
owner->hangupcause = hangup_sip2cause(resp);
@@ -14241,9 +14241,6 @@
break;
}
}
-
- if (owner)
- ast_channel_unref(owner);
}
@@ -14707,8 +14704,6 @@
struct ast_channel *targetcall; /* The bridge to the take-over target */
struct ast_channel *test;
-
- /* XXX CHAN_REFCOUNT_TODO handle channel references in this function and the rest of the module down from here */
/* Check if we're in ring state */
if (replacecall->_state == AST_STATE_RING)
More information about the svn-commits
mailing list