mgw: Avoid logging notice message each time we receive nt param in LCO
We don't really use it so far and it doesn't deserve a NOTICE message.
Change-Id: I058dc37fe6229e879284a8f5e7677d6016129c47
diff --git a/src/libosmo-mgcp/mgcp_protocol.c b/src/libosmo-mgcp/mgcp_protocol.c
index 5523761..902c079 100644
--- a/src/libosmo-mgcp/mgcp_protocol.c
+++ b/src/libosmo-mgcp/mgcp_protocol.c
@@ -524,6 +524,7 @@
{
char *lco_id;
char codec[17];
+ char nt[17];
int len;
if (!options)
@@ -562,6 +563,10 @@
osmo_str_toupper_buf(lco->codec, len + 1, codec);
}
break;
+ case 'n':
+ if (lco_id[1] == 't' && sscanf(lco_id + 2, ":%16[^,]", nt) == 1)
+ break;
+ /* else: fall throught to print notice log */
default:
LOGP(DLMGCP, LOGL_NOTICE,
"LCO: unhandled option: '%c'/%d in \"%s\"\n",