mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
add some more reporting data to logs
This commit is contained in:
@@ -2825,6 +2825,21 @@ SWITCH_DECLARE(int) switch_split_user_domain(char *in, char **user, char **domai
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(char *) switch_uuid_str(char *buf, switch_size_t len)
|
||||
{
|
||||
switch_uuid_t uuid;
|
||||
|
||||
if (len < (SWITCH_UUID_FORMATTED_LENGTH + 1)) {
|
||||
switch_snprintf(buf, len, "INVALID");
|
||||
} else {
|
||||
switch_uuid_get(&uuid);
|
||||
switch_uuid_format(buf, &uuid);
|
||||
}
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
/* For Emacs:
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
|
Reference in New Issue
Block a user