[asterisk-commits] oej: branch group/pinana-publish-1.4 r297156 - /team/group/pinana-publish-1.4...

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


Author: oej
Date: Wed Dec  1 13:39:13 2010
New Revision: 297156

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=297156
Log:
Dude. My fault, someone else to blame. 

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=297156&r1=297155&r2=297156
==============================================================================
--- 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:39:13 2010
@@ -9953,9 +9953,9 @@
 			ast_log(LOG_DEBUG, "*** Found our friend %s in the existing list \n", device->name);
 			generate_random_string(dlg_id, sizeof(dlg_id));
 			ast_log(LOG_WARNING, "Device state is %d, %s\n", sc->state, ast_devstate_str(sc->state));
+			snprintf(uri, sizeof(uri), "sip:%s@%s", sc->dev, pres_server->domain);
 			presence_build_dialoginfo_xml(body, &maxbytes, 1, ast_devstate_str(sc->state), dlg_id, 1, uri, 0);
 			ast_copy_string(device->epa->body, body, sizeof(device->epa->body));
-			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 asterisk-commits mailing list