This commit is contained in:
hehehe777 2025-01-17 16:41:08 +00:00 committed by GitHub
commit 88e417e627
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 6 deletions

View File

@ -1905,6 +1905,7 @@ SWITCH_STANDARD_APP(conference_function)
char *flags_prefix = "+flags{";
char *bridgeto = NULL;
char *profile_name = NULL;
char *profile_name_and_pin = NULL;
switch_xml_t cxml = NULL, cfg = NULL, profiles = NULL;
const char *flags_str, *v_flags_str;
const char *cflags_str, *v_cflags_str;
@ -1999,18 +2000,20 @@ SWITCH_STANDARD_APP(conference_function)
while (*conference_name == ' ') {
conference_name++;
}
/* checking for pin only after profile_name */
if ((profile_name_and_pin = strrchr(conference_name, '@'))) {
*profile_name_and_pin++ = '\0';
} else {
profile_name_and_pin = "default";
}
/* is there a conference pin ? */
if ((dpin = strchr(conference_name, '+'))) {
if ((dpin = strchr(profile_name_and_pin, '+'))) {
*dpin++ = '\0';
} else dpin = "";
/* is there profile specification ? */
if ((profile_name = strrchr(conference_name, '@'))) {
*profile_name++ = '\0';
} else {
profile_name = "default";
}
profile_name = profile_name_and_pin;
#if 0
if (0) {