[Asterisk-Users] overriding DTMF and codec from dialplan?
Brian Capouch
brianc at palaver.net
Sat Nov 27 10:48:17 MST 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 #
>
I don't think the leading underscore is part of the source. . and it's
defined in the channels dir:
/usr/src/asterisk/channels# grep SIP_CODEC *
chan_sip.c:
codec=pbx_builtin_getvar_helper(p->owner,"SIP_CODEC");
chan_sip.c: ast_log(LOG_NOTICE, "Changing
codec to '%s' for this call because of ${SIP_CODEC) variable\n",codec);
chan_sip.c: ast_log(LOG_NOTICE,
"Ignoring ${SIP_CODEC} variable because it is not shared by both ends.\n");
chan_sip.c: } else ast_log(LOG_NOTICE, "Ignoring
${SIP_CODEC} variable because of unrecognized/not configured codec
(check allow/disallow in sip.conf): %s\n",codec);
B.
More information about the asterisk-users
mailing list