[svn-commits] mmichelson: branch group/CCSS r229747 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Nov 12 13:28:59 CST 2009


Author: mmichelson
Date: Thu Nov 12 13:28:55 2009
New Revision: 229747

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229747
Log:
Add skeleton code for CC ESC entry destructor.


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=229747&r1=229746&r2=229747
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Thu Nov 12 13:28:55 2009
@@ -1802,16 +1802,25 @@
 
 static const int ESC_MAX_BUCKETS = 37;
 
+/* I don't actually know if I'll need to do anything here yet,
+ * but this helps to fit the skeleton that I've designed for
+ * PUBLISH support
+ */
+static void cc_esc_destructor(struct sip_esc_entry *esc_entry)
+{
+	/* XXX STUB */
+	return;
+}
+
 static void esc_entry_destructor(void *obj)
 {
 	struct sip_esc_entry *esc_entry = obj;
 	if (esc_entry->sched_id > -1) {
 		AST_SCHED_DEL(sched, esc_entry->sched_id);
 	}
-	/* We need to add a switch statement or something
-	 * here so that we can call the appropriate event-package
-	 * destructor function on the event_specific_data
-	 */
+	if (!strcasecmp(esc_entry->event, "call-completion")) {
+		cc_esc_destructor(esc_entry);
+	}
 }
 
 static int esc_hash_fn(const void *obj, const int flags)




More information about the svn-commits mailing list