[Asterisk-Users] Forcing intermachine codecs ?

Brian Capouch brianc at palaver.net
Sun Jun 1 14:21:43 MST 2003


Jeremy McNamara wrote:> 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.

I added those entries to my contexts for NuFone, and everything works 
just fine.

So I added them to the rest of my iax.conf contexts, most of which move 
calls around between my three different asterisk instances.

But for whatever reason, my IAX2 calls to everywhere else all go with 
"format=4"

I'm not sure which side is dominant. . .Here is a typical entry from the 
CLI on "my side:"

     -- Called foo:bar at 1.2.3.4/6060
     -- Call accepted by 1.2.3.4 (format 4)
     -- Format for call is 4

And on the other:

    -- Accepting AUTHENTICATED call from 5.6.7.8, requested format = 4, 
actual format = 4
     -- Executing Dial("IAX2[bc at 5.6.7.8:4569]/1", "Zap/2/BYEXTENSION") 
in new stack

I have put the disallow/allow clauses in every context that is used by 
my servers, and I've checked that all the asterisk instances have the 
same version and the ilbc modules.

What am I doing wrong?

Thx.

B.




More information about the asterisk-users mailing list