On 2018-05-22 02:17 AM, Yves wrote:> you could > > - use "global variables" > - use the asterisk built in databaseBoth of those seem difficult as the process is split between Asterisk and an external script.> - mv the file to temporary folder _before_ faxing (would be the most > easy solution as you already > know how to mv a file via asterisk...)True. This or John Kiniston's idea of lock files could work. I guess I would need to have some process to move it back if it is still there after an hour or so in case something went wrong. The same sort of thing would be needed for John's solution as well. It sure would be nice if I could query Asterisk to see if the fax process was still running. Thanks. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:darcy at Vex.Net VoIP: sip:darcy at VybeNetworks.com
of course you can query asterisk asterisk and look, if your fax is still running...: asterisk -rx "fax show sessions" lists you all acive fax sessions... yves Am 22.05.2018 um 12:19 schrieb D'Arcy Cain:> On 2018-05-22 02:17 AM, Yves wrote: >> you could >> >> - use "global variables" >> - use the asterisk built in database > Both of those seem difficult as the process is split between Asterisk > and an external script. > >> - mv the file to temporary folder _before_ faxing (would be the most >> easy solution as you already >> know how to mv a file via asterisk...) > True. This or John Kiniston's idea of lock files could work. I guess I > would need to have some process to move it back if it is still there > after an hour or so in case something went wrong. The same sort of > thing would be needed for John's solution as well. > > It sure would be nice if I could query Asterisk to see if the fax > process was still running. > > Thanks. >
On 2018-05-24 02:32 AM, Yves wrote:> of course you can query asterisk asterisk and look, if your fax is still > running...: > > asterisk -rx "fax show sessions" lists you all acive fax sessions...Well, yes but how do I know which channel I am looking for? When I say "I" I mean my program. I am sure that my brain can figure it out but my brain needs to be off doing other things. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:darcy at Vex.Net VoIP: sip:darcy at VybeNetworks.com