Paddy Grice
2011-Mar-14 19:19 UTC
[asterisk-users] Asterisk -rx command not returning data - Version 1.4.33.1
Hi List I am having trouble running the command siptest:~# asterisk -rx 'dialplan reload' most times it does what I expect and I get a response as below siptest:~# asterisk -rx 'dialplan reload' Dialplan reloaded. every now and then I get no response i.e. siptest:~# asterisk -rx 'dialplan reload' siptest:~# and a "verbose 10" setting shows [Mar 14 19:07:41] ERROR[3092]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe -- Remote UNIX connection disconnected siptest*CLI> I assume the problem is timing but any ideas on how to fix it The test is running in an idle box Debian Lenny asterisk version 1.4.33.1 unpatched Any ideas would be helpful Paddy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110314/c689d5ed/attachment.htm>
Steve Edwards
2011-Mar-14 19:26 UTC
[asterisk-users] Asterisk -rx command not returning data - Version 1.4.33.1
On Mon, 14 Mar 2011, Paddy Grice wrote:> I am having trouble running the command > ? > siptest:~# asterisk -rx 'dialplan reload' > ? > I assume the problem is timing but any ideas on how to fix itI'm just a 1.2 Luddite, but it's been my experience that issuing shell command lines and parsing the output is unreliable. Kind of hit or miss, sometimes you get more that you expect, sometimes less. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Tzafrir Cohen
2011-Mar-16 09:29 UTC
[asterisk-users] Asterisk -rx command not returning data - Version 1.4.33.1
On Mon, Mar 14, 2011 at 07:19:18PM -0000, Paddy Grice wrote:> Hi List > > I am having trouble running the command > > siptest:~# asterisk -rx 'dialplan reload' > > most times it does what I expect and I get a response as below > > siptest:~# asterisk -rx 'dialplan reload' > Dialplan reloaded. > > every now and then I get no response i.e. > > siptest:~# asterisk -rx 'dialplan reload' > siptest:~# > > and a "verbose 10" setting shows > > [Mar 14 19:07:41] ERROR[3092]: utils.c:968 ast_carefulwrite: write() > returned error: Broken pipe > -- Remote UNIX connection disconnected > siptest*CLI> > > I assume the problem is timing but any ideas on how to fix it > > The test is running in an idle box Debian Lenny asterisk version 1.4.33.1 > unpatched > > Any ideas would be helpfulIt takes too long? E.g.: more than 0.5 second? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir