> mgcp.conf
> [general]
> port = 2427
> bindaddr = 10.22.58.222
> [10.22.58.199]
> context=iad101e
> host=dynamic
> callerid = "169" <169>
> nat=no
> canreinvite=yes
> line => aaln/0
> extensions_additional.conf
> exten => 169,1,Dial(MGCP/aaln/0 at 192.168.0.22)
> now the problem is when i dial from a sip ext to mcgp gateway 169,
> the phone connected to the mgcp gateway rings and can talk, but
> when i call from the mgcp gateway, it no have dial tone and cannot
> talk,do any know this, thanks a lot.
I don't know if host=dynamic can ever work with MGCP, but it
can't work here, because there is no way for * to tell which
MG is registering. So, try changing it to host=192.168.0.22
if that is the MG's IP. But then what is at 10.22.58.199?
Are these addresses somehow related? Is there any NAT?
If things are working correctly, when you restart the MG,
it should send an RSIP to *, which should respond 200.
Then, * should send an RQNT to the MG, which should respond 200.
When you pick up the phone, the MG should send NTFY, and *,
after its 200 response, should send another RQNT that causes
a dial tone.
Use Ethereal to check for the above, or verbose mode in *.
--Stewart