[asterisk-commits] dvossel: branch dvossel/sip_resource_list_trunk r186983 - /team/dvossel/sip_r...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 8 10:13:03 CDT 2009


Author: dvossel
Date: Wed Apr  8 09:54:11 2009
New Revision: 186983

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=186983
Log:
added unique content id to resource list and resources, required for multipart/related

Modified:
    team/dvossel/sip_resource_list_trunk/channels/chan_sip.c

Modified: team/dvossel/sip_resource_list_trunk/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/team/dvossel/sip_resource_list_trunk/channels/chan_sip.c?view=diff&rev=186983&r1=186982&r2=186983
==============================================================================
--- team/dvossel/sip_resource_list_trunk/channels/chan_sip.c (original)
+++ team/dvossel/sip_resource_list_trunk/channels/chan_sip.c Wed Apr  8 09:54:11 2009
@@ -1885,7 +1885,8 @@
 	int laststate;
 
 	AST_DECLARE_STRING_FIELDS(
-		AST_STRING_FIELD(exten);       /*!< this is an extension to watch within rlist */
+		AST_STRING_FIELD(exten);       /*!< This is an extension to watch within rlist */
+		AST_STRING_FIELD(contentid);   /*!< Dialog Content ID */
 	);
 
 	AST_LIST_ENTRY(sip_rlist_resource) entry;
@@ -1896,6 +1897,7 @@
 	char name[80];		/*!< This is the extension to subscribe too for list */
 	AST_DECLARE_STRING_FIELDS (
 		AST_STRING_FIELD(context);
+		AST_STRING_FIELD(contentid);  /*!< Dialog Content ID */
 	);
 	int the_mark;
 	int num_watchers;
@@ -23408,6 +23410,7 @@
 	}
 	ast_string_field_init(resource, 128);
 	ast_string_field_set(resource, exten, monitorexten);
+	ast_string_field_build(resource, contentid, "%08lx", ast_random());
 	resource->stateid = -1;
 	AST_LIST_INSERT_TAIL(&rlist->resources, resource, entry);
 
@@ -23439,6 +23442,7 @@
 			return NULL;
 		}
 		rlist->startmonitor = 0;
+		ast_string_field_build(rlist, contentid, "%08lx", ast_random());
 		ast_copy_string(rlist->name, name, sizeof(rlist->name));
 	}
 




More information about the asterisk-commits mailing list