With this changes, can say mobile numbers better.
This commit is contained in:
parent
1a43405bed
commit
cecd0f4505
|
@ -502,8 +502,16 @@ static switch_status_t fa_say_telephone(switch_core_session_t *session, char *to
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
play_group(SSM_PRONOUNCED,0,tosay[0] - 48,tosay[1] - 48,NULL,session,args);
|
if ( tosay_length == 10 && (tosay[0] != '2' || tosay[1] != '1') )
|
||||||
fa_say_telephone(session,tosay + 2,say_args,args);
|
{
|
||||||
|
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;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue