Hello List, I was writing something in PHP that connects to AMI and sends a data stream ( example of it: http://slackware-es.com/ami-input.txt ), but the file (voicemail.conf , in this case) does not get fully written. I tried pasting the stream directly through telnet to AMI, and everything *appears* to be OK, but the file is not being completely written. No errors on CLI No errors on AMI I'm Using Asterisk 1.4.26.2 Notes: Increasing the writetimeout on manager.conf does not seems to have any effect on this issue. Have someone seen something like this before? -- Jose P. Espinal http://www.eSlackware.com IRC: Khratos @ #asterisk / -doc / -bugs
On Tue, Oct 13, 2009 at 7:56 PM, Jose P. Espinal <jpe at slackware-es.com> wrote:> Hello List, > > > I was writing something in PHP that connects to AMI and sends a data > stream ( example of it: http://slackware-es.com/ami-input.txt ), but the > file (voicemail.conf , in this case) does not get fully written. > > I tried pasting the stream directly through telnet to AMI, and > everything *appears* to be OK, but the file is not being completely written. > > No errors on CLI > No errors on AMII don't know what the error is, but I would assume you need to do one final file close or commit to make the stream end. In other news, this sounds like a silly way to transfer a file. I would suggest NFS or other shared file system, rsync, scp, you get the idea.
On Tue, Oct 13, 2009 at 7:56 PM, Jose P. Espinal <jpe at slackware-es.com> wrote:> I was writing something in PHP that connects to AMI and sends a data > stream ( example of it: http://slackware-es.com/ami-input.txt ), but the > file (voicemail.conf , in this case) does not get fully written. > > I tried pasting the stream directly through telnet to AMI, and > everything *appears* to be OK, but the file is not being completely written.What part of the file is missing? The end? Try writing some empty entries to the end to flush out the valid entries.
Yes, as you can see in the example stream http://slackware-es.com/ami-input.txt (I can not use pastebin, sorry, emails trigger the spam filter there) I added a context at the end, and then appended some lines (mailboxes). It stops writing at the same point always, but without displaying error messages. I will try adding some empty entries as you suggested. Thank you. David Backeberg wrote:> On Tue, Oct 13, 2009 at 7:56 PM, Jose P. Espinal <jpe at slackware-es.com> wrote: >> I was writing something in PHP that connects to AMI and sends a data >> stream ( example of it: http://slackware-es.com/ami-input.txt ), but the >> file (voicemail.conf , in this case) does not get fully written. >> >> I tried pasting the stream directly through telnet to AMI, and >> everything *appears* to be OK, but the file is not being completely written. > > What part of the file is missing? > > The end? > > Try writing some empty entries to the end to flush out the valid entries. > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
On 14/10/09 12:56 PM, Jose P. Espinal wrote:> Hello List, > > > I was writing something in PHP that connects to AMI and sends a data > stream ( example of it: http://slackware-es.com/ami-input.txt ), but the > file (voicemail.conf , in this case) does not get fully written. > > I tried pasting the stream directly through telnet to AMI, and > everything *appears* to be OK, but the file is not being completely written. > > No errors on CLI > No errors on AMI > > I'm Using Asterisk 1.4.26.2 > > > Notes: > Increasing the writetimeout on manager.conf does not seems to have any > effect on this issue. > > > Have someone seen something like this before?It appears you have one action with lots of action ids. Have you tried running them as separate entries and checking the results of each action? -- Cheers, Matt Riddell Director _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
Seemingly Similar Threads
- Broken Pipe error while using UpdateConfig command
- After wiki.asterisk.org was upgraded my user no loger exists.
- 1.8.4 Core Dump after installing from source
- Extension notation in default ViciDial installation
- Selecting 'ODBC_STORAGE' from outside of 'menuselect'