Problem with Queue called direct from Inbound

Hi, it is my first post, so I will try do my best.

I have a Trunk conncetion (using g729) which I filled down as destination a Queue.

Calling the Queue from internal extensions, it rings the agents phone from the queue. However, calling my DID (Inbound from my trunk) from outside, it do not ring the agents phone. Interesting fact, is that if I change the Inbound Destination from Queue to any extension it rings fine.

First, looking the log I thought it was a codec problem because this msgs:

channel.c: Unable to find a codec translation path from (g729) to (slin)
indications.c: Unable to set ‘Local/1012@from-queue-00000022;2’ to signed linear format (write)
app_playtones.c: Unable to start playtones

But digging deeper on internet, I started to think it was not a codec case, and a context one.

To go over the problem, I created a new extention, which I never will use, and I sending when not reachable to the queue. Calling my DID, using this extension as the Inbound destination, it rings the Queue agents.

I solved the problem, however I don´t think it was a elegant solution, mainly because I didn´t understand what happens. My gut feelings says to me that it is some context issue. Could someone explain this issue better?

It is a codec problem in that you do not have any valid licences for g729, the direct extension calls work by “passing through” the codec to a licensed phone.

No, I have a g729 working perfectly. And tested in the commad g729 codec licenses.

0/0 encoders/decoders of 1 licensed channels are currently in use

And when I call or receive a call from trunk it uses the codec (1/1 encoders/decoders).

Why did my work around was succeeded?

I am not sure, but post your output of:-

core show translation

Sorry by the delay, I’ve been busy.
I don´t think was codec again. I smell something context related, mainly Freepbx queue context with from-trunk. Something I am missing. Is there any idea?
It is not a simple problem.

core show translation:

Translation times between formats (in microseconds) for one second of data
Source Format (Rows) Destination Format (Columns)

gsm ulaw alaw g726 adpcm slin lpc10 g729 speex speex16 ilbc g726aal2 g722 slin16 testlaw speex32 slin32
gsm - 15000 15000 15000 15000 9000 15000 15000 15000 32250 15000 15000 17250 26250 15000 - -
ulaw 15000 - 9150 15000 15000 9000 15000 15000 15000 32250 15000 15000 17250 26250 15000 - -
alaw 15000 9150 - 15000 15000 9000 15000 15000 15000 32250 15000 15000 17250 26250 15000 - -
g726 15000 15000 15000 - 15000 9000 15000 15000 15000 32250 15000 15000 17250 26250 15000 - -
adpcm 15000 15000 15000 15000 - 9000 15000 15000 15000 32250 15000 15000 17250 26250 15000 - -
slin 6000 6000 6000 6000 6000 - 6000 6000 6000 23250 6000 6000 8250 17250 6000 - -
lpc10 15000 15000 15000 15000 15000 9000 - 15000 15000 32250 15000 15000 17250 26250 15000 - -
g729 15000 15000 15000 15000 15000 9000 15000 - 15000 32250 15000 15000 17250 26250 15000 - -
speex 15000 15000 15000 15000 15000 9000 15000 15000 - 32250 15000 15000 17250 26250 15000 - -
speex16 30600 30600 30600 30600 30600 24600 30600 30600 30600 - 30600 30600 15000 9000 30600 - -
ilbc 15000 15000 15000 15000 15000 9000 15000 15000 15000 32250 - 15000 17250 26250 15000 - -
g726aal2 15000 15000 15000 15000 15000 9000 15000 15000 15000 32250 15000 - 17250 26250 15000 - -
g722 15600 15600 15600 15600 15600 9600 15600 15600 15600 15000 15600 15600 - 9000 15600 - -
slin16 21600 21600 21600 21600 21600 15600 21600 21600 21600 6000 21600 21600 6000 - 21600 - -
testlaw 15000 15000 15000 15000 15000 9000 15000 15000 15000 32250 15000 15000 17250 26250 - - -
speex32 - - - - - - - - - - - - - - - - 9000
slin32 - - - - - - - - - - - - - - - 6000 -

if it is hard to see translation time between my g729 and Slin is 9000 ms. So the coded is there, working fine, installed, and in the transalation table, even though I am receiving the following log lines:

[2014-03-13 18:01:41] WARNING[31598][C-0000001f] channel.c: Unable to find a codec translation path from (g729) to (slin)
[2014-03-13 18:01:41] ERROR[31598][C-0000001f] channel.c: Could not set write format to SLINEAR

This lines were shown when I call the trunk using g729 codec, and try to press a number (for instance, press *2 to transfer) from the internal extension.

Please, I am fighting against this erros for weeks. Has someone any ideas?