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

2004-11-29 Thread Brian West
OH But it is just that simple. You also have: -= Info about application 'ImportVar' =- [Synopsis]: Set variable to value [Description]: ImportVar(#n=channel|variable): Sets variable n to variable as evaluated on the specified channel (instead of current). If prefixed with _, single

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

2004-11-29 Thread Michael Manousos
Brian West wrote: OH But it is just that simple. You also have: -= Info about application 'ImportVar' =- [Synopsis]: Set variable to value [Description]: ImportVar(#n=channel|variable): Sets variable n to variable as evaluated on the specified channel (instead of current). If prefixed with

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

2004-11-27 Thread Roy Sigurd Karlsbakk
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

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

2004-11-27 Thread Peter Svensson
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

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

2004-11-27 Thread Brian Capouch
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 # I don't think the leading underscore is part of the source. . and it's defined in the channels dir:

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

2004-11-26 Thread Roy Sigurd Karlsbakk
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

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

2004-11-26 Thread Michael Manousos
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,