[Asterisk-Users] Setvar SIP_CODEC

Martin Pycko martinp at digium.com
Tue Oct 21 09:39:31 MST 2003


> [extensions.conf]
> exten => 123456,1,SetVar,SIP_CODEC=ulaw
> exten => 123456,2,Dial(${TRUNK}/${EXTEN})
>
> 	The problem is with the SetVar function, the debug shows that the
> function is executed, but after that, * sends the media capability to
> the phone with g729 as preferred codec.
SIP_CODEC is was supposed to only change the codec of the incoming call,
eg: asterisk responds with ANSWER with ulaw codec ...

But it won't change anything with the 2nd call.

regards
Martin




More information about the asterisk-users mailing list