With this changes, can say mobile numbers better.
This commit is contained in:
parent
1a43405bed
commit
cecd0f4505
|
@ -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);
|
||||
}
|
||||
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);
|
||||
fa_say_telephone(session,tosay + 2,say_args,args);
|
||||
}
|
||||
}
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue