<div>a single originate will only create a single call. What you describe here isn't happening as you describe it. A log of the calls may tell you more.</div><div><br><div class="gmail_quote"><div>On Tue, May 16, 2017 at 5:36 AM Bipin Patel <<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<br>
i think i have one other plan, let me try that and ill get back with the<br>
result.<br>
<br>
i have on more issue, when i send a fax using the originate command, it<br>
results in 2 invites being sent to the gateway, one sends the fax and i<br>
get report for that but the other fails so i also get a failed report<br>
for that, any idea what could be causing this, my originate command is<br>
as below<br>
<br>
originate<br>
[ignore_early_media=true,fax_verbose=true,fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU]sofia/gateway/ma/123466789<br>
&txfax(\'" + att_path + ".tiff\')"<br>
<br>
<br>
<br>
Regards,<br>
Bipin<br>
<br>
<br>
Talky Communications<br>
VoIP/SMS/DID Services<br>
+971-55-9270058<br>
<a href="http://www.talkycom.com" rel="noreferrer" target="_blank">www.talkycom.com</a> <<a href="http://www.talkycom.com/" rel="noreferrer" target="_blank">http://www.talkycom.com/</a>><br>
<a href="http://www.xbipin.com" rel="noreferrer" target="_blank">www.xbipin.com</a> <<a href="http://www.xbipin.com/" rel="noreferrer" target="_blank">http://www.xbipin.com/</a>><br>
------------------------------------------------------------------------<br>
<br>
-------- Original Message --------<br>
Subject: Re: [Freeswitch-users] Fax result when using mail to fax<br>
From: Peter Steinbach <<a href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>><br>
To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
Date: 5/16/2017, 11:38:18 AM<br>
<br>
> Hello Bipin,<br>
><br>
> the fax result is only available, long after the dialplan has beeen<br>
> evaluated.<br>
><br>
> So you will somehow have to use some event driven things.<br>
> execute_on_fax_success would have been the next thing to propose, but id<br>
> did not work in your case.<br>
><br>
> In Linux you can use inotify. We have also used this method for getting<br>
> certain infos from the Freeswitch logfile and then to fire actions (in<br>
> our case firewall rules). Maybe this is an approach for you?<br>
><br>
> Best regards<br>
> Peter<br>
><br>
> On 05/16/17 07:25, Bipin Patel wrote:<br>
>> hi,<br>
>><br>
>> well considering im running this FS on the raspberry pi for a small<br>
>> office, ESL would be like a lot just for the purpose, if the console can<br>
>> display the fax result then why isnt it possible to get the same in<br>
>> dialplan or somewhere else where i can fire a script or something and<br>
>> let the sender know what happened to their fax.<br>
>><br>
>> i tried using execute_on_fax_success and execute_on_fax_failure but they<br>
>> dont seem to work while sending a fax, i think its for receiving only<br>
>><br>
>><br>
>><br>
>> Regards,<br>
>> Bipin<br>
>><br>
>><br>
>><br>
>> ------------------------------------------------------------------------<br>
>><br>
>> -------- Original Message --------<br>
>> Subject: Re: [Freeswitch-users] Fax result when using mail to fax<br>
>> From: Peter Steinbach <<a href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>><br>
>> To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
>> Date: 5/16/2017, 12:24:44 AM<br>
>><br>
>>> Hello Bipin,<br>
>>><br>
>>> there are some events fired via ESL, if you subscribe to them. We<br>
>>> evaluate txfaxresult event and hangup event.<br>
>>><br>
>>> The only thing which is critcal here, is that the contents of the 2<br>
>>> events have to be joined, in order to have all informations. And in my<br>
>>> experience txfaxresult and hangup event do not always come in the same<br>
>>> order, dependend on which side of the channels hangs up first.<br>
>>><br>
>>> Best regards<br>
>>> Peter<br>
>>><br>
>>> On 05/15/17 22:06, Bipin Patel wrote:<br>
>>>> Hi,<br>
>>>><br>
>>>> I have a python script that checks a mailbox for faxes to be sent, when it<br>
>>>> finds a new mail it downloads the PDF and converts to Tiff and sends via<br>
>>>> the originate command, now the problem is I can't seem to find a way to get<br>
>>>> the fax report, nor in cdr it says what happened and the originate just<br>
>>>> says ok followed by uuid of the bridge. I'm sending the fax over a fxo<br>
>>>> gateway device. Due to it going over fxo, I have no clue if the remote fax<br>
>>>> machine answered call and the only place the fax report comes is in the<br>
>>>> console. Is there a variable or anything else that can be resent to the<br>
>>>> python script telling what the result was. I tried the execute on fax<br>
>>>> successful and fail variable but they don't seem to work.<br>
>>>><br>
>>>> My python script generates the originate command going to loopback which<br>
>>>> goes to dial plan where the actual bridge to fxo gateway happens.<br>
>>>><br>
>>>> How are others dealing with fax report I would love to hear.<br>
>>>><br>
>>>> Regards,<br>
>>>> Bipin<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> _________________________________________________________________________<br>
>>>> Professional FreeSWITCH Consulting Services:<br>
>>>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>><br>
>>>> Official FreeSWITCH Sites<br>
>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>>>><br>
>>>> FreeSWITCH-users mailing list<br>
>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>><br>
>>><br>
>><br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div></div>