On Thu, 24 Feb 2011 13:11:02 + (UTC), t...@mountifield.org (Tony
Mountifield) wrote:
Yes, that is the reason. The easiest thing is probably to put in a delay
if os.execute allows full shell syntax:
Thanks for the idea.
While reading samples, I happened upon the system() application,
which
On Fri, Feb 25, 2011 at 4:54 AM, Gilles codecompl...@free.fr wrote:
Is there a way to launch a script asynchronously, so that Asterisk
proceeds to the next step immediately, and the script will then wait
10 seconds so that the channel is available again?
In Perl, the line would be: fork and
On Fri, 25 Feb 2011 05:47:36 -0600, Tilghman Lesher
tilgh...@meg.abyt.es wrote:
I'm sure there's an equivalent in lua, but the basic idea is that you
want to fork a
child, which takes over. When the parent process dies, control returns to the
dialplan.
Good idea. uClinux supports vfork() instead
In article a92fm65o07976iomfhr1k0t3sunmogd...@4ax.com,
Gilles codecompl...@free.fr wrote:
On Thu, 24 Feb 2011 13:11:02 + (UTC), t...@mountifield.org (Tony
Mountifield) wrote:
Yes, that is the reason. The easiest thing is probably to put in a delay
if os.execute allows full shell syntax:
On Fri, 25 Feb 2011 12:20:34 + (UTC), t...@mountifield.org (Tony
Mountifield) wrote:
os.execute((sleep 2;mv /var/tmp/callback.call /var/tmp/asterisk/outgoing))
The important parts are the ( before the sleep and the ) at the end. The
brackets create a subshell to do the sleep and move, and the
In article 4q9fm6h53jk91la6nbtvhhe4cfah89h...@4ax.com,
Gilles codecompl...@free.fr wrote:
Does it mean that there's no way for Zaptel to know the status of a
call (ring, answered, busy, etc.), and the only way is to use Wait()
and hope for the best?
If you are using an analogue phone line, I
On Fri, 25 Feb 2011 17:31:42 + (UTC), t...@mountifield.org (Tony
Mountifield) wrote:
If you are using an analogue phone line, I believe that's true.
Much better if you can to use either a digital phone line (ISDN)
or else a VoIP connection. Either of those will be able to tell
properly when
Hello
No matter what I try, Asterisk still fails dialing back through a
callfile built through an AGI script.
The whole thing works fine when the original call that triggers
Asterisk is from an internal extension (Xlite), but it fails when it's
from my cellphone ringing through the
In article jg9cm6pqkit0q3oi5aacabi7dfql7st...@4ax.com,
Gilles codecompl...@free.fr wrote:
Hello
No matter what I try, Asterisk still fails dialing back through a
callfile built through an AGI script.
The whole thing works fine when the original call that triggers
Asterisk is from an
On Thu, 24 Feb 2011, Gilles wrote:
No matter what I try, Asterisk still fails dialing back through a
callfile built through an AGI script.
I don't think it has anything to do with the method used to create the
call file.
AGI script
#!/var/tmp/lua
--Must first empty stdin
while
10 matches
Mail list logo