29 Mar
2010
29 Mar
'10
4:02 p.m.
Hello, I'm using local_stream:// as our music on hold source. I have both 8000 KHz and 16000 KHz files encoded so that I can play them at the native rate. We have some endpoints that can only do PCMU and others that can do higher rates. I want to set music on hold for a channel and have it automatically pick the appropriate stream based on the channel's native rate, just like the voice prompts do. I tried creating a stream for each rate, like rock-8000 and rock-16000 and then set the channel's music on hold variable to local_stream://rock-${read_rate} but the read rate hasn't been negotiated when this is set in the dialplan. Any suggestions? -Tim