don't seg if we forget milliseconds on pause tag
This commit is contained in:
parent
9bf0bd8238
commit
86242db094
|
@ -422,8 +422,10 @@ static switch_status_t parse_playback(const char *tag_name, client_t *client, sw
|
||||||
speak = 1;
|
speak = 1;
|
||||||
} else if (!strcasecmp(tag_name, "pause")) {
|
} else if (!strcasecmp(tag_name, "pause")) {
|
||||||
const char *ms_ = switch_xml_attr(tag, "milliseconds");
|
const char *ms_ = switch_xml_attr(tag, "milliseconds");
|
||||||
pause = atoi(ms_);
|
if (!zstr(ms_)) {
|
||||||
if (pause < 0) pause = 1000;
|
pause = atoi(ms_);
|
||||||
|
}
|
||||||
|
if (pause <= 0) pause = 1000;
|
||||||
} else if (!strcasecmp(tag_name, "playback")) {
|
} else if (!strcasecmp(tag_name, "playback")) {
|
||||||
sp_engine = switch_xml_attr(tag, "asr-engine");
|
sp_engine = switch_xml_attr(tag, "asr-engine");
|
||||||
sp_grammar = switch_xml_attr(tag, "asr-grammar");
|
sp_grammar = switch_xml_attr(tag, "asr-grammar");
|
||||||
|
|
Loading…
Reference in New Issue