[Asterisk-Users] IAX2: Don't know any of 0xf800 formats

Ryan Courtnage ryan-lists at voxbox.ca
Wed Dec 7 16:26:03 MST 2005


On Wed, 2005-07-12 at 16:41 -0600, Eric "ManxPower" Wieling wrote:
> Sounds like you have an allow=all somewhere.

Thanks for the response.

No "allow=all" anywhere.  You got me thinking though, and it appears
that * has a nasty little parsing problem or something:

Here's my iax.conf

---begin---

[general]
port=4569
disallow=all
allow=gsm

[guest]
type=user
context=incoming

; Asterlink
[1234567]
context=incoming
type=user
disallow=all
allow=g726

---end---

It turns out that it's the Asterlink/[1234567] section that throws it
all off.  If I add an "allow=gsm" below "allow=g726", all is happy.  If
I don't, it fails.  

If I move the [guest] section below the [1234567] section, it works
again.

Very odd, I can't quite put my finger on what exactly is causing the
problem.  At least I have a workaround - I just need to shuffle things
around

Thx

> 
> Ryan Courtnage wrote:
> > Hi all,
> > 
> > I'm finding with Asterisk 1.2.1 (and 1.2.0) that when connecting over an
> > unauthenticated IAX2 connection (ie: as [guest] in iax.conf), a codec
> > will always fail to be negotiated (see trace snippet below).
> > 
> > The problem appears to be specific to only unauthenticated IAX2
> > connections.  Authenticated connections negotiate the codec just fine.
> > 
> > Here's the trace.  Notice that the IAX2 Rx has a codec pref of gsm.  The
> > Asterisk 1.2.1 server console says "Don't know any of 0xf800
> > formats" ... looks like a bug to me.
> > 
> > 
> > Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass:
> > NEW
> >    Timestamp: 00014ms  SCall: 00006  DCall: 00000 [192.168.1.102:4569]
> >    VERSION         : 2
> >    CALLED NUMBER   : 422
> >    CODEC_PREFS     : (gsm)
> >    CALLING NUMBER  : 200
> >    CALLING PRESNTN : 0
> >    CALLING TYPEOFN : 0
> >    CALLING TRANSIT : 0
> >    CALLING NAME    : Ryan Courtnage
> >    LANGUAGE        : en
> >    FORMAT          : 2
> >    CAPABILITY      : 63490
> >    ADSICPE         : 2
> >    DATE TIME       : 2005-12-07  13:58:52
> > 
> > Dec  7 14:03:23 WARNING[9780]: channel.c:505 ast_best_codec: Don't know
> > any of 0xf800 formats
> > Dec  7 14:03:23 ERROR[9780]: chan_iax2.c:6875 socket_read: No best
> > format in 0xf800???
> > Dec  7 14:03:23 NOTICE[9780]: chan_iax2.c:6878 socket_read: Rejected
> > connect attempt from 192.168.1.102, requested/capability 0x2/0xf802
> > incompatible with our capability 0xf810.
> > Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
> > REJECT
> >    Timestamp: 00003ms  SCall: 00001  DCall: 00006 [192.168.1.102:4569]
> >    CAUSE           : Unable to negotiate codec
> >    CAUSE CODE      : 58
> > 
> > 
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> > 
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > 
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list