C. Tomlinson
2005-Mar-17 12:23 UTC
[Asterisk-Users] Different codecs for different numbers via same IAX provider; how? Configs included.
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050317/bfbba138/attachment.htm
Sean Kennedy
2005-Mar-17 13:04 UTC
[Asterisk-Users] Different codecs for different numbers via same IAX provider; how? Configs included.
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