Browse code

topos: don't store dialog data for message request

- only branches are enough

Daniel-Constantin Mierla authored on 18/03/2016 16:20:00
Showing 1 changed files
... ...
@@ -323,8 +323,10 @@ int tps_storage_record(sip_msg_t *msg, tps_data_t *td)
323 323
 	if(ret<0) goto error;
324 324
 	ret = tps_storage_link_msg(msg, td, TPS_DIR_DOWNSTREAM);
325 325
 	if(ret<0) goto error;
326
-	ret = tps_db_insert_dialog(td);
327
-	if(ret<0) goto error;
326
+	if(td->s_method_id!=METHOD_MESSAGE) {
327
+		ret = tps_db_insert_dialog(td);
328
+		if(ret<0) goto error;
329
+	}
328 330
 	ret = tps_db_insert_branch(td);
329 331
 	if(ret<0) goto error;
330 332