From b65688c5a4c70912e8f551ae8b7e1651334882ad Mon Sep 17 00:00:00 2001 From: Seven Du Date: Sat, 5 Nov 2016 20:42:24 +0800 Subject: [PATCH] FS-9700 #resolve --- src/mod/applications/mod_httapi/mod_httapi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index 7fb8926315..74de05e842 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -25,6 +25,7 @@ * * Anthony Minessale II * Raymond Chandler + * Seven Du * * mod_httapi.c -- HT-TAPI Hypertext Telephony API * @@ -710,6 +711,8 @@ static switch_status_t parse_conference(const char *tag_name, client_t *client, char *str; char *dup, *p; const char *profile_name = switch_xml_attr(tag, "profile"); + const char *pin = switch_xml_attr(tag, "pin"); + const char *flags = switch_xml_attr(tag, "flags"); if (!client->profile->perms.conference.enabled) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Permission Denied!\n"); @@ -728,6 +731,10 @@ static switch_status_t parse_conference(const char *tag_name, client_t *client, } str = switch_core_session_sprintf(client->session, "%s@%s", dup, profile_name); + + if (!zstr(pin)) str = switch_core_session_sprintf(client->session, "%s+%s", str, pin); + if (!zstr(flags)) str = switch_core_session_sprintf(client->session, "%s+flags{%s}", str, flags); + switch_core_session_execute_application(client->session, "conference", str); return SWITCH_STATUS_SUCCESS;