I am about to make some email to fax gateway --- some python program will make Asterisk call files and put them into some queue (files or db based).
Then another program should take "call tasks" from queue and "feed" them to asterisk (honoring some configured limit, because of res_fax_digium
will drop over-limited tasks).
Next, let's suppose, everything is great and asterisk successfully sent some fax document. What could be a way to get the status of this operation?
If logfiles parsing is the best, I would, probably, assign some special accountcode
(I can play with this field, probably) to drop CDRs into separate files, too.
Please, which other ways I should evaluate?
So, I dropped this approach and will go another way --- AMI, Asterisk Management Interface API.
In a couple of words.
Having created dialplan like this one:
I can originate calls with (using pyst):
And having set
debug = on
inmanager.conf
, I can listen to needed events:So,
res_fax_digium
firesFaxStatus
event afterSendFax
is complete.