[Asterisk-Users] Different codecs for different numbers via
sameIAX provider; how? Configs included.
C. Tomlinson
asterisk_list at burntwires.com
Thu Mar 17 13:11:13 MST 2005
Sean,
Thanks for the reply.
I was afraid this was the problem. It looks like the called server can only
negotiate on what codecs it wants to receive....
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Sean Kennedy
Sent: 17 March 2005 20:05
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Different codecs for different numbers via
sameIAX 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
_______________________________________________
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