[asterisk-commits] marquis: branch group/pinana-publish-1.4 r293156 - /team/group/pinana-publish...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 26 16:24:34 CDT 2010
Author: marquis
Date: Tue Oct 26 16:24:30 2010
New Revision: 293156
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=293156
Log:
Add the last remnants of the structures needed to support the EPA framework in conjunction with publishing device states.
Modified:
team/group/pinana-publish-1.4/channels/chan_sip.c
Modified: team/group/pinana-publish-1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pinana-publish-1.4/channels/chan_sip.c?view=diff&rev=293156&r1=293155&r2=293156
==============================================================================
--- team/group/pinana-publish-1.4/channels/chan_sip.c (original)
+++ team/group/pinana-publish-1.4/channels/chan_sip.c Tue Oct 26 16:24:30 2010
@@ -1254,6 +1254,23 @@
* Destructor to call to clean up instance data
*/
void (*destructor)(void *instance_data);
+};
+
+static void dlginfo_handle_publish_error(struct sip_pvt *pvt, const int resp, struct sip_request *req, struct sip_epa_entry *epa_entry);
+
+static void dlginfo_epa_destructor(void *data)
+{
+ struct sip_epa_entry *epa_entry = data;
+ //struct dlginfo_epa_entry *dlginfo_entry = epa_entry->instance_data;
+ //ast_free(dlginfo_entry);
+}
+
+
+static const struct epa_static_data dlginfo_epa_static_data = {
+ .event = DIALOG_INFO_XML,
+ .name = "dialog-info",
+ .handle_error = dlginfo_handle_publish_error,
+ .destructor = dlginfo_epa_destructor,
};
/*!
@@ -20488,6 +20505,9 @@
ast_cond_init(&device_state.cond, NULL);
ast_pthread_create(&device_state.thread, NULL, device_state_thread, NULL);
ast_devstate_add(sip_devicestate_cb, devstate_publishers);
+ if (sip_epa_register(&dlginfo_epa_static_data)) {
+ return AST_MODULE_LOAD_DECLINE;
+ }
return AST_MODULE_LOAD_SUCCESS;
}
More information about the asterisk-commits
mailing list