Browse Source

dialog: improve warning message to help better identify lookup failures

(cherry picked from commit c4684574e0e0e1cca4c1489a16513182f821a643)
(cherry picked from commit 15fbad460e4cd3187ff9103440ecd41eb427cf3a)
Emmanuel Schmidbauer 5 years ago
parent
commit
56adcc0c2a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/modules/dialog/dlg_handlers.c

+ 4 - 2
src/modules/dialog/dlg_handlers.c

@@ -1299,10 +1299,12 @@ void dlg_onroute(struct sip_msg* req, str *route_params, void *param)
 			dlg = dlg_lookup(h_entry, h_id);
 			if (dlg==0) {
 				LM_WARN("unable to find dialog for %.*s "
-					"with route param '%.*s' [%u:%u]\n",
+					"with route param '%.*s' [%u:%u] "
+					"and call-id '%.*s'\n",
 					req->first_line.u.request.method.len,
 					req->first_line.u.request.method.s,
-					val.len,val.s, h_entry, h_id);
+					val.len,val.s, h_entry, h_id,
+					req->callid->body.len, req->callid->body.s);
 				if (seq_match_mode==SEQ_MATCH_STRICT_ID )
 					return;
 			} else {