[Asterisk-Users] overriding DTMF and codec from dialplan?

Michael Manousos manousos at inaccessnetworks.com
Mon Nov 29 01:58:02 MST 2004


Roy Sigurd Karlsbakk wrote:
>>>> is it possible, from an agi script or directly in extensions.conf, 
>>>> to override the DTMF and codec settings?
>>>
>>>
>>> to answer my own question
>>> SetVar(SIP_CODEC=g726)
>>> allowed me to force g726, but only on outgoing calls.
>>> when dialling in from the iax server, I do the same, setting the 
>>> codec etc, but this does not work. sip show channels only shows the 
>>> channel using alaw
>>
>>
>> Change this into SetVar(_SIP_CODEC=g726) and it will work.
> 
> 
> you sure?
> 
> sipgw1:/usr/src/asterisk # grep -r _SIP_CODEC .
> sipgw1:/usr/src/asterisk #

It's not so simple. Check
http://bugs.digium.com/bug_view_advanced_page.php?bug_id=0000928

for the details.


Michael.





More information about the asterisk-users mailing list