Browse code

dialog: small formatting changes

(cherry picked from commit a3443211515068bb12ecbd53541785a5ebf1cb6c)

Daniel-Constantin Mierla authored on 03/11/2020 10:38:56
Showing 2 changed files
... ...
@@ -534,11 +534,11 @@ int dlg_dmq_replicate_action(dlg_dmq_action_t action, dlg_cell_t* dlg,
534 534
 			if (dlg->vars != NULL) {
535 535
 				srjson_t *pj = NULL;
536 536
 				pj = srjson_CreateObject(&jdoc);
537
-                for(var=dlg->vars ; var ; var=var->next) {
537
+				for(var=dlg->vars ; var ; var=var->next) {
538 538
 					srjson_AddStrToObject(&jdoc, pj, var->key.s,
539 539
 							var->value.s, var->value.len);
540
-                }
541
-                srjson_AddItemToObject(&jdoc, jdoc.root, "vars", pj);
540
+				}
541
+				srjson_AddItemToObject(&jdoc, jdoc.root, "vars", pj);
542 542
 			}
543 543
 
544 544
 			if (dlg->profile_links) {
... ...
@@ -657,8 +657,8 @@ int dmq_send_all_dlgs(dmq_node_t* dmq_node) {
657 657
 		dlg_lock( d_table, &entry);
658 658
 
659 659
 		for(dlg = entry.first; dlg != NULL; dlg = dlg->next){
660
-				dlg->dflags |= DLG_FLAG_CHANGED_PROF;
661
-				dlg_dmq_replicate_action(DLG_DMQ_UPDATE, dlg, 0, dmq_node);
660
+			dlg->dflags |= DLG_FLAG_CHANGED_PROF;
661
+			dlg_dmq_replicate_action(DLG_DMQ_UPDATE, dlg, 0, dmq_node);
662 662
 		}
663 663
 
664 664
 		dlg_unlock( d_table, &entry);
... ...
@@ -672,7 +672,7 @@ int dmq_send_all_dlgs(dmq_node_t* dmq_node) {
672 672
 * @brief dmq response callback
673 673
 */
674 674
 int dlg_dmq_resp_callback_f(struct sip_msg* msg, int code,
675
-                            dmq_node_t* node, void* param)
675
+		dmq_node_t* node, void* param)
676 676
 {
677 677
 	LM_DBG("dmq response callback triggered [%p %d %p]\n", msg, code, param);
678 678
 	return 0;
... ...
@@ -749,15 +749,15 @@ static void dlg_on_send(struct cell* t, int type, struct tmcb_params *param)
749 749
 	LM_DBG("dialog_on_send CB\n");
750 750
 	iuid = (dlg_iuid_t*)(*param->param);
751 751
 	if (iuid==NULL)
752
-	return;
752
+		return;
753 753
 
754 754
 	dlg = dlg_get_by_iuid(iuid);
755 755
 	if(dlg==NULL)
756
-	return;
756
+		return;
757 757
 
758 758
 	/* sync over dmq */
759 759
 	if (dlg_enable_dmq) {
760
-	dlg_dmq_replicate_action(DLG_DMQ_UPDATE, dlg, 1, 0);
760
+		dlg_dmq_replicate_action(DLG_DMQ_UPDATE, dlg, 1, 0);
761 761
 	}
762 762
 
763 763
 	/* unref by 2: 1 set when adding in tm cb, 1 set by dlg_get_by_iuid() */