[asterisk-dev] Bug 8781 - G729 No path to translate.
Tim Panton
tim at mexuar.com
Tue Feb 13 13:38:02 MST 2007
On 13 Feb 2007, at 18:23, Andy Davidson wrote:
>
> Hi, Tim
>
> Thanks for your reply.
>
> On 13 Feb 2007, at 08:45, Tim Panton wrote:
>
>> On 11 Feb 2007, at 12:48, Andy Davidson wrote:
>>> On 11 Feb 2007, at 04:22, Paul Cadach wrote:
>>>> Did you try to disable G.711 on SIP leg?
>>> Yes (I put disallow=all, allow=g729 into the sip.conf for the
>>> handset device, and the same thing happens. Inbound calls work
>>> ok if I have allow=g729 and allow=ulaw, as they get presented in
>>> 711.)
>>> Making g.711 (well, ulaw and alaw) the preferred encoding to use
>>> makes everything work just fine.
>>> Anyone have an opinion that it is related to bug 8781 ?
>> what's in your IAX.conf ?
>> It looks (I don't read SIP well) as if your iax.conf is allowing
>> 729 on the outbound leg of the call,
>> if you post the IAX debug output I'll take a look at that too.
>
> Heh .. I had a feeling that I was going to be embarrassed then, but
> no - I am not trying to do the last leg of the call in g729. the
> iax.conf segment for this peer is :
>
> [thing]
> type=friend
> host=dynamic
> username=thinguser
> secret=thingsecret
> trunking=off
> bridging=on
> context=thing
> disallow=all
> allow=ulaw
> allow=alaw
> allow=gsm
>
>
> It even fails with an explicit :
>
> disallow=g729
>
> too.
>
>
> The IAX debug is
>
> billie*CLI>
> Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 000 Type: IAX
> Subclass: PING
> Timestamp: 20010ms SCall: 00002 DCall: 00000 [0.0.3.233:4569]
> Tx-Frame Retry[000] -- OSeqno: 003 ISeqno: 000 Type: IAX
> Subclass: LAGRQ
> Timestamp: 20013ms SCall: 00002 DCall: 00000 [0.0.3.233:4569]
> -- Executing [907738383650 at default:1] Set("SIP/
> andydesk-08213db8", "CALLERID(num)=+448447047047") in new stack
> -- Executing [907738383650 at default:2] Dial("SIP/
> andydesk-08213db8", "IAX2/thing:thingsecret at iax3.magrathea-
> telecom.co.uk/07738383650") in new stack
> -- Called thing:thingsecret at iax3.magrathea-telecom.co.uk/
> 07738383650
> Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX
> Subclass: NEW
> Timestamp: 00016ms SCall: 00006 DCall: 00000 [213.166.5.130:4569]
> VERSION : 2
> CALLED NUMBER : 07738383650
> CODEC_PREFS : (ulaw|g729|gsm)
> CALLING NUMBER : +448447047047
> CALLING PRESNTN : 0
> CALLING TYPEOFN : 0
> CALLING TRANSIT : 0
> CALLING NAME : Andy Davidson
> LANGUAGE : en
> USERNAME : thing
> FORMAT : 256
> CAPABILITY : 41942910
> ADSICPE : 2
> DATE TIME : 2007-02-13 18:21:14
>
> Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX
> Subclass: AUTHREQ
> Timestamp: 00011ms SCall: 00150 DCall: 00006 [213.166.5.130:4569]
> AUTHMETHODS : 3
> CHALLENGE : 101577978
> USERNAME : thing
> billie*CLI>
> Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX
> Subclass: AUTHREP
> Timestamp: 00029ms SCall: 00006 DCall: 00150 [213.166.5.130:4569]
> MD5 RESULT : 35f879655a4feeb08e7ad5a96232240f
>
> Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX
> Subclass: ACCEPT
> Timestamp: 00020ms SCall: 00150 DCall: 00006 [213.166.5.130:4569]
> FORMAT : 8
> billie*CLI>
> -- Call accepted by 213.166.5.130 (format alaw)
> -- Format for call is alaw
Well, that's weird and probably a bug....
You offer (ulaw|g729|gsm) to them
and they pick alaw !
But you aren't actually using the IAX friend (peer) entry for them
Try:
[magrathea]
type=peer
host=iax3.magrathea-telecom.co.uk
username=thinguser
secret=thingsecret
disallow=all
allow=alaw
notransfer=yes
and change your dialplan to say:
Dial(IAX2/magrathea/${EXTEN})
Tim Panton
www.mexuar.net
www.westhawk.co.uk/
More information about the asterisk-dev
mailing list