Problem with me dialplan

Hello, I am new on the forum and I don’t know if my thread it is in the
appropriate section of the forum. I have create a dialplan script in the
extensions_custom.conf, where the script check some parameters in the
database through some php’s and depending at the results from the php’s
it allow the extension to make out-bound calls or not. My problem is
when I have the script, the my sip phones cannot make transfer call or
forward calls? Can you advice my how to debug my problem? The mysterious is that the same dialplan on the elastix on custom pc is working fine and at Xorcom pc’s it doesn’t. Thanks for
your attention and time. Sorry for my English.

Please paste your debug log, and the dialplan you’re using.