[Asterisk-Users] Forcing intermachine codecs ?

Jeremy McNamara jj at indie.org
Sat May 31 17:21:17 MST 2003


A working example for restricting codec's by peer

[general]
port=5036
bind=0.0.0.0
allow=all
tos=lowdelay

[NuFone]
type=peer
disallow=all
allow=iLBC
trunk=yes
host=switch-1.nufone.net
context=NANPA

I have this iax.conf setup on many of the customer boxes I babysit. This 
way they can use any codec they want for other user's or peer's, but 
force everything to iLBC when calling out to NuFone.  This works the 
same with SIP, but not H.323. I haven't personally tested MGCP, since it 
uses SDP I would guess it should work also.


Jeremy McNamara


P.S Gary, I tried to respond to you directly, but my reply bounced. 
Anyways I figured this is good info for everyone.






More information about the asterisk-users mailing list