[svn-commits] marquis: branch group/pinana-publish-1.4 r296864 - /team/group/pinana-publish...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 30 18:05:10 CST 2010


Author: marquis
Date: Tue Nov 30 18:05:05 2010
New Revision: 296864

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=296864
Log:
Hack in support for non-initial PUBLISH.

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=296864&r1=296863&r2=296864
==============================================================================
--- team/group/pinana-publish-1.4/channels/chan_sip.c (original)
+++ team/group/pinana-publish-1.4/channels/chan_sip.c Tue Nov 30 18:05:05 2010
@@ -9944,8 +9944,12 @@
 	while ((device = ao2_iterator_next(&i))) {
 		ast_log(LOG_DEBUG, "   PUBLISH: Comparing %s and device %s\n", device->name, sc->dev);
 		if (!strcasecmp(device->pubname, pres_server->name) && !strcasecmp(device->name, sc->dev)) {
+			char uri[SIPBUFSIZE];
 			found = TRUE;
 			ast_log(LOG_DEBUG, "*** Found our friend %s in the existing list \n", device->name);
+			//This is the wrong thing to do here because the dialog id hasn't changed...
+			snprintf(uri, sizeof(uri), "sip:%s@%s", sc->dev, pres_server->domain);
+			transmit_publish(device->epa, publish_type, uri);
 			/* Do stuff here */
 			publish_type = SIP_PUBLISH_MODIFY;
 		}




More information about the svn-commits mailing list