Re: [asterisk-users] AGI: How to break out of AGI when stream_file escape_digits are detected in middle of long sequence of files?

2016-10-11 Thread Jonathan H
Arrrgh! You are correct, of course. I hadn't realised you could do it that way - I was assuming it was a variable that was returned to the dialplan/channel. Some of the finer points of AGI are still a slight mystery to me! Thank you very much - working perfectly now, with your help and the

Re: [asterisk-users] AGI: How to break out of AGI when stream_file escape_digits are detected in middle of long sequence of files?

2016-10-11 Thread Lefteris Zafiris
On Mon, 10 Oct 2016, at 22:47, Jonathan H wrote: > For reasons best known to myself, I call a python agi (PYST2 - love > it!) which streams a series of very short files in quick succession. > > Like this: > > escape_digits = str("0") > agi.stream_file(promptFile,escape_digits) > > and this is

[asterisk-users] AGI: How to break out of AGI when stream_file escape_digits are detected in middle of long sequence of files?

2016-10-10 Thread Jonathan H
For reasons best known to myself, I call a python agi (PYST2 - love it!) which streams a series of very short files in quick succession. Like this: escape_digits = str("0") agi.stream_file(promptFile,escape_digits) and this is what I see on the AGI debug: AGI Tx >> 200 result=0 endpos=6784 AGI