Could you have a 9N SC on IPO500?
And in your primary SC use
9N
Function: Dial
Tel Number: 9N
Group id: 99991 (outgoing group for IPO500GW)
Then on IPO500
9N
Function :N
Group id: 50 (ARS with Dialplan through PRI line)
make a test call and let me know
Cheers!!!