- only branches are enough
@@ -323,8 +323,10 @@ int tps_storage_record(sip_msg_t *msg, tps_data_t *td)
if(ret<0) goto error;
ret = tps_storage_link_msg(msg, td, TPS_DIR_DOWNSTREAM);
- ret = tps_db_insert_dialog(td);
- if(ret<0) goto error;
+ if(td->s_method_id!=METHOD_MESSAGE) {
+ ret = tps_db_insert_dialog(td);
+ if(ret<0) goto error;
+ }
ret = tps_db_insert_branch(td);