[Asterisk-Users] G729, x-pro, and codec ordering

Eric Wieling aka ManxPower eric at fnords.org
Tue Dec 7 10:55:01 MST 2004


Paul Fielding wrote:
>> Try setting the codec settings for each peer instead of under the general
>> heading.
> 
> 
> I've tried that - if disallow=all,allow=g729 in the appropriate peer 
> then it will indeed use the correct codec.  What I'd like to do, though, 
> is be able to switch codecs depending on my location.  Currently the 
> only way I can see to do that is to force the codec within the peer in 
> sip.conf every time I want to change between g729 or ulaw, which means 
> SSHing into my asterisk server to make the change every time.   I was 
> hoping there would be a slightly more elegant way to do things... :(

You can always allow both codecs and this only allow the codec you want 
in X-Pro.  Asterisk won't try to use ulaw if the phone says it doesn't 
allow ulaw.

-- 
I am seeking part or full time employment in the Greater Toronto
Area, My preference is part time employment with some
telecommuting, but all offers will be considered.
Contact eric at fnords.org.



More information about the asterisk-users mailing list