mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-10 03:41:16 +00:00
debug all media type
This commit is contained in:
parent
0586f49420
commit
3bbb60ffaa
@ -3663,7 +3663,7 @@ SWITCH_STANDARD_API(uuid_video_refresh_function)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define DEBUG_MEDIA_SYNTAX "<uuid> <read|write|both|vread|vwrite|vboth> <on|off>"
|
#define DEBUG_MEDIA_SYNTAX "<uuid> <read|write|both|vread|vwrite|vboth|all> <on|off>"
|
||||||
SWITCH_STANDARD_API(uuid_debug_media_function)
|
SWITCH_STANDARD_API(uuid_debug_media_function)
|
||||||
{
|
{
|
||||||
char *mycmd = NULL, *argv[3] = { 0 };
|
char *mycmd = NULL, *argv[3] = { 0 };
|
||||||
@ -3687,7 +3687,18 @@ SWITCH_STANDARD_API(uuid_debug_media_function)
|
|||||||
msg.from = __FILE__;
|
msg.from = __FILE__;
|
||||||
|
|
||||||
if ((lsession = switch_core_session_locate(argv[0]))) {
|
if ((lsession = switch_core_session_locate(argv[0]))) {
|
||||||
|
if (!strcasecmp(argv[1], "all")) {
|
||||||
|
msg.string_array_arg[0] = "both";
|
||||||
|
}
|
||||||
|
|
||||||
|
again:
|
||||||
status = switch_core_session_receive_message(lsession, &msg);
|
status = switch_core_session_receive_message(lsession, &msg);
|
||||||
|
|
||||||
|
if (status == SWITCH_STATUS_SUCCESS && !strcasecmp(argv[1], "all") && !strcmp(msg.string_array_arg[0], "both")) {
|
||||||
|
msg.string_array_arg[0] = "vboth";
|
||||||
|
goto again;
|
||||||
|
}
|
||||||
|
|
||||||
switch_core_session_rwunlock(lsession);
|
switch_core_session_rwunlock(lsession);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user