First, check in manager.conf since I forgot to mention a change in [general]. See below.
Double-check that manager.conf has the same username and secret as in your script;
if you kept the default one, it should look like this:
(if PBX=192.168.1.246)
[remote_mgr]
secret=0chanc3yo
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
;
;Allow LAN connections
permit=192.168.1.0/255.255.255.0
;
;writetimeout=100
;Authorization
read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user
;
I see that I forgot to mention this change in manager.conf:
[general]
enabled=yes
port=5038
;bindaddr=127.0.0.1
;
;Listen on the LAN interface
bindaddr=192.168.1.246
;
displayconnects=yes
;
Call.php should have matching lines:
# pbx server address:
$strHost = "192.168.1.246";
#specify the username you want to login with (in /etc/asterisk/manager.conf)
$strUser = "remote_mgr;
#specify the password for the above user
$strSecret = "0chanc3yo";
Jeff could confirm this, but I think that asterisk must be restarted, not just reloaded.
For your tests, use the default manager account and be patient, I had the same issue and asterisk will accept connections.
Use this command to see the account on the PBX:
pbx*CLI> manager show user remote_mgr
username: remote_mgr
secret: <Set>
deny: 0.0.0.0/0.0.0.0
permit: 192.168.1.0/255.255.255.0
read: system,call,log,verbose,command,agent,user
write: system,call,log,verbose,command,agent,user
displayconnects: no