[Asterisk-Users] Re: Asterisk refuses to use anything but g729

Tom Ivar Helbekkmo tih at eunetnorge.no
Tue Nov 2 10:22:52 MST 2004


"Matthew Boehm" <mboehm at cytelcom.com> writes:

> This is really stupid behavior of asterisk. I have an ATA and an IP
> phone that I have set to use 711. These two devices MUST use 711
> because they are for faxing. I have some other phones that are set
> to use 729. In my sip.conf:
>
> disallow=all
> allow=g729
> allow=ulaw
> allow=alaw
> allow=gsm
> 
> The phones that are set to 729 work great. However, the other phones
> do not use 711. Asterisk FORCES them to use 729 when I have
> EXPLICITLY set the devices to use 711. WHY is asterisk forcing these
> devices to use something I told them not to use?

I guess you've got this in the [general] section, then?  The codec
list there is a specification of which codecs are allowed, and they
are listed in order of priority.  Thus, with your list, anything that
*can* speak g729 *will* do so.  You can override that, in individual
per-phone sections in the file:

[faxmachine]
disallow=all
allow=ulaw

-tih
-- 
Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway Hosting
www.eunet.no  T +47-22092958 M +47-93013940 F +47-22092901 FWD 484145



More information about the asterisk-users mailing list