marcelog / PAMI

PHP Asterisk Manager Interface ( AMI ) supports synchronous command ( action )/ responses and asynchronous events using the pattern observer-listener. Supports commands with responses with multiple events. Very suitable for development of operator consoles and / or asterisk / channels / peers monitoring through SOA, etc
http://marcelog.github.com/PAMI
Apache License 2.0
401 stars 279 forks source link

Connection refused #171

Closed sergesby closed 6 years ago

sergesby commented 6 years ago

Hello dears! i don't understand what going on, but i can't connect to * ami:

here is error log: `Stack trace:

0 /var/www/localhost/htdocs/callme/vendor/marcelog/pami/src/PAMI/Client/Impl/ClientImpl.php(265): PAMI\Client\Impl\ClientImpl->getMessages()

1 /var/www/localhost/htdocs/callme/CallMeIn.php(237): PAMI\Client\Impl\ClientImpl->process()

2 {main}

thrown in /var/www/localhost/htdocs/callme/vendor/marcelog/pami/src/PAMI/Client/Impl/ClientImpl.php on line 242 PHP Fatal error: Uncaught PAMI\Client\Exception\ClientException: Error connecting to ami: tcp://127.0.0.1:5038 111 Connection refused in /var/www/localhost/htdocs/callme/vendor/marcelog/pami/src/PAMI/Client/Impl/ClientImpl.php:178 Stack trace:

0 /var/www/localhost/htdocs/callme/CallMeIn.php(42): PAMI\Client\Impl\ClientImpl->open()

1 {main}

thrown in /var/www/localhost/htdocs/callme/vendor/marcelog/pami/src/PAMI/Client/Impl/ClientImpl.php on line 178`

it seems what port 5038 is blocked or closed, but no. in the asterisk console i have:

gentoo*CLI> manager show connected Username IP Address Start Elapsed FileDes HttpCnt Read Write callme 127.0.0.1 1534880661 658 21 0 04079 04863 1 users connected. gentoo*CLI>

please, help me...

sergesby commented 6 years ago

sorry, with PAMI and asterisk all ok.... closing.