...
|
...
|
@@ -545,6 +545,8 @@ int tps_storage_record(sip_msg_t *msg, tps_data_t *td, int dialog, int dir)
|
545
|
545
|
|
546
|
546
|
ret = tps_storage_link_msg(msg, td, dir);
|
547
|
547
|
if(ret<0) goto error;
|
|
548
|
+ ret = _tps_storage_api.insert_branch(td);
|
|
549
|
+ if(ret<0) goto error;
|
548
|
550
|
if(dialog==0) {
|
549
|
551
|
if(td->as_contact.len <= 0 && td->bs_contact.len <= 0) {
|
550
|
552
|
LM_WARN("no local address - do record routing for all initial requests\n");
|
...
|
...
|
@@ -552,8 +554,6 @@ int tps_storage_record(sip_msg_t *msg, tps_data_t *td, int dialog, int dir)
|
552
|
554
|
ret = _tps_storage_api.insert_dialog(td);
|
553
|
555
|
if(ret<0) goto error;
|
554
|
556
|
}
|
555
|
|
- ret = _tps_storage_api.insert_branch(td);
|
556
|
|
- if(ret<0) goto error;
|
557
|
557
|
|
558
|
558
|
return 0;
|
559
|
559
|
|