Browse code

indendation1

root authored on 29/07/2020 16:21:21
Showing 1 changed files
... ...
@@ -705,51 +705,51 @@ static int ki_evapi_async_relay(sip_msg_t *msg, str *sdata)
705 705
 
706 706
 static int ki_evapi_async_relay_unicast(sip_msg_t *msg, str *sdata, str *stag)
707 707
 {
708
-        unsigned int tindex;
709
-        unsigned int tlabel;
710
-        tm_cell_t *t = 0;
711
-
712
-        if(tmb.t_suspend==NULL) {
713
-                LM_ERR("evapi async relay is disabled - tm module not loaded\n");
714
-                return -1;
715
-        }
716
-
717
-        t = tmb.t_gett();
718
-        if (t==NULL || t==T_UNDEFINED)
719
-        {
720
-                if(tmb.t_newtran(msg)<0)
721
-                {
722
-                        LM_ERR("cannot create the transaction\n");
723
-                        return -1;
724
-                }
725
-                t = tmb.t_gett();
726
-                if (t==NULL || t==T_UNDEFINED)
727
-                {
728
-                        LM_ERR("cannot lookup the transaction\n");
729
-                        return -1;
730
-                }
731
-        }
732
-        if(tmb.t_suspend(msg, &tindex, &tlabel)<0)
733
-        {
734
-                LM_ERR("failed to suspend request processing\n");
735
-                return -1;
708
+	unsigned int tindex;
709
+	unsigned int tlabel;
710
+	tm_cell_t *t = 0;
711
+
712
+	if(tmb.t_suspend==NULL) {
713
+		LM_ERR("evapi async relay is disabled - tm module not loaded\n");
714
+		return -1;
715
+	}
716
+
717
+	t = tmb.t_gett();
718
+	if (t==NULL || t==T_UNDEFINED)
719
+	{
720
+		if(tmb.t_newtran(msg)<0)
721
+		{
722
+			LM_ERR("cannot create the transaction\n");
723
+			return -1;
724
+		}
725
+		t = tmb.t_gett();
726
+		if (t==NULL || t==T_UNDEFINED)
727
+		{
728
+			LM_ERR("cannot lookup the transaction\n");
729
+			return -1;
730
+		}
731
+	}
732
+	if(tmb.t_suspend(msg, &tindex, &tlabel)<0)
733
+	{
734
+		LM_ERR("failed to suspend request processing\n");
735
+		return -1;
736 736
 	}
737 737
 
738 738
 	LM_DBG("transaction suspended [%u:%u]\n", tindex, tlabel);
739 739
 
740 740
 
741
-        if(sdata->s==NULL || sdata->len == 0) {
742
-                LM_ERR("invalid data parameter\n");
743
-                return -1;
744
-        }
741
+	if(sdata->s==NULL || sdata->len == 0) {
742
+		LM_ERR("invalid data parameter\n");
743
+		return -1;
744
+	}
745 745
 
746
-        if(stag->s==NULL || stag->len == 0) {
747
-                LM_ERR("invalid tag parameter\n");
748
-                return -1;
749
-        }
746
+	if(stag->s==NULL || stag->len == 0) {
747
+		LM_ERR("invalid tag parameter\n");
748
+		return -1;
749
+	}
750 750
 
751
-        if(evapi_relay_unicast(sdata, stag)<0) {
752
-                LM_ERR("failed to relay event: [[%.*s]] to [%.*s] \n",
751
+	if(evapi_relay_unicast(sdata, stag)<0) {
752
+		LM_ERR("failed to relay event: [[%.*s]] to [%.*s] \n",
753 753
 				sdata->len, sdata->s, stag->len, stag->s);
754 754
 		return -2;
755 755
 	}