[Asterisk-Users] IAX2 no compatible codecs

Jason Penton j.penton at ru.ac.za
Thu Jun 17 01:22:10 MST 2004


Hi Adam

Thanks - Here are the two attempts:

This is the first one where * dials firefly via the dialplan (which works
fine):

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00001ms  SCall: 00004  DCall: 00000 [146.231.125.65:4569]
   VERSION         : 2
   CALLED NUMBER   : s
   CALLING NUMBER  : 7001
   CALLING NAME    : Alfredo+Terzoli
   LANGUAGE        : en
   FORMAT          : 4
   CAPABILITY      : 2147483647
   ADSICPE         : 2
   DATE TIME       : 147935435

Now the following output is when I use the manager ORIGINATE command:

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00001ms  SCall: 00004  DCall: 00000 [146.231.125.65:4569]
   VERSION         : 2
   CALLED NUMBER   : s
   LANGUAGE        : en
   FORMAT          : 64
   CAPABILITY      : 2147483647
   ADSICPE         : 0
   DATE TIME       : 147935484


Jun 17 10:07:57 WARNING[180236]: chan_iax2.c:4534 socket_read: Call rejected
by 146.231.125.65: No compatible Codecs


I can see the inconsitency with the FORMAT header of the two setup messages.
According to the IAX protocol spec. The FORMAT (0x4) represents G.711 U-LAW,
which is exactly what the resulting call uses. However, the funny thing is
that the protocol spec has no entry for FORMAT(0x64) in the second message -
an undefined format. The quesiton is how the * manager API causes * to
inititiate an IAX call with this FORMAT type (0x64)??????? An how we can fix
it ???????. 

Any ideas, anyone
Thanks again Adam for the help
Cheers
Jason 



> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com 
> [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Adam Hart
> Sent: 17 June 2004 09:19 AM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] IAX2 no compatible codecs
> 
> iax2 debug is your friend, looks at the capibilities asterisk 
> is sending 
> in it's NEW message
> 
> Jason Penton wrote:
> 
> > Hi Adam
> > 
> > Done all that but still the same problem. 
> > 
> > Do you have any other ideas?
> > 
> > Cheers
> > Jason 
> > 
> > 
> >>-----Original Message-----
> >>From: asterisk-users-admin at lists.digium.com 
> >>[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of 
> Adam Hart
> >>Sent: 17 June 2004 08:29 AM
> >>To: asterisk-users at lists.digium.com
> >>Subject: Re: [Asterisk-Users] IAX2 no compatible codecs
> >>
> >>check under your network settings that you have all the 
> >>codecs selected 
> >>and obviously type IAX
> >>
> >>Jason Penton wrote:
> >>
> >>>Hi All
> >>>
> >>>I have a strange problem using IAX2. When placing a call to 
> >>
> >>my IAX clients
> >>
> >>>(firefly) via the Asterisk dialplan all works great. 
> >>
> >>However trying to
> >>
> >>>initiate a call via the manager interface to the IAX client 
> >>
> >>using the
> >>
> >>>following command results in an error:
> >>>
> >>>Action: Originate
> >>>Channel: IAX2/7000
> >>>Extension: 7000
> >>>Context: local
> >>>Priority: 1
> >>>ActionID: 1
> >>>
> >>>The error I get in the CLI is "Jun 17 08:18:36 WARNING[180236]:
> >>>chan_iax2.c:4534 socket_read: Call rejected by #IP: No 
> >>
> >>compatible Codecs"
> >>
> >>>Does anyone have any ideas.
> >>>
> >>>Thanks in advance 
> >>>Jason
> >>>
> >>>_______________________________________________
> >>>Asterisk-Users mailing list
> >>>Asterisk-Users at lists.digium.com
> >>>http://lists.digium.com/mailman/listinfo/asterisk-users
> >>>To UNSUBSCRIBE or update options visit:
> >>>   http://lists.digium.com/mailman/listinfo/asterisk-users
> >>>
> >>
> >>_______________________________________________
> >>Asterisk-Users mailing list
> >>Asterisk-Users at lists.digium.com
> >>http://lists.digium.com/mailman/listinfo/asterisk-users
> >>To UNSUBSCRIBE or update options visit:
> >>   http://lists.digium.com/mailman/listinfo/asterisk-users
> >>
> >>
> > 
> > 
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 




More information about the asterisk-users mailing list