Re: [asterisk-users] Problems with AMI connections (Asterisk 1.8.3.2)

2011-08-15 Thread Daniel - Asterisk
Could you please share a little sample showing how to get connected to AMI with php? Thanks a lot! Elder On Mon, Aug 1, 2011 at 3:40 PM, Kevin P. Fleming kpflem...@digium.comwrote: On 08/01/2011 03:35 PM, Paul Belanger wrote: On 11-08-01 04:24 PM, Daniel - Asterisk wrote: ?php function

[asterisk-users] Problems with AMI connections (Asterisk 1.8.3.2)

2011-08-01 Thread Daniel - Asterisk
Hi guys, I hope you could help me. I am trying to get connected through AMI but something is not working. Both php code and manager.conf were working well in asterisk 1.4 1. Sometimes it gets connected and sometimes it doesn't: == Connect attempt from '192.168.25.241' unable to authenticate

Re: [asterisk-users] Problems with AMI connections (Asterisk 1.8.3.2)

2011-08-01 Thread Paul Belanger
On 11-08-01 04:24 PM, Daniel - Asterisk wrote: ?php function ast_claves(){ $socket = fsockopen('192.168.25.18','5038',$errno,$errstr,10); fwrite($socket,Action: Login\r\n); fwrite($socket,UserName: mark\r\n); fwrite($socket,Secret:

Re: [asterisk-users] Problems with AMI connections (Asterisk 1.8.3.2)

2011-08-01 Thread Kevin P. Fleming
On 08/01/2011 03:35 PM, Paul Belanger wrote: On 11-08-01 04:24 PM, Daniel - Asterisk wrote: ?php function ast_claves(){ $socket = fsockopen('192.168.25.18','5038',$errno,$errstr,10); fwrite($socket,Action: Login\r\n); fwrite($socket,UserName: mark\r\n); fwrite($socket,Secret: