[asterisk-users] How to pick a codec on the fly

Daniel Tryba daniel at tryba.nl
Mon Sep 27 13:17:08 CDT 2010


On Mon, Sep 27, 2010 at 01:02:04PM -0500, Danny Nicholas wrote:
>           I'm trying to test an IVR system with recorded prompts and would
> like to be able to call 1234 and have the codec be gsm, 2234 slin, 3234
> ulaw, etc.  I know I can set up 3 users where #1 is gsm, #2 is ulaw and #3
> is slin;  Need it the other way so I can do DAHDI--> IAX testing.

exten => 1234,1,Set(_SIP_CODEC=alaw)
exten => 1234,n,Goto(0234,1)
exten => 2234,1,Set(_SIP_CODEC=slin)
exten => 2234,n,Goto(0234,1)

Should do the trick.

-- 

   Daniel Tryba



More information about the asterisk-users mailing list