[asterisk-commits] mmichelson: branch mmichelson/pool_shark2 r381591 - /team/mmichelson/pool_sha...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 15 16:05:38 CST 2013


Author: mmichelson
Date: Fri Feb 15 16:05:34 2013
New Revision: 381591

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381591
Log:
s/cloner/distributor/g in res_sip_distributor.c

Modified:
    team/mmichelson/pool_shark2/res/res_sip/sip_distributor.c

Modified: team/mmichelson/pool_shark2/res/res_sip/sip_distributor.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/pool_shark2/res/res_sip/sip_distributor.c?view=diff&rev=381591&r1=381590&r2=381591
==============================================================================
--- team/mmichelson/pool_shark2/res/res_sip/sip_distributor.c (original)
+++ team/mmichelson/pool_shark2/res/res_sip/sip_distributor.c Fri Feb 15 16:05:34 2013
@@ -25,7 +25,7 @@
 
 static int distribute(void *data);
 
-static pj_bool_t cloner(pjsip_rx_data *rdata)
+static pj_bool_t distributor(pjsip_rx_data *rdata)
 {
 	pjsip_rx_data *clone;
 	pjsip_rx_data_clone(rdata, 0, &clone);
@@ -33,17 +33,17 @@
 	return PJ_TRUE;
 }
 
-pjsip_module cloner_mod = {
+pjsip_module distributor_mod = {
 	.name = {"Request Distributor", 19},
 	.priority = PJSIP_MOD_PRIORITY_TSX_LAYER - 1,
-	.on_rx_request = cloner,
-	.on_rx_response = cloner,
+	.on_rx_request = distributor,
+	.on_rx_response = distributor,
 };
 
 static int distribute(void *data)
 {
 	static pjsip_process_rdata_param param = {
-		.start_mod = &cloner_mod,
+		.start_mod = &distributor_mod,
 		.idx_after_start = 1,
 	};
 	pj_bool_t handled;
@@ -67,7 +67,7 @@
 			}
 			goto end;
 		}
-		rdata->endpt_info.mod_data[cloner_mod.id] = endpoint;
+		rdata->endpt_info.mod_data[distributor_mod.id] = endpoint;
 
 		if (is_request) {
 			if (ast_sip_requires_authentication(endpoint, rdata)) {
@@ -104,7 +104,7 @@
 
 struct ast_sip_endpoint *ast_pjsip_rdata_get_endpoint(pjsip_rx_data *rdata)
 {
-	struct ast_sip_endpoint *endpoint = rdata->endpt_info.mod_data[cloner_mod.id];
+	struct ast_sip_endpoint *endpoint = rdata->endpt_info.mod_data[distributor_mod.id];
 	if (endpoint) {
 		ao2_ref(endpoint, +1);
 	}
@@ -121,7 +121,7 @@
 		return NULL;
 	}
 	memcpy(clone->endpt_info.mod_data, rdata->endpt_info.mod_data, sizeof(clone->endpt_info.mod_data));
-	endpoint = clone->endpt_info.mod_data[cloner_mod.id];
+	endpoint = clone->endpt_info.mod_data[distributor_mod.id];
 	if (endpoint) {
 		ao2_ref(endpoint, +1);
 	}
@@ -131,12 +131,12 @@
 void ast_pjsip_rx_data_free_cloned(pjsip_rx_data *rdata)
 {
 	struct ast_sip_endpoint *endpoint;
-	endpoint = rdata->endpt_info.mod_data[cloner_mod.id];
+	endpoint = rdata->endpt_info.mod_data[distributor_mod.id];
 	pjsip_rx_data_free_cloned(rdata);
 	ao2_cleanup(endpoint);
 }
 
 int ast_sip_initialize_distributor(void)
 {
-	return ast_sip_register_service(&cloner_mod);
+	return ast_sip_register_service(&distributor_mod);
 }




More information about the asterisk-commits mailing list