mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 19:08:14 +00:00
Bug # 2181: Support the PING event in MGCP.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3072,9 +3072,12 @@ static int handle_request(struct mgcp_subchannel *sub, struct mgcp_request *req,
|
|||||||
if (strstr(p->curtone, "wt") && (ev[0] == 'A')) {
|
if (strstr(p->curtone, "wt") && (ev[0] == 'A')) {
|
||||||
memset(p->curtone, 0, sizeof(p->curtone));
|
memset(p->curtone, 0, sizeof(p->curtone));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!strcasecmp(ev, "T")) {
|
else if (!strcasecmp(ev, "T")) {
|
||||||
/* Digit timeout -- unimportant */
|
/* Digit timeout -- unimportant */
|
||||||
|
}
|
||||||
|
else if (!strcasecmp(ev, "ping")) {
|
||||||
|
/* ping -- unimportant */
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_NOTICE, "Received unknown event '%s' from %s@%s\n", ev, p->name, p->parent->name);
|
ast_log(LOG_NOTICE, "Received unknown event '%s' from %s@%s\n", ev, p->name, p->parent->name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user