Vtiger and asterisk integration inbound issue

Hi Gooday,
I have been troubleshooting this issue for a week now ,trying to google it but still no luck of fixing the problem.My outbound is working find but the inbound is just giving me a little headache.

[quote] Executing [8882673210@vtiger-inbound:1] AGI(“SIP/APN-0000005c”, “agi://”) in new stack
[Dec 17 06:37:35] ERROR[17018]: utils.c:1321 ast_carefulwrite: write() returned error: Connection refused
[Dec 17 06:37:35] WARNING[17018]: res_agi.c:1511 launch_netscript: Connect to ‘agi://’ failed: Connection refused
– Auto fallthrough, channel ‘SIP/APN-0000005c’ status is ‘UNKNOWN’
What does this mean? Please help…
vtigercrm 5.4

i followed this tuturial,

:/var/www/vtigercrm/cron/modules/PBXManager# php5 AsteriskClient.php
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20090626+lfs/php.imap.dll’ - /usr/lib/php5/20090626+lfs/php.imap.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Connecting to asterisk server @ 2014-12-16 23:06:04
Connected successfully

Trying to login to asterisk
Logged in successfully to asterisk server