mgcp_client: guard against duplicate CI requests
Change-Id: I78da85e7ad19288c610f3d147e5af7021043a589
This commit is contained in:
parent
95b39b5b04
commit
0e501c5adb
|
@ -626,6 +626,11 @@ void osmo_mgcpc_ep_ci_request(struct osmo_mgcpc_ep_ci *ci,
|
|||
LOGP(DLMGCP, LOGL_ERROR, "Invalid MGW endpoint request: no ci\n");
|
||||
goto dispatch_error;
|
||||
}
|
||||
if (ci->pending) {
|
||||
LOG_CI(ci, LOGL_ERROR, "verb %s is already pending, wait for notify event before requesting %s\n",
|
||||
osmo_mgcp_verb_name(ci->verb), osmo_mgcp_verb_name(verb));
|
||||
goto dispatch_error;
|
||||
}
|
||||
if (!verb_info && verb != MGCP_VERB_DLCX) {
|
||||
LOG_CI(ci, LOGL_ERROR, "Invalid MGW endpoint request: missing verb details for %s\n",
|
||||
osmo_mgcp_verb_name(verb));
|
||||
|
|
Loading…
Reference in New Issue