git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7928 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-03-19 15:56:24 +00:00
parent b5eac70b55
commit 391afc48e5
1 changed files with 7 additions and 5 deletions

View File

@ -702,16 +702,18 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
char *dup;
if (!strncasecmp(file, "phrase:", 7)) {
char *arg;
char *arg = NULL;
char *lang = NULL;
alt = file + 7;
dup = switch_core_session_strdup(session, alt);
if ((arg = strchr(dup, ':'))) {
*arg++ = '\0';
if ((lang = strchr(arg, ':'))) {
*lang++ = '\0';
if ((lang = strchr(dup, ':'))) {
*lang++ = '\0';
if ((arg = strchr(lang, ':'))) {
*arg++ = '\0';
}
}
if (dup) {
return switch_ivr_phrase_macro(session, dup, arg, lang, args);
} else {