Fax result when using mail to fax
Hi, I have a python script that checks a mailbox for faxes to be sent, when it finds a new mail it downloads the PDF and converts to Tiff and sends via the originate command, now the problem is I can't seem to find a way to get the fax report, nor in cdr it says what happened and the originate just says ok followed by uuid of the bridge. I'm sending the fax over a fxo gateway device. Due to it going over fxo, I have no clue if the remote fax machine answered call and the only place the fax report comes is in the console. Is there a variable or anything else that can be resent to the python script telling what the result was. I tried the execute on fax successful and fail variable but they don't seem to work. My python script generates the originate command going to loopback which goes to dial plan where the actual bridge to fxo gateway happens. How are others dealing with fax report I would love to hear. Regards, Bipin
Hello Bipin, there are some events fired via ESL, if you subscribe to them. We evaluate txfaxresult event and hangup event. The only thing which is critcal here, is that the contents of the 2 events have to be joined, in order to have all informations. And in my experience txfaxresult and hangup event do not always come in the same order, dependend on which side of the channels hangs up first. Best regards Peter On 05/15/17 22:06, Bipin Patel wrote:
Hi,
I have a python script that checks a mailbox for faxes to be sent, when it finds a new mail it downloads the PDF and converts to Tiff and sends via the originate command, now the problem is I can't seem to find a way to get the fax report, nor in cdr it says what happened and the originate just says ok followed by uuid of the bridge. I'm sending the fax over a fxo gateway device. Due to it going over fxo, I have no clue if the remote fax machine answered call and the only place the fax report comes is in the console. Is there a variable or anything else that can be resent to the python script telling what the result was. I tried the execute on fax successful and fail variable but they don't seem to work.
My python script generates the originate command going to loopback which goes to dial plan where the actual bridge to fxo gateway happens.
How are others dealing with fax report I would love to hear.
Regards, Bipin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- With kind regards Peter Steinbach Telefaks Services GmbH mailto:lists (att) telefaks.de Internet: www.telefaks.de
hi, well considering im running this FS on the raspberry pi for a small office, ESL would be like a lot just for the purpose, if the console can display the fax result then why isnt it possible to get the same in dialplan or somewhere else where i can fire a script or something and let the sender know what happened to their fax. i tried using execute_on_fax_success and execute_on_fax_failure but they dont seem to work while sending a fax, i think its for receiving only Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 12:24:44 AM
Hello Bipin,
there are some events fired via ESL, if you subscribe to them. We evaluate txfaxresult event and hangup event.
The only thing which is critcal here, is that the contents of the 2 events have to be joined, in order to have all informations. And in my experience txfaxresult and hangup event do not always come in the same order, dependend on which side of the channels hangs up first.
Best regards Peter
On 05/15/17 22:06, Bipin Patel wrote:
Hi,
I have a python script that checks a mailbox for faxes to be sent, when it finds a new mail it downloads the PDF and converts to Tiff and sends via the originate command, now the problem is I can't seem to find a way to get the fax report, nor in cdr it says what happened and the originate just says ok followed by uuid of the bridge. I'm sending the fax over a fxo gateway device. Due to it going over fxo, I have no clue if the remote fax machine answered call and the only place the fax report comes is in the console. Is there a variable or anything else that can be resent to the python script telling what the result was. I tried the execute on fax successful and fail variable but they don't seem to work.
My python script generates the originate command going to loopback which goes to dial plan where the actual bridge to fxo gateway happens.
How are others dealing with fax report I would love to hear.
Regards, Bipin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hello Bipin, the fax result is only available, long after the dialplan has beeen evaluated. So you will somehow have to use some event driven things. execute_on_fax_success would have been the next thing to propose, but id did not work in your case. In Linux you can use inotify. We have also used this method for getting certain infos from the Freeswitch logfile and then to fire actions (in our case firewall rules). Maybe this is an approach for you? Best regards Peter On 05/16/17 07:25, Bipin Patel wrote:
hi,
well considering im running this FS on the raspberry pi for a small office, ESL would be like a lot just for the purpose, if the console can display the fax result then why isnt it possible to get the same in dialplan or somewhere else where i can fire a script or something and let the sender know what happened to their fax.
i tried using execute_on_fax_success and execute_on_fax_failure but they dont seem to work while sending a fax, i think its for receiving only
Regards, Bipin
------------------------------------------------------------------------
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 12:24:44 AM
Hello Bipin,
there are some events fired via ESL, if you subscribe to them. We evaluate txfaxresult event and hangup event.
The only thing which is critcal here, is that the contents of the 2 events have to be joined, in order to have all informations. And in my experience txfaxresult and hangup event do not always come in the same order, dependend on which side of the channels hangs up first.
Best regards Peter
On 05/15/17 22:06, Bipin Patel wrote:
Hi,
I have a python script that checks a mailbox for faxes to be sent, when it finds a new mail it downloads the PDF and converts to Tiff and sends via the originate command, now the problem is I can't seem to find a way to get the fax report, nor in cdr it says what happened and the originate just says ok followed by uuid of the bridge. I'm sending the fax over a fxo gateway device. Due to it going over fxo, I have no clue if the remote fax machine answered call and the only place the fax report comes is in the console. Is there a variable or anything else that can be resent to the python script telling what the result was. I tried the execute on fax successful and fail variable but they don't seem to work.
My python script generates the originate command going to loopback which goes to dial plan where the actual bridge to fxo gateway happens.
How are others dealing with fax report I would love to hear.
Regards, Bipin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- With kind regards Peter Steinbach Telefaks Services GmbH mailto:lists (att) telefaks.de Internet: www.telefaks.de
hi, i think i have one other plan, let me try that and ill get back with the result. i have on more issue, when i send a fax using the originate command, it results in 2 invites being sent to the gateway, one sends the fax and i get report for that but the other fails so i also get a failed report for that, any idea what could be causing this, my originate command is as below originate [ignore_early_media=true,fax_verbose=true,fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU]sofia/gateway/ma/123466789 &txfax(\'" + att_path + ".tiff\')" Regards, Bipin Talky Communications VoIP/SMS/DID Services +971-55-9270058 www.talkycom.com <http://www.talkycom.com/> www.xbipin.com <http://www.xbipin.com/> ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 11:38:18 AM
Hello Bipin,
the fax result is only available, long after the dialplan has beeen evaluated.
So you will somehow have to use some event driven things. execute_on_fax_success would have been the next thing to propose, but id did not work in your case.
In Linux you can use inotify. We have also used this method for getting certain infos from the Freeswitch logfile and then to fire actions (in our case firewall rules). Maybe this is an approach for you?
Best regards Peter
On 05/16/17 07:25, Bipin Patel wrote:
hi,
well considering im running this FS on the raspberry pi for a small office, ESL would be like a lot just for the purpose, if the console can display the fax result then why isnt it possible to get the same in dialplan or somewhere else where i can fire a script or something and let the sender know what happened to their fax.
i tried using execute_on_fax_success and execute_on_fax_failure but they dont seem to work while sending a fax, i think its for receiving only
Regards, Bipin
------------------------------------------------------------------------
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 12:24:44 AM
Hello Bipin,
there are some events fired via ESL, if you subscribe to them. We evaluate txfaxresult event and hangup event.
The only thing which is critcal here, is that the contents of the 2 events have to be joined, in order to have all informations. And in my experience txfaxresult and hangup event do not always come in the same order, dependend on which side of the channels hangs up first.
Best regards Peter
On 05/15/17 22:06, Bipin Patel wrote:
Hi,
I have a python script that checks a mailbox for faxes to be sent, when it finds a new mail it downloads the PDF and converts to Tiff and sends via the originate command, now the problem is I can't seem to find a way to get the fax report, nor in cdr it says what happened and the originate just says ok followed by uuid of the bridge. I'm sending the fax over a fxo gateway device. Due to it going over fxo, I have no clue if the remote fax machine answered call and the only place the fax report comes is in the console. Is there a variable or anything else that can be resent to the python script telling what the result was. I tried the execute on fax successful and fail variable but they don't seem to work.
My python script generates the originate command going to loopback which goes to dial plan where the actual bridge to fxo gateway happens.
How are others dealing with fax report I would love to hear.
Regards, Bipin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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. On Tue, May 16, 2017 at 5:36 AM Bipin Patel <bipin@xbipin.com> wrote:
hi,
i think i have one other plan, let me try that and ill get back with the result.
i have on more issue, when i send a fax using the originate command, it results in 2 invites being sent to the gateway, one sends the fax and i get report for that but the other fails so i also get a failed report for that, any idea what could be causing this, my originate command is as below
originate
[ignore_early_media=true,fax_verbose=true,fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU]sofia/gateway/ma/123466789 &txfax(\'" + att_path + ".tiff\')"
Regards, Bipin
Talky Communications VoIP/SMS/DID Services +971-55-9270058 www.talkycom.com <http://www.talkycom.com/> www.xbipin.com <http://www.xbipin.com/> ------------------------------------------------------------------------
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 11:38:18 AM
Hello Bipin,
the fax result is only available, long after the dialplan has beeen evaluated.
So you will somehow have to use some event driven things. execute_on_fax_success would have been the next thing to propose, but id did not work in your case.
In Linux you can use inotify. We have also used this method for getting certain infos from the Freeswitch logfile and then to fire actions (in our case firewall rules). Maybe this is an approach for you?
Best regards Peter
On 05/16/17 07:25, Bipin Patel wrote:
hi,
well considering im running this FS on the raspberry pi for a small office, ESL would be like a lot just for the purpose, if the console can display the fax result then why isnt it possible to get the same in dialplan or somewhere else where i can fire a script or something and let the sender know what happened to their fax.
i tried using execute_on_fax_success and execute_on_fax_failure but they dont seem to work while sending a fax, i think its for receiving only
Regards, Bipin
------------------------------------------------------------------------
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 12:24:44 AM
Hello Bipin,
there are some events fired via ESL, if you subscribe to them. We evaluate txfaxresult event and hangup event.
The only thing which is critcal here, is that the contents of the 2 events have to be joined, in order to have all informations. And in my experience txfaxresult and hangup event do not always come in the same order, dependend on which side of the channels hangs up first.
Best regards Peter
On 05/15/17 22:06, Bipin Patel wrote:
Hi,
I have a python script that checks a mailbox for faxes to be sent, when it finds a new mail it downloads the PDF and converts to Tiff and sends via the originate command, now the problem is I can't seem to find a way to get the fax report, nor in cdr it says what happened and the originate just says ok followed by uuid of the bridge. I'm sending the fax over a fxo gateway device. Due to it going over fxo, I have no clue if the remote fax machine answered call and the only place the fax report comes is in the console. Is there a variable or anything else that can be resent to the python script telling what the result was. I tried the execute on fax successful and fail variable but they don't seem to work.
My python script generates the originate command going to loopback which goes to dial plan where the actual bridge to fxo gateway happens.
How are others dealing with fax report I would love to hear.
Regards, Bipin
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
hi, well i was also not sure what was happening but after doing some packet traces im seeing 2 invites being generated and both run parallel so one fails later on and one transmits the fax successfully, shall i paste a debug log? Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Michael Jerris <mike@jerris.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 5:41:30 PM
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.
On Tue, May 16, 2017 at 5:36 AM Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
i think i have one other plan, let me try that and ill get back with the result.
i have on more issue, when i send a fax using the originate command, it results in 2 invites being sent to the gateway, one sends the fax and i get report for that but the other fails so i also get a failed report for that, any idea what could be causing this, my originate command is as below
originate [ignore_early_media=true,fax_verbose=true,fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU]sofia/gateway/ma/123466789 &txfax(\'" + att_path + ".tiff\')"
Regards, Bipin
Talky Communications VoIP/SMS/DID Services +971-55-9270058 www.talkycom.com <http://www.talkycom.com> <http://www.talkycom.com/> www.xbipin.com <http://www.xbipin.com> <http://www.xbipin.com/> ------------------------------------------------------------------------
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: 5/16/2017, 11:38:18 AM
> Hello Bipin, > > the fax result is only available, long after the dialplan has beeen > evaluated. > > So you will somehow have to use some event driven things. > execute_on_fax_success would have been the next thing to propose, but id > did not work in your case. > > In Linux you can use inotify. We have also used this method for getting > certain infos from the Freeswitch logfile and then to fire actions (in > our case firewall rules). Maybe this is an approach for you? > > Best regards > Peter > > On 05/16/17 07:25, Bipin Patel wrote: >> hi, >> >> well considering im running this FS on the raspberry pi for a small >> office, ESL would be like a lot just for the purpose, if the console can >> display the fax result then why isnt it possible to get the same in >> dialplan or somewhere else where i can fire a script or something and >> let the sender know what happened to their fax. >> >> i tried using execute_on_fax_success and execute_on_fax_failure but they >> dont seem to work while sending a fax, i think its for receiving only >> >> >> >> Regards, >> Bipin >> >> >> >> ------------------------------------------------------------------------ >> >> -------- Original Message -------- >> Subject: Re: [Freeswitch-users] Fax result when using mail to fax >> From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> >> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> >> Date: 5/16/2017, 12:24:44 AM >> >>> Hello Bipin, >>> >>> there are some events fired via ESL, if you subscribe to them. We >>> evaluate txfaxresult event and hangup event. >>> >>> The only thing which is critcal here, is that the contents of the 2 >>> events have to be joined, in order to have all informations. And in my >>> experience txfaxresult and hangup event do not always come in the same >>> order, dependend on which side of the channels hangs up first. >>> >>> Best regards >>> Peter >>> >>> On 05/15/17 22:06, Bipin Patel wrote: >>>> Hi, >>>> >>>> I have a python script that checks a mailbox for faxes to be sent, when it >>>> finds a new mail it downloads the PDF and converts to Tiff and sends via >>>> the originate command, now the problem is I can't seem to find a way to get >>>> the fax report, nor in cdr it says what happened and the originate just >>>> says ok followed by uuid of the bridge. I'm sending the fax over a fxo >>>> gateway device. Due to it going over fxo, I have no clue if the remote fax >>>> machine answered call and the only place the fax report comes is in the >>>> console. Is there a variable or anything else that can be resent to the >>>> python script telling what the result was. I tried the execute on fax >>>> successful and fail variable but they don't seem to work. >>>> >>>> My python script generates the originate command going to loopback which >>>> goes to dial plan where the actual bridge to fxo gateway happens. >>>> >>>> How are others dealing with fax report I would love to hear. >>>> >>>> Regards, >>>> Bipin >>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting@freeswitch.org <mailto:consulting@freeswitch.org> >>>> http://www.freeswitchsolutions.com >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://confluence.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>> http://www.freeswitch.org >>>> >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org <mailto:consulting@freeswitch.org> >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You should investigate in your logs to see what is really going on… I’d set the assumptions of what is going on to the side and review logs to see whats happening.
On May 16, 2017, at 10:24 AM, Bipin Patel <bipin@xbipin.com> wrote:
hi,
well i was also not sure what was happening but after doing some packet traces im seeing 2 invites being generated and both run parallel so one fails later on and one transmits the fax successfully, shall i paste a debug log?
Regards, Bipin
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Michael Jerris <mike@jerris.com> <mailto:mike@jerris.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> <mailto:freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 5:41:30 PM
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.
On Tue, May 16, 2017 at 5:36 AM Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote: hi,
i think i have one other plan, let me try that and ill get back with the result.
i have on more issue, when i send a fax using the originate command, it results in 2 invites being sent to the gateway, one sends the fax and i get report for that but the other fails so i also get a failed report for that, any idea what could be causing this, my originate command is as below
originate [ignore_early_media=true,fax_verbose=true,fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU]sofia/gateway/ma/123466789 &txfax(\'" + att_path + ".tiff\')"
Regards, Bipin
Talky Communications VoIP/SMS/DID Services +971-55-9270058 www.talkycom.com <http://www.talkycom.com/> <http://www.talkycom.com/ <http://www.talkycom.com/>> www.xbipin.com <http://www.xbipin.com/> <http://www.xbipin.com/ <http://www.xbipin.com/>> ------------------------------------------------------------------------
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: 5/16/2017, 11:38:18 AM
Hello Bipin,
the fax result is only available, long after the dialplan has beeen evaluated.
So you will somehow have to use some event driven things. execute_on_fax_success would have been the next thing to propose, but id did not work in your case.
In Linux you can use inotify. We have also used this method for getting certain infos from the Freeswitch logfile and then to fire actions (in our case firewall rules). Maybe this is an approach for you?
Best regards Peter
On 05/16/17 07:25, Bipin Patel wrote:
hi,
well considering im running this FS on the raspberry pi for a small office, ESL would be like a lot just for the purpose, if the console can display the fax result then why isnt it possible to get the same in dialplan or somewhere else where i can fire a script or something and let the sender know what happened to their fax.
i tried using execute_on_fax_success and execute_on_fax_failure but they dont seem to work while sending a fax, i think its for receiving only
Regards, Bipin
------------------------------------------------------------------------
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: 5/16/2017, 12:24:44 AM
Hello Bipin,
there are some events fired via ESL, if you subscribe to them. We evaluate txfaxresult event and hangup event.
The only thing which is critcal here, is that the contents of the 2 events have to be joined, in order to have all informations. And in my experience txfaxresult and hangup event do not always come in the same order, dependend on which side of the channels hangs up first.
Best regards Peter
On 05/15/17 22:06, Bipin Patel wrote:
Hi,
I have a python script that checks a mailbox for faxes to be sent, when it finds a new mail it downloads the PDF and converts to Tiff and sends via the originate command, now the problem is I can't seem to find a way to get the fax report, nor in cdr it says what happened and the originate just says ok followed by uuid of the bridge. I'm sending the fax over a fxo gateway device. Due to it going over fxo, I have no clue if the remote fax machine answered call and the only place the fax report comes is in the console. Is there a variable or anything else that can be resent to the python script telling what the result was. I tried the execute on fax successful and fail variable but they don't seem to work.
My python script generates the originate command going to loopback which goes to dial plan where the actual bridge to fxo gateway happens.
How are others dealing with fax report I would love to hear.
Regards, Bipin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
hi, after a lot of digging figured out the issue, python script wasnt behaving properly, also managed to get the FAX report when fax was sent and then email it to sender, ill post the details soon once i have everything cleaned up. one last thing i wanted to know is im using a lua script which in turn calls a python script to send the mail with the FAX result but how do we print all the variable available for use, actually i want to know the dialed number where the fax was sent so can also print that in the report, im using the below in the originate. Manged to get it working api_hangup_hook=\'lua /home/pi/hangup.lua\' Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Michael Jerris <mike@jerris.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 7:16:51 PM
You should investigate in your logs to see what is really going on… I’d set the assumptions of what is going on to the side and review logs to see whats happening.
On May 16, 2017, at 10:24 AM, Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
well i was also not sure what was happening but after doing some packet traces im seeing 2 invites being generated and both run parallel so one fails later on and one transmits the fax successfully, shall i paste a debug log?
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Michael Jerris<mike@jerris.com> To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 5:41:30 PM
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.
On Tue, May 16, 2017 at 5:36 AM Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
i think i have one other plan, let me try that and ill get back with the result.
i have on more issue, when i send a fax using the originate command, it results in 2 invites being sent to the gateway, one sends the fax and i get report for that but the other fails so i also get a failed report for that, any idea what could be causing this, my originate command is as below
originate [ignore_early_media=true,fax_verbose=true,fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU]sofia/gateway/ma/123466789 &txfax(\'" + att_path + ".tiff\')"
Regards, Bipin
Talky Communications VoIP/SMS/DID Services +971-55-9270058 www.talkycom.com <http://www.talkycom.com/><http://www.talkycom.com/> www.xbipin.com <http://www.xbipin.com/><http://www.xbipin.com/> ------------------------------------------------------------------------
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: 5/16/2017, 11:38:18 AM
> Hello Bipin, > > the fax result is only available, long after the dialplan has beeen > evaluated. > > So you will somehow have to use some event driven things. > execute_on_fax_success would have been the next thing to propose, but id > did not work in your case. > > In Linux you can use inotify. We have also used this method for getting > certain infos from the Freeswitch logfile and then to fire actions (in > our case firewall rules). Maybe this is an approach for you? > > Best regards > Peter > > On 05/16/17 07:25, Bipin Patel wrote: >> hi, >> >> well considering im running this FS on the raspberry pi for a small >> office, ESL would be like a lot just for the purpose, if the console can >> display the fax result then why isnt it possible to get the same in >> dialplan or somewhere else where i can fire a script or something and >> let the sender know what happened to their fax. >> >> i tried using execute_on_fax_success and execute_on_fax_failure but they >> dont seem to work while sending a fax, i think its for receiving only >> >> >> >> Regards, >> Bipin >> >> >> >> ------------------------------------------------------------------------ >> >> -------- Original Message -------- >> Subject: Re: [Freeswitch-users] Fax result when using mail to fax >> From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> >> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> >> Date: 5/16/2017, 12:24:44 AM >> >>> Hello Bipin, >>> >>> there are some events fired via ESL, if you subscribe to them. We >>> evaluate txfaxresult event and hangup event. >>> >>> The only thing which is critcal here, is that the contents of the 2 >>> events have to be joined, in order to have all informations. And in my >>> experience txfaxresult and hangup event do not always come in the same >>> order, dependend on which side of the channels hangs up first. >>> >>> Best regards >>> Peter >>> >>> On 05/15/17 22:06, Bipin Patel wrote: >>>> Hi, >>>> >>>> I have a python script that checks a mailbox for faxes to be sent, when it >>>> finds a new mail it downloads the PDF and converts to Tiff and sends via >>>> the originate command, now the problem is I can't seem to find a way to get >>>> the fax report, nor in cdr it says what happened and the originate just >>>> says ok followed by uuid of the bridge. I'm sending the fax over a fxo >>>> gateway device. Due to it going over fxo, I have no clue if the remote fax >>>> machine answered call and the only place the fax report comes is in the >>>> console. Is there a variable or anything else that can be resent to the >>>> python script telling what the result was. I tried the execute on fax >>>> successful and fail variable but they don't seem to work. >>>> >>>> My python script generates the originate command going to loopback which >>>> goes to dial plan where the actual bridge to fxo gateway happens. >>>> >>>> How are others dealing with fax report I would love to hear. >>>> >>>> Regards, >>>> Bipin >>>> >>>> >>>> >>>> >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>>consulting@freeswitch.org <mailto:consulting@freeswitch.org> >>>>http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/> >>>> >>>> Official FreeSWITCH Sites >>>>http://www.freeswitch.org <http://www.freeswitch.org/> >>>>http://confluence.freeswitch.org <http://confluence.freeswitch.org/> >>>>http://www.cluecon.com <http://www.cluecon.com/> >>>> >>>> FreeSWITCH-users mailing list >>>>FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> >>>>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>>>http://www.freeswitch.org <http://www.freeswitch.org/> >>>> >>> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >>consulting@freeswitch.org <mailto:consulting@freeswitch.org> >>http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/> >> >> Official FreeSWITCH Sites >>http://www.freeswitch.org <http://www.freeswitch.org/> >>http://confluence.freeswitch.org <http://confluence.freeswitch.org/> >>http://www.cluecon.com <http://www.cluecon.com/> >> >> FreeSWITCH-users mailing list >>FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> >>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>http://www.freeswitch.org <http://www.freeswitch.org/> >> > >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference#LuaAP... <https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference#LuaAPIReference-SpecialCase:envobject>
On May 16, 2017, at 11:57 AM, Bipin Patel <bipin@xbipin.com> wrote:
hi,
after a lot of digging figured out the issue, python script wasnt behaving properly, also managed to get the FAX report when fax was sent and then email it to sender, ill post the details soon once i have everything cleaned up.
one last thing i wanted to know is im using a lua script which in turn calls a python script to send the mail with the FAX result but how do we print all the variable available for use, actually i want to know the dialed number where the fax was sent so can also print that in the report, im using the below in the originate. Manged to get it working
api_hangup_hook=\'lua /home/pi/hangup.lua\'
Regards, Bipin
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Michael Jerris <mike@jerris.com> <mailto:mike@jerris.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> <mailto:freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 7:16:51 PM
You should investigate in your logs to see what is really going on… I’d set the assumptions of what is going on to the side and review logs to see whats happening.
On May 16, 2017, at 10:24 AM, Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
well i was also not sure what was happening but after doing some packet traces im seeing 2 invites being generated and both run parallel so one fails later on and one transmits the fax successfully, shall i paste a debug log?
Regards, Bipin
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Michael Jerris <mike@jerris.com> <mailto:mike@jerris.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> <mailto:freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 5:41:30 PM
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.
On Tue, May 16, 2017 at 5:36 AM Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote: hi,
i think i have one other plan, let me try that and ill get back with the result.
i have on more issue, when i send a fax using the originate command, it results in 2 invites being sent to the gateway, one sends the fax and i get report for that but the other fails so i also get a failed report for that, any idea what could be causing this, my originate command is as below
originate [ignore_early_media=true,fax_verbose=true,fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU]sofia/gateway/ma/123466789 &txfax(\'" + att_path + ".tiff\')"
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: 5/16/2017, 11:38:18 AM
Hello Bipin,
the fax result is only available, long after the dialplan has beeen evaluated.
So you will somehow have to use some event driven things. execute_on_fax_success would have been the next thing to propose, but id did not work in your case.
In Linux you can use inotify. We have also used this method for getting certain infos from the Freeswitch logfile and then to fire actions (in our case firewall rules). Maybe this is an approach for you?
Best regards Peter
On 05/16/17 07:25, Bipin Patel wrote:
hi,
well considering im running this FS on the raspberry pi for a small office, ESL would be like a lot just for the purpose, if the console can display the fax result then why isnt it possible to get the same in dialplan or somewhere else where i can fire a script or something and let the sender know what happened to their fax.
i tried using execute_on_fax_success and execute_on_fax_failure but they dont seem to work while sending a fax, i think its for receiving only
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: 5/16/2017, 12:24:44 AM
> Hello Bipin, > > there are some events fired via ESL, if you subscribe to them. We > evaluate txfaxresult event and hangup event. > > The only thing which is critcal here, is that the contents of the 2 > events have to be joined, in order to have all informations. And in my > experience txfaxresult and hangup event do not always come in the same > order, dependend on which side of the channels hangs up first. > > Best regards > Peter > > On 05/15/17 22:06, Bipin Patel wrote: >> Hi, >> >> I have a python script that checks a mailbox for faxes to be sent, when it >> finds a new mail it downloads the PDF and converts to Tiff and sends via >> the originate command, now the problem is I can't seem to find a way to get >> the fax report, nor in cdr it says what happened and the originate just >> says ok followed by uuid of the bridge. I'm sending the fax over a fxo >> gateway device. Due to it going over fxo, I have no clue if the remote fax >> machine answered call and the only place the fax report comes is in the >> console. Is there a variable or anything else that can be resent to the >> python script telling what the result was. I tried the execute on fax >> successful and fail variable but they don't seem to work. >> >> My python script generates the originate command going to loopback which >> goes to dial plan where the actual bridge to fxo gateway happens. >> >> How are others dealing with fax report I would love to hear. >> >
hi, finally got the fax report to work, heres more info for those willing to do it without using any ESL stuff first in the originate command include the below (change the script path and name to whatever u use, this will be called when the fax session is over): api_hangup_hook=lua /home/pi/hangup.lua in your hangup.lua script u can get the spandsp variables as below: fax_success = env:getHeader("fax_success") fax_result_code = env:getHeader("fax_result_code") fax_result_text = env:getHeader("fax_result_text") these i just pass them to a python script where i send the mail to sender with a properly formatted fax report letting him know if it was successful or not Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Michael Jerris <mike@jerris.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 8:38:17 PM
https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference#LuaAP...
On May 16, 2017, at 11:57 AM, Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
after a lot of digging figured out the issue, python script wasnt behaving properly, also managed to get the FAX report when fax was sent and then email it to sender, ill post the details soon once i have everything cleaned up.
one last thing i wanted to know is im using a lua script which in turn calls a python script to send the mail with the FAX result but how do we print all the variable available for use, actually i want to know the dialed number where the fax was sent so can also print that in the report, im using the below in the originate. Manged to get it working
api_hangup_hook=\'lua /home/pi/hangup.lua\'
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Michael Jerris<mike@jerris.com> To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 7:16:51 PM
You should investigate in your logs to see what is really going on… I’d set the assumptions of what is going on to the side and review logs to see whats happening.
On May 16, 2017, at 10:24 AM, Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
well i was also not sure what was happening but after doing some packet traces im seeing 2 invites being generated and both run parallel so one fails later on and one transmits the fax successfully, shall i paste a debug log?
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Michael Jerris<mike@jerris.com> To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Date: 5/16/2017, 5:41:30 PM
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.
On Tue, May 16, 2017 at 5:36 AM Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
i think i have one other plan, let me try that and ill get back with the result.
i have on more issue, when i send a fax using the originate command, it results in 2 invites being sent to the gateway, one sends the fax and i get report for that but the other fails so i also get a failed report for that, any idea what could be causing this, my originate command is as below
originate [ignore_early_media=true,fax_verbose=true,fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU]sofia/gateway/ma/123466789 &txfax(\'" + att_path + ".tiff\')"
-------- Original Message -------- Subject: Re: [Freeswitch-users] Fax result when using mail to fax From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: 5/16/2017, 11:38:18 AM
> Hello Bipin, > > the fax result is only available, long after the dialplan has beeen > evaluated. > > So you will somehow have to use some event driven things. > execute_on_fax_success would have been the next thing to propose, but id > did not work in your case. > > In Linux you can use inotify. We have also used this method for getting > certain infos from the Freeswitch logfile and then to fire actions (in > our case firewall rules). Maybe this is an approach for you? > > Best regards > Peter > > On 05/16/17 07:25, Bipin Patel wrote: >> hi, >> >> well considering im running this FS on the raspberry pi for a small >> office, ESL would be like a lot just for the purpose, if the console can >> display the fax result then why isnt it possible to get the same in >> dialplan or somewhere else where i can fire a script or something and >> let the sender know what happened to their fax. >> >> i tried using execute_on_fax_success and execute_on_fax_failure but they >> dont seem to work while sending a fax, i think its for receiving only >> >> >> -------- Original Message -------- >> Subject: Re: [Freeswitch-users] Fax result when using mail to fax >> From: Peter Steinbach <lists@telefaks.de <mailto:lists@telefaks.de>> >> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> >> Date: 5/16/2017, 12:24:44 AM >> >>> Hello Bipin, >>> >>> there are some events fired via ESL, if you subscribe to them. We >>> evaluate txfaxresult event and hangup event. >>> >>> The only thing which is critcal here, is that the contents of the 2 >>> events have to be joined, in order to have all informations. And in my >>> experience txfaxresult and hangup event do not always come in the same >>> order, dependend on which side of the channels hangs up first. >>> >>> Best regards >>> Peter >>> >>> On 05/15/17 22:06, Bipin Patel wrote: >>>> Hi, >>>> >>>> I have a python script that checks a mailbox for faxes to be sent, when it >>>> finds a new mail it downloads the PDF and converts to Tiff and sends via >>>> the originate command, now the problem is I can't seem to find a way to get >>>> the fax report, nor in cdr it says what happened and the originate just >>>> says ok followed by uuid of the bridge. I'm sending the fax over a fxo >>>> gateway device. Due to it going over fxo, I have no clue if the remote fax >>>> machine answered call and the only place the fax report comes is in the >>>> console. Is there a variable or anything else that can be resent to the >>>> python script telling what the result was. I tried the execute on fax >>>> successful and fail variable but they don't seem to work. >>>> >>>> My python script generates the originate command going to loopback which >>>> goes to dial plan where the actual bridge to fxo gateway happens. >>>> >>>> How are others dealing with fax report I would love to hear. >>>> >>>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi there. How exactly to enable "classic" T.38 faxes with reINVITE in new FS versions? Not transcoding, not fax-to-email etc.
This hasn't changed really, the only difference now is we don't blindly accept reinvites unless you specifically enable T.38. What kind of problem are you experiencing? /b On Tue, May 16, 2017 at 7:31 AM, Yu Boot <yu@yu-boot.ru> wrote:
Hi there. How exactly to enable "classic" T.38 faxes with reINVITE in new FS versions? Not transcoding, not fax-to-email etc.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Book a phone call (CST) <https://freeswitch.com/appointment> Allison prompts for FreeSWITCH: *https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
I just can't establish T.38 via FS like I did before. FS sends "488 not acceptable here" on T.38 reINVITE from B-leg and that's all. I use late codec negotiation and "inherit codec" option. How to revert previous T.38 behaviour? 16.05.2017 23:37, Brian West пишет:
This hasn't changed really, the only difference now is we don't blindly accept reinvites unless you specifically enable T.38. What kind of problem are you experiencing?
/b
On Tue, May 16, 2017 at 7:31 AM, Yu Boot <yu@yu-boot.ru <mailto:yu@yu-boot.ru>> wrote:
Hi there. How exactly to enable "classic" T.38 faxes with reINVITE in new FS versions? Not transcoding, not fax-to-email etc.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
--
*/Brian West/* brian@freeswitch.org <mailto:brian@freeswitch.org>
*/Twitter: @FreeSWITCH , @briankwest/*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch*
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
hi, just set these 2 and ull get previous behavior fax_enable_t38_request=true fax_enable_t38=true Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org Date: 5/17/2017, 1:26:14 PM
I just can't establish T.38 via FS like I did before. FS sends "488 not acceptable here" on T.38 reINVITE from B-leg and that's all. I use late codec negotiation and "inherit codec" option. How to revert previous T.38 behaviour?
16.05.2017 23:37, Brian West пишет:
This hasn't changed really, the only difference now is we don't blindly accept reinvites unless you specifically enable T.38. What kind of problem are you experiencing?
/b
On Tue, May 16, 2017 at 7:31 AM, Yu Boot <yu@yu-boot.ru <mailto:yu@yu-boot.ru>> wrote:
Hi there. How exactly to enable "classic" T.38 faxes with reINVITE in new FS versions? Not transcoding, not fax-to-email etc.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
--
*/Brian West/* brian@freeswitch.org <mailto:brian@freeswitch.org>
*/Twitter: @FreeSWITCH , @briankwest/*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch*
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Where to add this? vars.xml? <X-PRE-PROCESS cmd="set" data="fax_enable_t38=true"/> ? 17.05.2017 13:03, Bipin Patel пишет:
hi,
just set these 2 and ull get previous behavior
fax_enable_t38_request=true fax_enable_t38=true
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org Date: 5/17/2017, 1:26:14 PM
I just can't establish T.38 via FS like I did before. FS sends "488 not acceptable here" on T.38 reINVITE from B-leg and that's all. I use late codec negotiation and "inherit codec" option. How to revert previous T.38 behaviour?
16.05.2017 23:37, Brian West пишет:
This hasn't changed really, the only difference now is we don't blindly accept reinvites unless you specifically enable T.38. What kind of problem are you experiencing?
/b
On Tue, May 16, 2017 at 7:31 AM, Yu Boot <yu@yu-boot.ru <mailto:yu@yu-boot.ru>> wrote:
Hi there. How exactly to enable "classic" T.38 faxes with reINVITE in new FS versions? Not transcoding, not fax-to-email etc.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
--
*/Brian West/* brian@freeswitch.org <mailto:brian@freeswitch.org>
*/Twitter: @FreeSWITCH , @briankwest/*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch*
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
hi, yes or u can set them just before the bridge in the dialplan or if ur using originate command u can set them inside it as well Regards, Bipin ------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org Date: 5/17/2017, 2:19:22 PM
Where to add this? vars.xml?
<X-PRE-PROCESS cmd="set" data="fax_enable_t38=true"/>
?
17.05.2017 13:03, Bipin Patel пишет:
hi,
just set these 2 and ull get previous behavior
fax_enable_t38_request=true fax_enable_t38=true
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org Date: 5/17/2017, 1:26:14 PM
I just can't establish T.38 via FS like I did before. FS sends "488 not acceptable here" on T.38 reINVITE from B-leg and that's all. I use late codec negotiation and "inherit codec" option. How to revert previous T.38 behaviour?
16.05.2017 23:37, Brian West пишет:
This hasn't changed really, the only difference now is we don't blindly accept reinvites unless you specifically enable T.38. What kind of problem are you experiencing?
/b
On Tue, May 16, 2017 at 7:31 AM, Yu Boot <yu@yu-boot.ru <mailto:yu@yu-boot.ru>> wrote:
Hi there. How exactly to enable "classic" T.38 faxes with reINVITE in new FS versions? Not transcoding, not fax-to-email etc.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
--
*/Brian West/* brian@freeswitch.org <mailto:brian@freeswitch.org>
*/Twitter: @FreeSWITCH , @briankwest/*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch*
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I sent out an email to the list warning everyone of this behavior change when it happened. Any pointers on what I can do to get this information where list members would actually see it? On Wed, May 17, 2017 at 6:38 AM, Bipin Patel <bipin@xbipin.com> wrote:
hi,
yes or u can set them just before the bridge in the dialplan or if ur using originate command u can set them inside it as well
Regards, Bipin
------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> <yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org Date: 5/17/2017, 2:19:22 PM
Where to add this? vars.xml?
<X-PRE-PROCESS cmd="set" data="fax_enable_t38=true"/>
?
17.05.2017 13:03, Bipin Patel пишет:
hi,
just set these 2 and ull get previous behavior
fax_enable_t38_request=true fax_enable_t38=true
Regards, Bipin
------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> <yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org Date: 5/17/2017, 1:26:14 PM
I just can't establish T.38 via FS like I did before. FS sends "488 not acceptable here" on T.38 reINVITE from B-leg and that's all. I use late codec negotiation and "inherit codec" option. How to revert previous T.38 behaviour?
16.05.2017 23:37, Brian West пишет:
This hasn't changed really, the only difference now is we don't blindly accept reinvites unless you specifically enable T.38. What kind of problem are you experiencing?
/b
On Tue, May 16, 2017 at 7:31 AM, Yu Boot <yu@yu-boot.ru> wrote:
Hi there. How exactly to enable "classic" T.38 faxes with reINVITE in new FS versions? Not transcoding, not fax-to-email etc.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch>
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 <(918)%20420-9001> | *F:*+19184209002 <(918)%20420-9002> | *M:*+1918424WEST (9378) *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Book a phone call (CST) <https://freeswitch.com/appointment> Allison prompts for FreeSWITCH: *https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
Hi , we already have lot of info about t38 in fs located at https://freeswitch.org/confluence/display/FREESWITCH/mod_spandsp note sure but we probably could have "an attention note" to the change introduced here.. then when searching on google it will point to confluence :) Regards, António On 05/17/2017 03:52 PM, Brian West wrote:
I sent out an email to the list warning everyone of this behavior change when it happened. Any pointers on what I can do to get this information where list members would actually see it?
On Wed, May 17, 2017 at 6:38 AM, Bipin Patel <bipin@xbipin.com <mailto:bipin@xbipin.com>> wrote:
hi,
yes or u can set them just before the bridge in the dialplan or if ur using originate command u can set them inside it as well
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> <mailto:yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> Date: 5/17/2017, 2:19:22 PM
Where to add this? vars.xml?
<X-PRE-PROCESS cmd="set" data="fax_enable_t38=true"/>
?
17.05.2017 13:03, Bipin Patel пишет:
hi,
just set these 2 and ull get previous behavior
fax_enable_t38_request=true fax_enable_t38=true
Regards, Bipin
------------------------------------------------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> <mailto:yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> Date: 5/17/2017, 1:26:14 PM
I just can't establish T.38 via FS like I did before. FS sends "488 not acceptable here" on T.38 reINVITE from B-leg and that's all. I use late codec negotiation and "inherit codec" option. How to revert previous T.38 behaviour?
16.05.2017 23:37, Brian West пишет:
This hasn't changed really, the only difference now is we don't blindly accept reinvites unless you specifically enable T.38. What kind of problem are you experiencing?
/b
On Tue, May 16, 2017 at 7:31 AM, Yu Boot <yu@yu-boot.ru <mailto:yu@yu-boot.ru>> wrote:
Hi there. How exactly to enable "classic" T.38 faxes with reINVITE in new FS versions? Not transcoding, not fax-to-email etc.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
--
*/Brian West/* brian@freeswitch.org <mailto:brian@freeswitch.org>
*/Twitter: @FreeSWITCH , @briankwest/*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com <http://www.freeswitchcookbook.com>
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch>
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 <tel:%28918%29%20420-9001> | *F:*+19184209002 <tel:%28918%29%20420-9002> | *M:*+1918424WEST (9378) *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
--
*/Brian West/* brian@freeswitch.org <mailto:brian@freeswitch.org>
*/Twitter: @FreeSWITCH , @briankwest/*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch*
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
What I find somewhat funny is Yu Boot actually was involved in the thread where I announced the behavior change, so maybe it wasn't well understood what the change was. /b On Wed, May 17, 2017 at 8:52 AM, Brian West <brian@freeswitch.org> wrote:
I sent out an email to the list warning everyone of this behavior change when it happened. Any pointers on what I can do to get this information where list members would actually see it?
On Wed, May 17, 2017 at 6:38 AM, Bipin Patel <bipin@xbipin.com> wrote:
hi,
yes or u can set them just before the bridge in the dialplan or if ur using originate command u can set them inside it as well
Regards, Bipin
------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> <yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org Date: 5/17/2017, 2:19:22 PM
Where to add this? vars.xml?
<X-PRE-PROCESS cmd="set" data="fax_enable_t38=true"/>
?
17.05.2017 13:03, Bipin Patel пишет:
hi,
just set these 2 and ull get previous behavior
fax_enable_t38_request=true fax_enable_t38=true
Regards, Bipin
------------------------------ -------- Original Message -------- Subject: Re: [Freeswitch-users] T.38 in new FS versions From: Yu Boot <yu@yu-boot.ru> <yu@yu-boot.ru> To: freeswitch-users@lists.freeswitch.org Date: 5/17/2017, 1:26:14 PM
I just can't establish T.38 via FS like I did before. FS sends "488 not acceptable here" on T.38 reINVITE from B-leg and that's all. I use late codec negotiation and "inherit codec" option. How to revert previous T.38 behaviour?
16.05.2017 23:37, Brian West пишет:
This hasn't changed really, the only difference now is we don't blindly accept reinvites unless you specifically enable T.38. What kind of problem are you experiencing?
/b
On Tue, May 16, 2017 at 7:31 AM, Yu Boot <yu@yu-boot.ru> wrote:
Hi there. How exactly to enable "classic" T.38 faxes with reINVITE in new FS versions? Not transcoding, not fax-to-email etc.
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch>
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 <(918)%20420-9001> | *F:*+19184209002 <(918)%20420-9002> | *M:*+1918424WEST (9378) *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch>
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 <(918)%20420-9001> | *F:*+19184209002 <(918)%20420-9002> | *M:*+1918424WEST (9378) *Skype:*briankwest
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Book a phone call (CST) <https://freeswitch.com/appointment> Allison prompts for FreeSWITCH: *https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
participants (6)
-
Antonio Silva
-
Bipin Patel
-
Brian West
-
Michael Jerris
-
Peter Steinbach
-
Yu Boot