[asterisk-users] parkcall: How to remove announcement.

Danny Nicholas danny at debsinc.com
Mon Aug 16 16:08:16 CDT 2010


From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Philipp von
Klitzing
Subject: Re: [asterisk-users] parkcall: How to remove announcement.

>>Hi!

> How can I remove the "Playing digits" from parkcall application?

>>In general you can address problems like this by creating your own set of 
sounds files where the obstructing files are either simply missing or 
replaced by silence. Use Set(LANGUAGE) right before the action (here: 
parking the call) and create your own imaginary language strucutre below 
/var/lib/asterisk/sounds/.

>>Philipp

Not a bad suggestion Phillipp, but you "lose points" for suggesting missing
files as OP wanted a way to reduce/eliminate warning messages.  But to
elaborate on this, OP could set up the "imaginary" language as any two
letter code that asterisk recognizes and just copy 0.gsm thru 9.gsm from
/var/lib/asterisk/sounds/digits/en to /var/lib/asterisk/sounds/digits/xx
where xx is the imaginary language (fr - French, gr - german, es - Spanish
for starters). Of course you would want to overlay these 10 files with a
"silence" file.

Then in the dialplan
Exten => _8XX,1,Set(CHANNEL(language)=xx)
exten => _8XX,n,ParkAndAnnounce(|1000|local/10 at default|)            
Exten => _8XX,n,Set(CHANNEL(language)=es) - without this, any further sounds
in the call would be in xx language.




More information about the asterisk-users mailing list