Update:: If I execute using application 'System' instead of application 'Perl' in the dialplan it works finie...