[asterisk-commits] marquis: branch group/pinana-publish-1.4 r297159 - /team/group/pinana-publish...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 1 13:53:42 CST 2010


Author: marquis
Date: Wed Dec  1 13:53:36 2010
New Revision: 297159

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=297159
Log:
Let's actually handle 200 OK so we can store the etag like we're supposed to.

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=297159&r1=297158&r2=297159
==============================================================================
--- team/group/pinana-publish-1.4/channels/chan_sip.c (original)
+++ team/group/pinana-publish-1.4/channels/chan_sip.c Wed Dec  1 13:53:36 2010
@@ -1859,6 +1859,7 @@
 static struct ao2_container *delete_devstate_publishers(void);
 static struct ao2_container *delete_published_devices(void);
 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_handle_publish_ok(struct sip_pvt *pvt, struct sip_request *req, struct sip_epa_entry *epa_entry);
 static void dlginfo_epa_destructor(void *data);
 
 
@@ -1915,6 +1916,7 @@
 static const struct epa_static_data dlginfo_epa_static_data  = {
 	.event = DIALOG_INFO_XML,
 	.name = "dialog",
+	.handle_ok = dlginfo_handle_publish_ok,
 	.handle_error = dlginfo_handle_publish_error,
 	.destructor = dlginfo_epa_destructor,
 };
@@ -9901,6 +9903,12 @@
 {
 	/* Do we really care of errors here? */
 	ast_log(LOG_DEBUG, "-- %s : PUBLISH error response code %d\n", pvt->callid, resp);
+	return;
+}
+
+/*! \brief Handle a 200 OK to a published dialog-info */
+static void dlginfo_handle_publish_ok(struct sip_pvt *pvt, struct sip_request *req, struct sip_epa_entry *epa_entry)
+{
 	return;
 }
 




More information about the asterisk-commits mailing list