diff --git a/app/voicemails/app_config.php b/app/voicemails/app_config.php index 485d69b0b6..96593d4a29 100644 --- a/app/voicemails/app_config.php +++ b/app/voicemails/app_config.php @@ -450,7 +450,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the greeting id."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_alternate_greet_id"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Used to provide an alternate id for the voicemail announcement."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_recording_instructions"; diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index 005173006d..00394248e2 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -167,7 +167,7 @@ $array['voicemails'][0]['voicemail_id'] = $voicemail_id; $array['voicemails'][0]['voicemail_password'] = $voicemail_password; $array['voicemails'][0]['greeting_id'] = $greeting_id != '' ? $greeting_id : null; - $array['voicemails'][0]['voicemail_alternate_greet_id'] = $voicemail_alternate_greet_id != '' ? $voicemail_alternate_greet_id : null; + $array['voicemails'][0]['voicemail_alternate_greet_id'] = $voicemail_alternate_greet_id != '' ? preg_replace('/[^0-9+]/', '', $voicemail_alternate_greet_id) : null; $array['voicemails'][0]['voicemail_mail_to'] = $voicemail_mail_to; $array['voicemails'][0]['voicemail_sms_to'] = $voicemail_sms_to; $array['voicemails'][0]['voicemail_transcription_enabled'] = $voicemail_transcription_enabled;