Browse code

dialog: log spiral detection and callid

Julien Chavanton authored on 10/09/2018 04:31:32
Showing 1 changed files
... ...
@@ -790,9 +790,11 @@ void dlg_onreq(struct cell* t, int type, struct tmcb_params *param)
790 790
 
791 791
 	if (dlg!=NULL) {
792 792
 		if (!initial_cbs_inscript) {
793
-			if (spiral_detected == 1)
793
+			if (spiral_detected == 1) {
794 794
 				run_dlg_callbacks( DLGCB_SPIRALED, dlg,
795 795
 						req, NULL, DLG_DIR_DOWNSTREAM, 0);
796
+				LM_NOTICE("spiral_detected: ci[%.*s]\n", dlg->callid.len, dlg->callid.s);
797
+			}
796 798
 			else if (spiral_detected == 0)
797 799
 				run_create_callbacks(dlg, req);
798 800
 		}