[Asterisk-Users] MGCP behind NAT

Wade Weppler weppler at wwworks-inc.com
Wed Jul 30 12:09:35 MST 2003


Hi,

	After spending some time trying to get a DG-104S working behind NAT,
I finally found the problem.

	I made the incorrect assumption that nat=yes in mgcp.conf works just
like sip.conf.  The channels within a gateway are treated more closely to
zap channels than sip channels (from a .conf standpoint).

	What this means is that you have to put nat=yes BEFORE any
subchannel definitions:

This works:

nat=yes
line => aaln/1
line => aaln/2
line => aaln/3
line => aaln/4

This doesn't:

line => aaln/1
line => aaln/2
line => aaln/3
line => aaln/4
nat=yes


This makes sense if lines were treated as individual channels through NAT,
but they aren't.  NAT capability is dictated by the Gateway itself, and not
each endpoint/subchannel.

I hope this saves somebody some time.

-wade





More information about the asterisk-users mailing list