Roy Sigurd Karlsbakk
2004-Nov-26 04:00 UTC
[Asterisk-Users] overriding DTMF and codec from dialplan?
hi is it possible, from an agi script or directly in extensions.conf, to override the DTMF and codec settings? roy
Roy Sigurd Karlsbakk
2004-Nov-26 05:58 UTC
[Asterisk-Users] overriding DTMF and codec from dialplan?
> 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 roy
Michael Manousos
2004-Nov-26 06:06 UTC
[Asterisk-Users] overriding DTMF and codec from dialplan?
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 alawChange this into SetVar(_SIP_CODEC=g726) and it will work.> > roy >Michael.
Roy Sigurd Karlsbakk
2004-Nov-27 04:22 UTC
[Asterisk-Users] overriding DTMF and codec from dialplan?
>>> 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 # roy
Peter Svensson
2004-Nov-27 04:33 UTC
[Asterisk-Users] overriding DTMF and codec from dialplan?
On Sat, 27 Nov 2004, Roy Sigurd Karlsbakk wrote:> > 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 #The leading underscore means the variable will be inherited by the outgoing channel. Did you try it? Peter