[Asterisk-Dev] Re: Codecs G729 and G723.1

Kevin P. Fleming kpfleming at backtobasicsmgmt.com
Thu Jun 24 18:13:34 MST 2004


Sudhir Kumar wrote:

>    extensions.conf:
>       ....
>       exten => _01191.,1,setvar(SIP_CODEC=g723.1)
>       exten => _01191.,2,Dial(H323/${EXTEN:3}@ipaddress)
>       ....
> 
> So that for calls starting with 01191.. g723.1 is picked which will go
> through in pass-through.
> 
> For some reason, setvar has no effect. Is there any other way of picking
> up the codec for the calling party depending on the called number?

I am running into the same problem, with g729 as the preferred codec and 
needing to use G711u for access to VoiceMailMain and other bits and 
pieces. Using "setvar(SIP_CODEC=ulaw)" does have an effect, but doesn't 
accomplish anything useful.



More information about the asterisk-dev mailing list