diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-28 19:41:18 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-28 19:41:18 +0000 |
commit | 38918c21db9e262788d6191a1f32375a3abe0c8b (patch) | |
tree | f44e8d9dd8e7f22293e6d3740cac48d662e21778 /apps/app_disa.c | |
parent | e5e7049eee49a58707344530a237b3b24d448633 (diff) |
Update DISA to be internationalized (bug #2284)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3672 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_disa.c')
-rwxr-xr-x | apps/app_disa.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/app_disa.c b/apps/app_disa.c index 11c97661d..4d9167350 100755 --- a/apps/app_disa.c +++ b/apps/app_disa.c @@ -92,6 +92,16 @@ int ms; return(ms); } +static void play_dialtone(struct ast_channel *chan) +{ + const struct tone_zone_sound *ts = NULL; + ts = ast_get_indication_tone(chan->zone, "dial"); + if (ts) + ast_playtones_start(chan, 0, ts->data, 0); + else + ast_tonepair_start(chan, 350, 440, 0, 0); +} + static int disa_exec(struct ast_channel *chan, void *data) { int i,j,k,x; @@ -155,7 +165,7 @@ static int disa_exec(struct ast_channel *chan, void *data) } gettimeofday(&lastdigittime,NULL); - ast_tonepair_start(chan, 350, 440, 0, 0); + play_dialtone(chan); for(;;) { @@ -255,7 +265,7 @@ static int disa_exec(struct ast_channel *chan, void *data) } /* password good, set to dial state */ ast_log(LOG_DEBUG,"DISA on chan %s password is good\n",chan->name); - ast_tonepair_start(chan, 350, 440, 0, 0); + play_dialtone(chan); k = 1; i = 0; /* re-set buffer pointer */ |