Module: kamailio Branch: master Commit: 81ee6f7e9eb23c24fb06dd2c201f3246d6044c4d URL: https://github.com/kamailio/kamailio/commit/81ee6f7e9eb23c24fb06dd2c201f3246...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-06-14T08:28:58+02:00
cdp: dedicated log messages for timeout events
---
Modified: src/modules/cdp/peerstatemachine.c
---
Diff: https://github.com/kamailio/kamailio/commit/81ee6f7e9eb23c24fb06dd2c201f3246... Patch: https://github.com/kamailio/kamailio/commit/81ee6f7e9eb23c24fb06dd2c201f3246...
---
diff --git a/src/modules/cdp/peerstatemachine.c b/src/modules/cdp/peerstatemachine.c index 9419b77134c..2cdba653d56 100644 --- a/src/modules/cdp/peerstatemachine.c +++ b/src/modules/cdp/peerstatemachine.c @@ -157,6 +157,9 @@ int sm_process( case Timeout: Error(p, p->I_sock); p->state = Closed; + LM_ERR("in state %s timeout event %s\n", + dp_states[p->state], dp_events[event - 101]); + goto error; default: LM_ERR("sm_process(): In state %s invalid event %s\n", dp_states[p->state], dp_events[event - 101]); @@ -344,6 +347,9 @@ int sm_process( if(p->R_sock >= 0) Error(p, p->R_sock); p->state = Closed; + LM_ERR("in state %s timeout event %s\n", + dp_states[p->state], dp_events[event - 101]); + goto error; default: LM_ERR("sm_process(): In state %s invalid event %s\n", dp_states[p->state], dp_events[event - 101]);