I purchased 10 g729 licenses and then added "allow=g729 to my sip.conf under [general], [ip address of my gateway], and [my phone] as shown below. I can make outbound calls just fine and mu gateway (Cisco 3662 with HDV card) shows the call using g729. On inbound calls, the call can’t be answered and the asterisk messages on the console are shown below. I had to remove the allow=g729 from the context for my phone. Now all my calls are g711u.
So, with the allow=g729 in the sip.conf, outgoing calls are g729 and inbound can’t be answered. Any ideas on how to make this work?
Snip from my sip.conf file:
[general] port=5060 port=5061 bindaddr=66.x.x.x disallow=all allow=ulaw allow=g729 canreinvite=no tos=0xB8 ; Router with the PRI card [66.x.x.x] context=default type=friend host=66.x.x.x dtmfmode=rfc2833 disallow=all allow=ulaw allow=g729 ;my phone  context=MAXUP type=friend disallow=all allow=ulaw allow=g729 allow=ulaw //snip . . canreinvite=yes qualify=yes
Asterisk console message showing inbound call not able to be answered.
Aug 22 08:40:14 WARNING: channel.c:2693 ast_channel_make_compatible: No path to translate from SIP/220.127.116.11-b7a0f458(4) to SIP/9729999999-031b(256) Aug 22 08:40:14 WARNING: app_dial.c:1586 dial_exec_full: Had to drop call because I couldn't make SIP/66.x.x.x-b7a0f458 compatible with SIP/9729999999-031b