mod_voicemail_ivr: Fix a segfault on non authenticated user and changed from 3 to 3000 the dtmf digit wait since it in milisecond

This commit is contained in:
Marc Olivier Chouinard 2012-03-10 22:56:29 -05:00
parent 8331f4a0b5
commit 5e4a514531
2 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<profile name="default">
<settings>
<param name="IVR-Maximum-Attempts" value="3" />
<param name="IVR-Entry-Timeout" value="3" />
<param name="IVR-Entry-Timeout" value="3000" />
<param name="Record-Format" value="wav" />
<!--<param name="Record-Sample-Rate" value="8000" />-->
<param name="Record-Silence-Hits" value="4" />

View File

@ -93,6 +93,11 @@ void menu_init(vmivr_profile_t *profile, vmivr_menu_t *menu) {
}
}
}
if (!menu->phrase_params) {
switch_event_create(&menu->phrase_params, SWITCH_EVENT_REQUEST_PARAMS);
}
end:
if (xml)
switch_xml_free(xml);