I think Liviu handled the codec thing well for you. As for the 1st part,
you will want to use macro substitution in your extensions.conf file.

In your local extensions file you want all extensions in the 1XXX range
to be processed on the local machine and all extensions in the 2XXX
range to be sent to the second machine for processing. Obviously on the
second machine you want the reverse so the 2000 series numbers are
processed locally and the 1000 series numbers get sent to the first
machine.

dbc.
--
David Cook


Quoting Liviu Toma <[EMAIL PROTECTED]>:

> His Nishith,
>
> First of all, you need to have the g729 codec installed on your
> asterisk. This codec is usually not free, but if you google it, you
> may find some hacks.
> Second, you have to configure the peers pointing to your phone and
> long distance provider to allow only the codecs you want for each
> one.
> Also, you have to make sure Asterisk will not reinvite the 2 peers to
> talk directly to each other.
> For example you will have something like:
>
> [phone_peer]
> ...
> canreinvite=no
> disallow=all
> allow=ulaw
> ...
>
> [ld_peer]
> ...
> canreinvite=no
> disallow=all
> allow=g729
> ...
>
> Liviu
>
>
>
> On 3/14/07, Nishith Patel <[EMAIL PROTECTED]> wrote:
> > HI there,
> >
> > I am facing too much problem of sound quality in asterisk while
> calling
> > through internet.
> >
> > Let's come to the main problem I am facing is codec problem.
> >
> > I would like to configure my extensions.conf in such a way that
> when I dial
> > and any long distance number it should use both codec in respective
> to
> > network.
> >
> > I mean to say it should use G711 ulaw from Phone ( End Point ) to
> Asterisk
> > server and when that call goes out from that internal network to
> out side
> > world ( Internet ) it should use G729 codec.
> >
> > SO in that case I can get the advantage of G711 ulaw and G729 as
> well.
> >
> > Because G711 ulaw has excellent so sound quality as compare to G729
> which is
> > good in compression .
> >
> > So in that case I can save my bandwidth and at the same time I can
> get good
> > sound quality.
> >
> > So please help me out in configuring asterisk in such a manner.
> >
> > Thanking you,
> >
> > Nishith
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to