[asterisk-commits] mmichelson: branch group/CCSS r239994 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 13 17:13:27 CST 2010


Author: mmichelson
Date: Wed Jan 13 17:13:24 2010
New Revision: 239994

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=239994
Log:
Initialize the offer timer id to -1 so that there is no problem during
destruction of the agent if the offer timer was not started


Modified:
    team/group/CCSS/channels/chan_sip.c

Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=239994&r1=239993&r2=239994
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Wed Jan 13 17:13:24 2010
@@ -3462,6 +3462,7 @@
 	ast_assert(!strcmp(chan->tech->type, "SIP"));
 
 	agent_pvt->original_call = dialog_ref(call_pvt, "Get reference to original call dialog");
+	agent_pvt->offer_timer_id = -1;
 	agent->private_data = agent_pvt;
 	sip_pvt_lock(agent_pvt->original_call);
 	ast_set_flag(&agent_pvt->original_call->flags[0], SIP_OFFER_CC);




More information about the asterisk-commits mailing list