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
This commit is contained in:
Pau Espin 2020-09-21 11:43:41 +02:00
parent 1dc2dcebbf
commit 19539866e5
1 changed files with 5 additions and 0 deletions

View File

@ -524,6 +524,7 @@ static int set_local_cx_options(void *ctx, struct mgcp_lco *lco,
{
char *lco_id;
char codec[17];
char nt[17];
int len;
if (!options)
@ -562,6 +563,10 @@ static int set_local_cx_options(void *ctx, struct mgcp_lco *lco,
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",