[Asterisk-Users] Has anyone gotten SIP_CODEC= to work?

Dan Fernandez
Mon, 05 May 2003 13:33:05 -0000

Basically, since I?d like to use g723 for sip communication between
endpoints and * does not support it, I need to change codecs when a user
wants to check voicemail, use a zap channel, etc.

I have configured sip.conf and extensions.conf as below but when I try it I
keep getting the following:

chan_sip.c ...(sip_answer):Changing codec to GSM for this call because of
${SIP_CODEC} variable
channel.c ..(ast_set_write_format): Unable to find a path from 2 to 1.

Any ideas?



sip.conf
disallow=all
allow=g723.1
allow=gsm


extensions.conf

exten => 1000,1,SetVar,SIP_CODEC=gsm
exten => 1000,2,VoiceMailMain