|
|
@ -2478,12 +2478,14 @@ static void handle_response(struct mgcp_endpoint *p, struct mgcp_subchannel *sub
|
|
|
|
if (strncasecmp(v, p->sub->cxident, len) &&
|
|
|
|
if (strncasecmp(v, p->sub->cxident, len) &&
|
|
|
|
strncasecmp(v, p->sub->next->cxident, len)) {
|
|
|
|
strncasecmp(v, p->sub->next->cxident, len)) {
|
|
|
|
/* connection id not found. delete it */
|
|
|
|
/* connection id not found. delete it */
|
|
|
|
char cxident[80];
|
|
|
|
char cxident[80] = "";
|
|
|
|
memcpy(cxident, v, len);
|
|
|
|
|
|
|
|
cxident[len] = '\0';
|
|
|
|
if (len > (sizeof(cxident) - 1))
|
|
|
|
|
|
|
|
len = sizeof(cxident) - 1;
|
|
|
|
|
|
|
|
ast_copy_string(cxident, v, len);
|
|
|
|
if (option_verbose > 2) {
|
|
|
|
if (option_verbose > 2) {
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Non existing connection id %s on %s@%s \n",
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Non existing connection id %s on %s@%s \n",
|
|
|
|
cxident, p->name, gw->name);
|
|
|
|
cxident, p->name, gw->name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
transmit_connection_del_w_params(p, NULL, cxident);
|
|
|
|
transmit_connection_del_w_params(p, NULL, cxident);
|
|
|
|
}
|
|
|
|
}
|
|
|
|