Browse code

siptrace: Trace in-dialog ACK

Stefan Mititelu authored on 02/08/2022 13:01:55
Showing 1 changed files
... ...
@@ -2007,6 +2007,13 @@ static void trace_dialog(struct dlg_cell* dlg, int type, struct dlg_cb_params *p
2007 2007
 		return;
2008 2008
 	}
2009 2009
 
2010
+	/* this will trace in-dialog ACK */
2011
+	if(dlgb.register_dlgcb(dlg, DLGCB_CONFIRMED,
2012
+				trace_dialog_transaction, xavp->val.v.vptr, 0) != 0) {
2013
+		LM_ERR("Failed to register DLGCB_CONFIRMED callback!\n");
2014
+		return;
2015
+	}
2016
+
2010 2017
 	if(dlgb.register_dlgcb(dlg, DLGCB_TERMINATED,
2011 2018
 				trace_dialog_transaction, xavp->val.v.vptr, trace_free_info) != 0) {
2012 2019
 		LM_ERR("Failed to register DLGCB_TERMINATED callback!\n");