I have a problem were i have set up a MGCP Gateway With a FXO port for a customer, i have set it up so that when a call gets in, it gets delivered to an AA in unity connection, now the call gets connected fine but the issue i have is that it rings twice before it gets answered, this problem is only when the call gets in trough the FXO since i have dialed directly from a phone to the pilot and the AA works fine (no rings delay) i have observed the fxo port behavior and it gets ring detected (while i hear the ringing on my phone) and the it goes off-hook the moment i start hearing the audio so i believe its not going off-hook as soon as the call gets in.
Any help in this would be much appreciated here is the config from the FXO port:
output attenuation 0
timeouts interdigit 2
timeouts call-disconnect 2
timeouts wait-release 1
timing hookflash-out 500
This could be due to the fact that you are using FXO for the incoming call. Generally there is a delay when the call comes in on the FXO and goes to the CUCM because of the way it is implemented (legacy circuits). You can take debugs on the gateway to see how long it takes for the call to go to the Unity Connection once it hits the FXO port.
debug vpm signal
debug mgcp packet
These debugs will show you the delay between the time the call comes in on the fxo port and the call answered by the CUC. Based on that, we will be able to say where the extra ring is added.