In the trunk definition you can specify which codecs are permitted for that
channel, for example...

disallow = all
allow = alaw

will force all traffic over that trunk to use alaw.  For the extensions, if
you want to permit multiple codecs then, for example

disallow = all
allow = alaw,ulaw,gsm

I do not know if you will also need the codec negotiation patch as well.
 Obviously you want to avoid conversion occurring inside the asterisk server
if you have a call coming in as g729 you want to pass it on to the extension
as g729 and not convert to ulaw/alaw or whatever in the server.

David

On Fri, Mar 26, 2010 at 4:29 AM, Dominko Vrljic <[email protected]>wrote:

> Hi,
> first let me explain my configuration:
> astlinux has ISDN PCI card and SIP trunk over ADSL.
> Extensions, analog phones, are connected to asterisk over Linksys PAP2T.
> My question is about codec. When I call local PSTN numners over ISDN
> asterisk should use alaw codec, but if I call someone over SIP trunk
> asterisk should use g729 codec. Both Linksys PAP2T and SIP trunk support
> g729 codec.
> Can this be achieved with the usual asterisk configuration or I should
> experiment with Asterisk Codec Negotiation Patch:
> http://www.b2bua.org/wiki/AsteriskCodecNegotiationPatch
>
> Regards
> Dominko
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Download IntelĀ® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
>
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to