I have an FXO port on and mgcp gateway
cannot see why phone wont ring
debug ouput attched
any help will be appreciated
debug voice ccapi inout
This looks like you either don't know what you're running, or your dial peers are out of order.
The debugs show you're not using MGCP for this call. You hit incoming dial peer 1212 and go out dial peer 2301.
My guess is that your pots dial peer with port 1/0 is above the MGCP created dial peer 999010, and you're hitting this dial peer instead.
Also, whatever session target you've defined for 2301 probably is not reachable or does not exist.
Try deleting dial peer 1212 and trying again.