Callback function does not work

I have problems with the callback functionality since the upgrade to 2.5.x
Actually the callback part of the callback function does not take place:

I’m routing an inbound call to the callback module, but although the call is being hung up the caller is not being called back.

Even when i start the callback script manually from the commandline nothing happens:

[[email protected] core]# /var/lib/asterisk/bin/callback 0612345678 from-internal.200.1 1

Checking for PEAR Console::Getopt..OK
Reading /etc/amportal.conf..OK
Getting passed arguments:
    [0] => 061234567890
    [1] => from-internal.200.1
    [2] => 1

Any ideas what could be wrong?

Solved by replacing the freepbx callback script by Jason Goecke’s Ruby version!