With this changes, can say mobile numbers better.

This commit is contained in:
Mahdi Moradi 2012-10-24 18:59:36 +03:30
parent 1a43405bed
commit cecd0f4505
1 changed files with 10 additions and 2 deletions

View File

@ -501,10 +501,18 @@ static switch_status_t fa_say_telephone(switch_core_session_t *session, char *to
fa_say_telephone(session,tosay + 3,say_args,args); fa_say_telephone(session,tosay + 3,say_args,args);
} }
else else
{
if ( tosay_length == 10 && (tosay[0] != '2' || tosay[1] != '1') )
{
play_group(SSM_PRONOUNCED,tosay[0] - 48,tosay[1] - 48,tosay[2] - 48,NULL,session,args);
fa_say_telephone(session,tosay + 3,say_args,args);
}
else
{ {
play_group(SSM_PRONOUNCED,0,tosay[0] - 48,tosay[1] - 48,NULL,session,args); play_group(SSM_PRONOUNCED,0,tosay[0] - 48,tosay[1] - 48,NULL,session,args);
fa_say_telephone(session,tosay + 2,say_args,args); fa_say_telephone(session,tosay + 2,say_args,args);
} }
}
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }