[Asterisk-Users] Different codecs for different numbers via same IAX provider; how? Configs included.

Sean Kennedy skennedy at tpno-co.org
Thu Mar 17 13:04:55 MST 2005


C. Tomlinson wrote:

> Hi,
>
> I have been trying to work this out and haven’t been able to.
>
> I have some incoming numbers that come in over IAX, from the same 
> server, and wish to use different codecs for different calls. This 
> doesn’t seem to work for incoming either.
>
> I cant seem to get any combination of allow/disallow to work….
>
> Ideally the following would work:
>
> [general]
>
> register => XXXXXX
>
> disallow=all
>
> [XXXXXXX] ;incoming number I want to use GSM with
>
> type=XXXX
>
> context=XXXX
>
> secret=XXXX
>
> allow=gsm
>
> [YYYYYY] ;incoming number I want to use alaw with
>
> type=XXXX
>
> context=XXXXXXXXXX
>
> secret=XXXXXXXXX
>
> allow=alaw
>
> However they only use one codec for both numbers.
>
> Am I doing something wrong in iax.conf, I am running stable, or is 
> this something which * doesn’t support yet.
>
> Thanks
>
> C
>
You will have to setup separate iax2 identities on the calling server ( 
ie: the server delivering the calls to you ) for this to work.

Your receiving server has no way to negotiate a codec based on the 
incoming phone number ( correct me if I am wrong, but I see no way to do 
that ).

Sean



More information about the asterisk-users mailing list