I have two peers, both alaw- and g729-capable, with these lines in sip.conf
disallow=all allow=alaw allow=g729
I expect that it should work without any transcoding. I’ve tested two g729-only gateways on Asterisk without codec_g729.so and everything was fine… But here it doesn’t work! When I unload codec_g729.so I see this:
[May 29 18:00:50] WARNING[C-00000207]: channel.c:5105 ast_write: Codec mismatch on channel SIP/users-00000415 setting write format to g729 from alaw native formats (alaw) [May 29 18:00:50] WARNING[C-00000207]: channel.c:5333 set_format: Unable to find a codec translation path from (alaw) to (g729) [May 29 18:00:50] WARNING[C-00000207]: chan_sip.c:7301 sip_write: Asked to transmit frame type g729, while native formats is (alaw) read/write = alaw/alaw
Why?! How to avoid this behavior? It’s just totally meaningless - both peers can use alaw as well as g729.