g729

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
[9999999999]
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[16670]: channel.c:2693 ast_channel_make_compatible: No path to translate from SIP/66.241.1.134-b7a0f458(4) to SIP/9729999999-031b(256)
Aug 22 08:40:14 WARNING[16670]: 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

allow=ulaw
allow=g729
allow=ulaw

Have you specified ulaw twice or is it a pasting typo

That was a pasting typo.

Have you confirmed that the caller is using the G.729 encoding for the
incoming call traffic.

You can type
sip debug

on the asterisk CLI for viewing the SIP Pakets which could be of help.

[quote=“vinod.vijayan”]Have you confirmed that the caller is using the G.729 encoding for the
incoming call traffic.

You can type
sip debug

on the asterisk CLI for viewing the SIP Pakets which could be of help.[/quote]

The call comes in through a PRI which is connected to a Cisco 3662 with HDV cards. The Cisco converts the call from TDM and has g729 capability. It works fine with calls being directed through Broadsoft - the calls are encoded with g729. When we push the calls through Asterisk, we have this issue.

please try to put the G729 first before the G711
i.e

disallow=all
allow=g729
allow=ulaw