Browse code

dialog: log spiral detection and callid

Julien Chavanton authored on 10/09/2018 04:31:32
Showing 1 changed files
... ...
@@ -781,9 +781,11 @@ void dlg_onreq(struct cell* t, int type, struct tmcb_params *param)
781 781
 
782 782
 	if (dlg!=NULL) {
783 783
 		if (!initial_cbs_inscript) {
784
-			if (spiral_detected == 1)
784
+			if (spiral_detected == 1) {
785 785
 				run_dlg_callbacks( DLGCB_SPIRALED, dlg,
786 786
 						req, NULL, DLG_DIR_DOWNSTREAM, 0);
787
+				LM_NOTICE("spiral_detected: ci[%.*s]\n", dlg->callid.len, dlg->callid.s);
788
+			}
787 789
 			else if (spiral_detected == 0)
788 790
 				run_create_callbacks(dlg, req);
789 791
 		}