[sr-dev] git:master:7dc45000: core: kemi - warning when using an unsupported method flag for is_method_in()

Daniel-Constantin Mierla miconda at gmail.com
Sat Aug 24 16:23:16 CEST 2019


Module: kamailio
Branch: master
Commit: 7dc450006743ea160864ce5583a4494fb1033e9e
URL: https://github.com/kamailio/kamailio/commit/7dc450006743ea160864ce5583a4494fb1033e9e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-08-24T16:22:16+02:00

core: kemi - warning when using an unsupported method flag for is_method_in()

---

Modified: src/core/kemi.c

---

Diff:  https://github.com/kamailio/kamailio/commit/7dc450006743ea160864ce5583a4494fb1033e9e.diff
Patch: https://github.com/kamailio/kamailio/commit/7dc450006743ea160864ce5583a4494fb1033e9e.patch

---

diff --git a/src/core/kemi.c b/src/core/kemi.c
index f7c0086eaf..286e81fed0 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -875,6 +875,8 @@ static int sr_kemi_core_is_method_in(sip_msg_t *msg, str *vmethod)
 					return SR_KEMI_TRUE;
 				}
 			break;
+			default:
+				LM_WARN("unsupported method flag: %c\n", vmethod->s[i]);
 		}
 	}
 	return SR_KEMI_FALSE;




More information about the sr-dev mailing list