Hello! I'm working on setting up a FreeSWITCH/Flowroute fax server. The server is connected without any nat on a 20MB fiber internet connection. I've built some lua scripts that allow me to receive and send faxes and log all the faxes to a sqlite database. I even have a management script that can be called from the fs_cli to add fax2email routes and adjust settings. It's still a pretty rough implementation but overall it's working fairly well but I have two main questions that I hope someone could help me with. 1) I would like to detect "voice calls" or maybe I want to detect fax calls? There's a dialplan function to listen for and detect a fax caller but I'm having trouble implementing it in my lua script. It seems it's a non-blocking function, maybe? Because it just walks right over that line instead of waiting and listening for any fax tones. I thought it would block the script for x seconds and listen for a fax tone and return a result based on what it found. Can someone help me accomplish something similar to that? 2) So far, by far... my most common error is "The call dropped prematurely". I'm not sure how to start debugging the error to figure out what's causing it and how (if I can) solve it. I do have pcap's of the calls from pcapsipdump and I also have the freeswitch log of each call (my lua script pulls and saves that for each fax call). I've opened the pcap files up in wireshark but I don't know what I'm looking for and I think that might be over my head at the moment. Can anyone give me any help on what this error is normally caused by or what I could look for and/or test? Here are a couple of example logs that ended with "The call dropped prematurely". http://bmts.us/faxlogs/FAX-2e913a50-3a4f-4abc-9882-a323a97e5138.log http://bmts.us/faxlogs/FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log
The fax detect function starts listening for fax tones while the call continues. You are right, in that it is a non-blocking function. What you probably need to do, after making sure that media is established, is call fax detect, then give the caller something to do while you wait for a possible fax tone. You could just play silence to the caller for a few seconds, unless there was something more relevant to do. I believe that the original intent of fax detect was to be invoked just before an IVR was run, so that a voice caller would just listen to the menu, but a fax would start making tones that could then be detected, transferring the call to the named extension where it would be answered as a fax. Hope that helps! On 14-03-24 01:49 PM, bruce@sqls.net wrote:
Hello! I'm working on setting up a FreeSWITCH/Flowroute fax server. The server is connected without any nat on a 20MB fiber internet connection. I've built some lua scripts that allow me to receive and send faxes and log all the faxes to a sqlite database. I even have a management script that can be called from the fs_cli to add fax2email routes and adjust settings. It's still a pretty rough implementation but overall it's working fairly well but I have two main questions that I hope someone could help me with.
1) I would like to detect "voice calls" or maybe I want to detect fax calls? There's a dialplan function to listen for and detect a fax caller but I'm having trouble implementing it in my lua script. It seems it's a non-blocking function, maybe? Because it just walks right over that line instead of waiting and listening for any fax tones. I thought it would block the script for x seconds and listen for a fax tone and return a result based on what it found. Can someone help me accomplish something similar to that?
2) So far, by far... my most common error is "The call dropped prematurely". I'm not sure how to start debugging the error to figure out what's causing it and how (if I can) solve it. I do have pcap's of the calls from pcapsipdump and I also have the freeswitch log of each call (my lua script pulls and saves that for each fax call). I've opened the pcap files up in wireshark but I don't know what I'm looking for and I think that might be over my head at the moment. Can anyone give me any help on what this error is normally caused by or what I could look for and/or test?
Here are a couple of example logs that ended with "The call dropped prematurely". http://bmts.us/faxlogs/FAX-2e913a50-3a4f-4abc-9882-a323a97e5138.log http://bmts.us/faxlogs/_FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log_ <http://bmts.us/faxlogs/FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log> __ __
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Ah, thanks for the info on fax detect.. With that and reading some more examples/docs I tried this.. session:answer() session:execute("playback", "silence_stream://2000") session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. uuid .. ".tif'") session:sleep(15000); session:hangup() Which seems to work. Once it detects a fax it fire's off the rxfax app. I'm not sure if maybe there's a better method to do this or not. This doesn't really leave me a variable saying that no fax was detected outside the lack of result variables from rxfax but maybe that's good enough. Any ideas on a better solution, anyone? :) On a side note. Does anyone know -why- the playback silence_stream is needed? Or is it not needed at all? I see that in almost every example on using FreeSWITCH faxing but I'm not sure what it's purpose is. Thanks. ------ Original Message ------ From: "Tim St. Pierre" <fs-list@communicatefreely.net> To: freeswitch-users@lists.freeswitch.org Sent: 3/24/2014 3:15:08 PM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
The fax detect function starts listening for fax tones while the call continues. You are right, in that it is a non-blocking function.
What you probably need to do, after making sure that media is established, is call fax detect, then give the caller something to do while you wait for a possible fax tone. You could just play silence to the caller for a few seconds, unless there was something more relevant to do. I believe that the original intent of fax detect was to be invoked just before an IVR was run, so that a voice caller would just listen to the menu, but a fax would start making tones that could then be detected, transferring the call to the named extension where it would be answered as a fax.
Hope that helps!
On 14-03-24 01:49 PM, bruce@sqls.net wrote:
Hello! I'm working on setting up a FreeSWITCH/Flowroute fax server. The server is connected without any nat on a 20MB fiber internet connection. I've built some lua scripts that allow me to receive and send faxes and log all the faxes to a sqlite database. I even have a management script that can be called from the fs_cli to add fax2email routes and adjust settings. It's still a pretty rough implementation but overall it's working fairly well but I have two main questions that I hope someone could help me with.
1) I would like to detect "voice calls" or maybe I want to detect fax calls? There's a dialplan function to listen for and detect a fax caller but I'm having trouble implementing it in my lua script. It seems it's a non-blocking function, maybe? Because it just walks right over that line instead of waiting and listening for any fax tones. I thought it would block the script for x seconds and listen for a fax tone and return a result based on what it found. Can someone help me accomplish something similar to that?
2) So far, by far... my most common error is "The call dropped prematurely". I'm not sure how to start debugging the error to figure out what's causing it and how (if I can) solve it. I do have pcap's of the calls from pcapsipdump and I also have the freeswitch log of each call (my lua script pulls and saves that for each fax call). I've opened the pcap files up in wireshark but I don't know what I'm looking for and I think that might be over my head at the moment. Can anyone give me any help on what this error is normally caused by or what I could look for and/or test?
Here are a couple of example logs that ended with "The call dropped prematurely". http://bmts.us/faxlogs/FAX-2e913a50-3a4f-4abc-9882-a323a97e5138.log http://bmts.us/faxlogs/_FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log_ <http://bmts.us/faxlogs/FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log> __ __
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 can use something like this: <action application="set" data="execute_on_answer=spandsp_start_fax_detect transfer 'FAX_DETECTED XML default' 6"/> This way the call will be transferred only if a fax signal is detected, otherwise, you can continue playing prompts or transferring the call somewhere else after the 6 seconds. Also you don't need to play silence, just start the fax detection. The silence would only delays the fax detection. You can play a prompt or ring back tone for 6 seconds or so and if fax is not detected, handle it as a non-fax call. Regards, Ali Pey On Mon, Mar 24, 2014 at 5:19 PM, <bruce@sqls.net> wrote:
Ah, thanks for the info on fax detect.. With that and reading some more examples/docs I tried this..
session:answer() session:execute("playback", "silence_stream://2000") session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. uuid .. ".tif'") session:sleep(15000); session:hangup()
Which seems to work. Once it detects a fax it fire's off the rxfax app. I'm not sure if maybe there's a better method to do this or not. This doesn't really leave me a variable saying that no fax was detected outside the lack of result variables from rxfax but maybe that's good enough. Any ideas on a better solution, anyone? :)
On a side note. Does anyone know -why- the playback silence_stream is needed? Or is it not needed at all? I see that in almost every example on using FreeSWITCH faxing but I'm not sure what it's purpose is. Thanks.
------ Original Message ------ From: "Tim St. Pierre" <fs-list@communicatefreely.net> To: freeswitch-users@lists. <freeswitch-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=19bd6695-7e80-47d2-a671-407cd1f61276&cm_destination=http://freeswitch.org> Sent: 3/24/2014 3:15:08 PM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
The fax detect function starts listening for fax tones while the call continues. You are right, in that it is a non-blocking function.
What you probably need to do, after making sure that media is established, is call fax detect, then give the caller something to do while you wait for a possible fax tone. You could just play silence to the caller for a few seconds, unless there was something more relevant to do. I believe that the original intent of fax detect was to be invoked just before an IVR was run, so that a voice caller would just listen to the menu, but a fax would start making tones that could then be detected, transferring the call to the named extension where it would be answered as a fax.
Hope that helps!
On 14-03-24 01:49 PM, bruce@sqls.net wrote:
Hello! I'm working on setting up a FreeSWITCH/Flowroute fax server. The server is connected without any nat on a 20MB fiber internet connection. I've built some lua scripts that allow me to receive and send faxes and log all the faxes to a sqlite database. I even have a management script that can be called from the fs_cli to add fax2email routes and adjust settings. It's still a pretty rough implementation but overall it's working fairly well but I have two main questions that I hope someone could help me with.
1) I would like to detect "voice calls" or maybe I want to detect fax calls? There's a dialplan function to listen for and detect a fax caller but I'm having trouble implementing it in my lua script. It seems it's a non-blocking function, maybe? Because it just walks right over that line instead of waiting and listening for any fax tones. I thought it would block the script for x seconds and listen for a fax tone and return a result based on what it found. Can someone help me accomplish something similar to that?
2) So far, by far... my most common error is "The call dropped prematurely". I'm not sure how to start debugging the error to figure out what's causing it and how (if I can) solve it. I do have pcap's of the calls from pcapsipdump and I also have the freeswitch log of each call (my lua script pulls and saves that for each fax call). I've opened the pcap files up in wireshark but I don't know what I'm looking for and I think that might be over my head at the moment. Can anyone give me any help on what this error is normally caused by or what I could look for and/or test?
Here are a couple of example logs that ended with "The call dropped prematurely". <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=b9c10772-5827-46aa-98a5-23a2330c7e13&cm_destination=http://bmts.us/faxlogs/FAX-2e913a50-3a4f-4abc-9882-a323a97e5138.log>
http://bmts.us/faxlogs/FAX-<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=e9d443c1-f146-415d-83d7-3361d17f9462&cm_destination=http://bmts.us/faxlogs/FAX-> 2e913a50-3a4f-4abc-9882-a323a97e5138.log
<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=5c914ed7-f254-440c-8e6d-7d8ed891765a&cm_destination=http://bmts.us/faxlogs/_FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log_> http://bmts.us/faxlogs/_FAX-<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=840d221b-357a-44b0-982b-1533c317dadb&cm_destination=http://bmts.us/faxlogs/_FAX-> 59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log_ <<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=4c319ad8-db28-43ff-9060-f27b7d35758a&cm_destination=http://bmts.us/faxlogs/FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log> http://bmts.us/faxlogs/FAX-<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=d077bb12-78d7-4a2f-8313-bb4dc3d3d6c5&cm_destination=http://bmts.us/faxlogs/FAX-> 59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log> __ __
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=95dc4d0c-6f2b-43c8-95a0-dc34cc845f63&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=ba6a5ef6-71d4-41b7-acd3-e752dca2ad39&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=a1006375-44ae-46ee-8787-772991abd4ca&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=664fa681-b411-40d3-9a54-3da5afcd5546&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=d4f57c62-7824-4c24-b573-07a2ba1a3dc5&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=44cbde89-df49-4eff-9189-76ba6c60af1c&cm_destination=http://www.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=30fe28bf-2576-4f77-88ef-f6f7e635126e&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=4fcce9fc-086e-4cd6-8046-a9f22d0c1fc0&cm_destination=http://wiki.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=2d3bded0-aac4-4123-8e89-373db3d2bea7&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=c4ba51ec-eff5-41b3-83d2-6deb65879fa9&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=bf398a8b-bb6e-4bb0-b6c5-1055a0bda5a0&cm_destination=http://freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=39ee4396-a982-4515-a1e2-ea3c1cd6abe7&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=21394d2a-77a2-44b0-b9e1-5921e4595c66&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=0542f7b0-29c3-4f08-8b01-c48363ee5339&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users> freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=7cad591b-20ab-4e8a-954d-6dd60ecaf601&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=82256ec1-4f59-4f16-8af7-5d8870030f25&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=57853c78-5ce3-43c1-9781-4524aa56a7a3&cm_destination=http://www.freeswitch.org>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=97771563-d3ee-47de-87fb-d566fd6937fb&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=1a88c0ca-437b-4b9b-a155-40d0537ec685&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=55239f20-e973-47ca-bad0-58db3cd85348&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=eaf5dce9-4806-4300-b491-446c6b40826c&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=c44a6823-7d45-4ddc-8c5d-397029d000fd&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=c084909d-c1a9-47be-9dae-25182d56e692&cm_destination=http://www.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=3a2a5744-763f-44bb-a46e-3ce439fdad90&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=e3c47bd5-da6e-48c5-9064-13344623d479&cm_destination=http://wiki.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=6e634c9c-5e23-47f2-b455-a9e4255b2a56&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=714364c6-145c-45b4-b60f-2022dba471a2&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=ee6d86b2-99d2-4c54-b837-b8ae11c8f629&cm_destination=http://freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=93f0fbe2-02fe-4b85-931e-48d88a73e16f&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=23603af1-6fe3-467e-918d-161a73cd3a0f&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=33e80e0e-b60d-49ae-a49d-1c207c5d61ba&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users> freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=32dccef8-e9e4-4dc5-b748-9bac864da2a1&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=adccdfc7-898e-4b4d-90e7-5f676e87f286&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=babb151f-f865-449f-baac-972843054549&cm_destination=http://www.freeswitch.org>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=5861ba48-883c-456c-b1d0-654b9757794a&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=521cec9c-4e64-4907-a3a2-da04899a70e5&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=b08e67c9-4c49-4543-8fc5-5de30813ce93&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=644168a8-9d41-4bbe-9e1d-d7d697d67ead&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=8f2aef4c-0343-4ffa-816a-122562cf9281&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=d2761052-041d-4daa-b9b2-1900f945a350&cm_destination=http://www.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=2e383671-c064-4b05-9b22-df42e44e7537&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=c39fc734-5609-45cd-b2cc-18f2328dd436&cm_destination=http://wiki.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=328528be-c7e0-4e60-a392-49cb355524b7&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=5f99a4ba-6ad7-42f3-ac0d-f13d7db3ccfe&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=a5fb5216-cf6c-4b3c-b16b-ed9438b7e29d&cm_destination=http://freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=5415791b-4bf9-4ebb-b7ca-939f1bc4c4a9&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=49cdd797-90ef-4471-960d-c83ac6d62a7b&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=fee66711-4272-4116-8ef7-cb0f5fd0868e&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users> freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=0f4ab484-2796-49d0-898a-651e55492e2a&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users <https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=2e86f3ca-4dd0-4340-b9a3-c444a6ab71ea&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ee64b0c4-b3ea-4168-b533-9d4a1ad93dc5&cm_type=link&cm_link=993924c7-bf1e-4eca-b33b-b0a0a06da2cb&cm_destination=http://www.freeswitch.org>
Switch the fax detect and silence_stream so that fax detect happens first. You want Freeswitch to be listening during the silence stream. What's probably happening right now is that the fax isn't detected until you are in the 15s sleep. On 14-03-24 05:19 PM, bruce@sqls.net wrote:
Ah, thanks for the info on fax detect.. With that and reading some more examples/docs I tried this..
session:answer() session:execute("playback", "silence_stream://2000") session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. uuid .. ".tif'") session:sleep(15000); session:hangup()
Which seems to work. Once it detects a fax it fire's off the rxfax app. I'm not sure if maybe there's a better method to do this or not. This doesn't really leave me a variable saying that no fax was detected outside the lack of result variables from rxfax but maybe that's good enough. Any ideas on a better solution, anyone? :)
On a side note. Does anyone know -why- the playback silence_stream is needed? Or is it not needed at all? I see that in almost every example on using FreeSWITCH faxing but I'm not sure what it's purpose is. Thanks.
------ Original Message ------ From: "Tim St. Pierre" <fs-list@communicatefreely.net> To: freeswitch-users@lists.freeswitch.org Sent: 3/24/2014 3:15:08 PM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
The fax detect function starts listening for fax tones while the call continues. You are right, in that it is a non-blocking function.
What you probably need to do, after making sure that media is established, is call fax detect, then give the caller something to do while you wait for a possible fax tone. You could just play silence to the caller for a few seconds, unless there was something more relevant to do. I believe that the original intent of fax detect was to be invoked just before an IVR was run, so that a voice caller would just listen to the menu, but a fax would start making tones that could then be detected, transferring the call to the named extension where it would be answered as a fax.
Hope that helps!
On 14-03-24 01:49 PM, bruce@sqls.net wrote:
Hello! I'm working on setting up a FreeSWITCH/Flowroute fax server. The server is connected without any nat on a 20MB fiber internet connection. I've built some lua scripts that allow me to receive and send faxes and log all the faxes to a sqlite database. I even have a management script that can be called from the fs_cli to add fax2email routes and adjust settings. It's still a pretty rough implementation but overall it's working fairly well but I have two main questions that I hope someone could help me with.
1) I would like to detect "voice calls" or maybe I want to detect fax calls? There's a dialplan function to listen for and detect a fax caller but I'm having trouble implementing it in my lua script. It seems it's a non-blocking function, maybe? Because it just walks right over that line instead of waiting and listening for any fax tones. I thought it would block the script for x seconds and listen for a fax tone and return a result based on what it found. Can someone help me accomplish something similar to that?
2) So far, by far... my most common error is "The call dropped prematurely". I'm not sure how to start debugging the error to figure out what's causing it and how (if I can) solve it. I do have pcap's of the calls from pcapsipdump and I also have the freeswitch log of each call (my lua script pulls and saves that for each fax call). I've opened the pcap files up in wireshark but I don't know what I'm looking for and I think that might be over my head at the moment. Can anyone give me any help on what this error is normally caused by or what I could look for and/or test?
Here are a couple of example logs that ended with "The call dropped prematurely". http://bmts.us/faxlogs/FAX-2e913a50-3a4f-4abc-9882-a323a97e5138.log http://bmts.us/faxlogs/_FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log_ <http://bmts.us/faxlogs/FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log> __ __
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 actually did that after reviewing some captures in wireshark and I realized the silence was just taking up time at the start. This is what I have now. session:answer() session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. uuid .. ".tif'") session:execute("playback", "silence_stream://15000") session:hangup() With that, I don't even need the sleep. So it's commented out and the system plays silence for the 15 seconds while it listens for a fax tone. If it never gets a tone then all the session variables that rxfax sets are empty so later on in the script if those are empty I just set the error as "No fax detected, possible voice call" for my logging and e-mail notifications stuff. I thought about having the fax_detect just set a variable and run a while loop to detect the variable (with a timeout) but that seems more wasteful on resources and likely to break somehow creating an endlessly running loop. Thanks for the comments from everyone else too. The IVR ideas make sense if I took voice calls but this is a 100% fax only system. I suppose I could play a notice announcement like "This is a fax system. Please start you fax now or hangup"... Maybe later :) The recommendations to have the fax_detect switch to other parts of the dialplan won't work for me since I'm doing this all 100% inside a LUA script.. Or at least I don't think they would work. I don't know how to register dialplan extensions inside a LUA script. I think this brings me to my #2 question. When faxes don't work. How do I go about finding the problem? Right now, like I mentioned initially, the majority of my failed faxes just give the error "The call dropped prematurely". I'm currently pretty clueless on knowing where to go with that... Right now my script pulls out the entire freeswitch log for the call and puts it into a file named based on the call uuid. Then I have pcapsipdump running which gives me a log of the sip/rdp/t38 packets. I also log all the channel and rxfax variables into a sqlite database for each call. So I've got tons of data to look at :) I've been toying around with wireshark but I have no idea what the call is suppose to look like :). The feature in wireshark that lets me play the audio seems the most helpful for me because I can at least listen to see if any fax tones or weird static is on the line. Is there a good guide I could reference to understand at least the initial negation of a ulaw/t38 fax call? That way I'll have a starting clue on where a problem might be. ------ Original Message ------ From: "Tim St. Pierre" <fs-list@communicatefreely.net> To: freeswitch-users@lists.freeswitch.org Sent: 3/24/2014 7:31:50 PM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
Switch the fax detect and silence_stream so that fax detect happens first. You want Freeswitch to be listening during the silence stream. What's probably happening right now is that the fax isn't detected until you are in the 15s sleep.
On 14-03-24 05:19 PM, bruce@sqls.net wrote:
Ah, thanks for the info on fax detect.. With that and reading some more examples/docs I tried this..
session:answer() session:execute("playback", "silence_stream://2000") session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. uuid .. ".tif'") session:sleep(15000); session:hangup()
Which seems to work. Once it detects a fax it fire's off the rxfax app. I'm not sure if maybe there's a better method to do this or not. This doesn't really leave me a variable saying that no fax was detected outside the lack of result variables from rxfax but maybe that's good enough. Any ideas on a better solution, anyone? :)
On a side note. Does anyone know -why- the playback silence_stream is needed? Or is it not needed at all? I see that in almost every example on using FreeSWITCH faxing but I'm not sure what it's purpose is. Thanks.
------ Original Message ------ From: "Tim St. Pierre" <fs-list@communicatefreely.net> To: freeswitch-users@lists.freeswitch.org Sent: 3/24/2014 3:15:08 PM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
The fax detect function starts listening for fax tones while the call continues. You are right, in that it is a non-blocking function.
What you probably need to do, after making sure that media is established, is call fax detect, then give the caller something to do while you wait for a possible fax tone. You could just play silence to the caller for a few seconds, unless there was something more relevant to do. I believe that the original intent of fax detect was to be invoked just before an IVR was run, so that a voice caller would just listen to the menu, but a fax would start making tones that could then be detected, transferring the call to the named extension where it would be answered as a fax.
Hope that helps!
On 14-03-24 01:49 PM, bruce@sqls.net wrote:
Hello! I'm working on setting up a FreeSWITCH/Flowroute fax server. The server is connected without any nat on a 20MB fiber internet connection. I've built some lua scripts that allow me to receive and send faxes and log all the faxes to a sqlite database. I even have a management script that can be called from the fs_cli to add fax2email routes and adjust settings. It's still a pretty rough implementation but overall it's working fairly well but I have two main questions that I hope someone could help me with.
1) I would like to detect "voice calls" or maybe I want to detect fax calls? There's a dialplan function to listen for and detect a fax caller but I'm having trouble implementing it in my lua script. It seems it's a non-blocking function, maybe? Because it just walks right over that line instead of waiting and listening for any fax tones. I thought it would block the script for x seconds and listen for a fax tone and return a result based on what it found. Can someone help me accomplish something similar to that?
2) So far, by far... my most common error is "The call dropped prematurely". I'm not sure how to start debugging the error to figure out what's causing it and how (if I can) solve it. I do have pcap's of the calls from pcapsipdump and I also have the freeswitch log of each call (my lua script pulls and saves that for each fax call). I've opened the pcap files up in wireshark but I don't know what I'm looking for and I think that might be over my head at the moment. Can anyone give me any help on what this error is normally caused by or what I could look for and/or test?
Here are a couple of example logs that ended with "The call dropped prematurely".
http://bmts.us/faxlogs/FAX-2e913a50-3a4f-4abc-9882-a323a97e5138.log
http://bmts.us/faxlogs/_FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log_
<http://bmts.us/faxlogs/FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log> __ __
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Have you done any performance testing? How many concurrent faxes can you do? Yes, in Lua you can do transfer to FAX_DETECT extension. It's fairly simple. If you choose to go that route, I can help you to set it up. Try api_hangup_hook for post call processing. It gives you whole lots of information. You can also save additional parameters in channel variables and access them there in hangup hook. Regards, Ali Pey On Mon, Mar 24, 2014 at 8:56 PM, <bruce@sqls.net> wrote:
I actually did that after reviewing some captures in wireshark and I realized the silence was just taking up time at the start. This is what I have now.
session:answer() session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. uuid .. ".tif'") session:execute("playback", "silence_stream://15000") session:hangup()
With that, I don't even need the sleep. So it's commented out and the system plays silence for the 15 seconds while it listens for a fax tone. If it never gets a tone then all the session variables that rxfax sets are empty so later on in the script if those are empty I just set the error as "No fax detected, possible voice call" for my logging and e-mail notifications stuff. I thought about having the fax_detect just set a variable and run a while loop to detect the variable (with a timeout) but that seems more wasteful on resources and likely to break somehow creating an endlessly running loop.
Thanks for the comments from everyone else too. The IVR ideas make sense if I took voice calls but this is a 100% fax only system. I suppose I could play a notice announcement like "This is a fax system. Please start you fax now or hangup"... Maybe later :) The recommendations to have the fax_detect switch to other parts of the dialplan won't work for me since I'm doing this all 100% inside a LUA script.. Or at least I don't think they would work. I don't know how to register dialplan extensions inside a LUA script.
I think this brings me to my #2 question. When faxes don't work. How do I go about finding the problem? Right now, like I mentioned initially, the majority of my failed faxes just give the error "The call dropped prematurely". I'm currently pretty clueless on knowing where to go with that...
Right now my script pulls out the entire freeswitch log for the call and puts it into a file named based on the call uuid. Then I have pcapsipdump running which gives me a log of the sip/rdp/t38 packets. I also log all the channel and rxfax variables into a sqlite database for each call. So I've got tons of data to look at :) I've been toying around with wireshark but I have no idea what the call is suppose to look like :). The feature in wireshark that lets me play the audio seems the most helpful for me because I can at least listen to see if any fax tones or weird static is on the line.
Is there a good guide I could reference to understand at least the initial negation of a ulaw/t38 fax call? That way I'll have a starting clue on where a problem might be.
------ Original Message ------ From: "Tim St. Pierre" <fs-list@communicatefreely.net> To: freeswitch-users@lists. <freeswitch-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=9cb3777a-24f4-4d5c-bdd4-cbacce033702&cm_destination=http://freeswitch.org> Sent: 3/24/2014 7:31:50 PM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
Switch the fax detect and silence_stream so that fax detect happens first. You want Freeswitch to be listening during the silence stream. What's probably happening right now is that the fax isn't detected until you are in the 15s sleep.
On 14-03-24 05:19 PM, bruce@sqls.net wrote:
Ah, thanks for the info on fax detect.. With that and reading some more examples/docs I tried this..
session:answer() session:execute("playback", "silence_stream://2000") session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. uuid .. ".tif'") session:sleep(15000); session:hangup()
Which seems to work. Once it detects a fax it fire's off the rxfax app. I'm not sure if maybe there's a better method to do this or not. This doesn't really leave me a variable saying that no fax was detected outside the lack of result variables from rxfax but maybe that's good enough. Any ideas on a better solution, anyone? :)
On a side note. Does anyone know -why- the playback silence_stream is needed? Or is it not needed at all? I see that in almost every example on using FreeSWITCH faxing but I'm not sure what it's purpose is. Thanks.
------ Original Message ------ From: "Tim St. Pierre" <fs-list@communicatefreely.net> To: freeswitch-users@lists. <freeswitch-users@lists.freeswitch.org>
Sent: 3/24/2014 3:15:08 PM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
The fax detect function starts listening for fax tones while the call continues. You are right, in that it is a non-blocking function.
What you probably need to do, after making sure that media is established, is call fax detect, then give the caller something to do while you wait for a possible fax tone. You could just play silence to the caller for a few seconds, unless there was something more relevant to do. I believe that the original intent of fax detect was to be invoked just before an IVR was run, so that a voice caller would just listen to the menu, but a fax would start making tones that could then be detected, transferring the call to the named extension where it would be answered as a fax.
Hope that helps!
On 14-03-24 01:49 PM, bruce@sqls.net wrote:
Hello! I'm working on setting up a FreeSWITCH/Flowroute fax server. The server is connected without any nat on a 20MB fiber internet connection. I've built some lua scripts that allow me to receive and send faxes and log all the faxes to a sqlite database. I even have a management script that can be called from the fs_cli to add fax2email routes and adjust settings. It's still a pretty rough implementation but overall it's working fairly well but I have two main questions that I hope someone could help me with.
1) I would like to detect "voice calls" or maybe I want to detect fax calls? There's a dialplan function to listen for and detect a fax caller but I'm having trouble implementing it in my lua script. It seems it's a non-blocking function, maybe? Because it just walks right over that line instead of waiting and listening for any fax tones. I thought it would block the script for x seconds and listen for a fax tone and return a result based on what it found. Can someone help me accomplish something similar to that?
2) So far, by far... my most common error is "The call dropped prematurely". I'm not sure how to start debugging the error to figure out what's causing it and how (if I can) solve it. I do have pcap's of the calls from pcapsipdump and I also have the freeswitch log of each call (my lua script pulls and saves that for each fax call). I've opened the pcap files up in wireshark but I don't know what I'm looking for and I think that might be over my head at the moment. Can anyone give me any help on what this error is normally caused by or what I could look for and/or test?
Here are a couple of example logs that ended with "The call dropped prematurely".
http://bmts.us/faxlogs/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5f06b9d2-6783-4a4a-a22e-eba488a4dce1&cm_destination=http://bmts.us/faxlogs/> FAX-2e913a50-3a4f-4abc-9882-a323a97e5138.log
http://bmts.us/faxlogs/_<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=4f08a9d2-c0e4-4656-b307-1fce4f26290e&cm_destination=http://bmts.us/faxlogs/_> FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log_
http://bmts.us/faxlogs/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=bf04972b-bcc0-4f1c-9c13-29253abcb611&cm_destination=http://bmts.us/faxlogs/> FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log>
__ __
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=c6e1fbd7-4e4c-4003-9a80-5921445814b2&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3c565ef0-f29d-488d-8442-ab0cb06d459f&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=966395ee-0217-44f8-acff-48f08d2e12f9&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=1068f134-32c6-4323-9f84-7f6821c87ba8&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=d1057a03-e096-4e90-adaf-1c52ea3f27e7&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=2a0c017f-dbda-4c8a-afd1-9fe29c887e49&cm_destination=http://www.freeswitch.org>
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=989d1edd-ecfb-4968-9277-0e6bf2cf7b0b&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=d70dad2e-9350-443c-bfc2-cd6831ed249b&cm_destination=http://wiki.freeswitch.org>
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=b9059c9f-d653-46fd-9eb6-b072a94667e6&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a9cea91e-974c-4959-95f5-d9fdde010d79&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org>
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=e263e6da-a3da-4cdd-9ac1-3c46d6e574e8&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5683d0d0-ac79-401c-9ccd-efd0e8c1e4dc&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users
freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=0de8b5d6-7a6f-4311-919a-2ecf067f47ee&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=0b2b9cbf-c490-47b9-be50-826494ac58ce&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=8ebca09a-485c-4194-aba3-d5ff29119a38&cm_destination=http://www.freeswitch.org>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ff1b0b6b-6d37-4de1-948a-ecee65a6ab5c&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=fc8adccf-ac9f-4c48-bb3a-50151f9c7dba&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=938d8edc-da58-4553-861b-074580eeb241&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f94bd341-e49b-4dab-9ef2-ba9277e06b45&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=db68f70c-f559-4e9b-b985-1720bb3af6f8&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f94bdaad-8587-4495-b9ed-1b23793800f7&cm_destination=http://www.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=8f453ca7-1a0c-465e-b7ca-8606a4d8c225&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=26d781c9-63ce-4f92-a39f-29faaf9a0a8d&cm_destination=http://wiki.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=9cb451eb-9cc8-4048-91fd-55d455d6a808&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=9a6bc26f-4b94-4df1-b4fe-faf5456d9f82&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=c3f885dc-3428-4207-baf5-0645d23cb413&cm_destination=http://freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=e5df032f-3917-43b8-a0de-1314fc6b91c7&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=427de94b-c610-4918-8888-e0882b77c91c&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=7f00b959-9620-4d69-a082-b627405329c2&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users> freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3588cb67-bf41-481b-a341-59a7f358ff21&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=20a2e70f-26d0-46cc-9939-a4f8b1096748&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a02a3b0d-1926-436a-b876-18e05becf947&cm_destination=http://www.freeswitch.org>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ab015fba-834a-46f5-acbf-7322d2111df1&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=08823be6-a15f-48f0-89f0-1ccc183c8310&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=261520cf-6574-4a04-8859-34e9c0ac4828&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ab026770-3b80-4403-a646-de56e5c50e44&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=90ad7302-664c-409f-a0c7-85e1e5934eb9&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=d2ca55d3-f1b1-4f22-b80b-9e412eb9b36a&cm_destination=http://www.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=4c6f479e-cf7b-4d9c-a2e6-72940f6166c6&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a1cecbea-17e1-4a73-a18f-c9067a5d343a&cm_destination=http://wiki.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=459752e4-a446-4cb2-a925-8b3a82cdd6d4&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=368695c7-ea9b-4e1e-b0ac-d8e731015df0&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=1dcb8853-3723-4a41-808a-11c1fa528ad4&cm_destination=http://freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=e08b59f1-174b-4db4-b670-6f98945d6e30&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=21d39a9a-b885-4cef-abc1-0ad83b972aa5&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5193bf5e-9fae-4d72-96e8-380f28372f31&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users> freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=e4e25de0-786c-4d96-ab41-ad2ddec00085&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=0ed61115-888d-4de2-b4b2-28eb41860474&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=6bef95b7-75a6-4b56-983f-15fd28efc257&cm_destination=http://www.freeswitch.org>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ab616f44-3527-423c-be24-8e99aa2ebb1a&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=29812a4b-fdd0-4e7e-90fc-d79b0a1fff02&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=2e816d3a-fda0-4812-81ec-15da8f8df546&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f3bcf3ce-a49d-425e-80e7-0051a226c555&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=aef22fc1-f879-4e12-a3f3-baac20544231&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=24ceb58a-0853-431c-98a1-bf6ff97b2bb8&cm_destination=http://www.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=248aa95d-e7cb-4320-9ed6-4e544835fc27&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=00bf007f-6048-47ae-9d49-a4a7424a29db&cm_destination=http://wiki.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=6db52442-2db6-4ddd-bdd6-17383212366c&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a3041473-e1f6-4fe4-92f7-909d83e8080b&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=56b6333b-cb3e-4571-bf22-d6de22c5a3ba&cm_destination=http://freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=c8b958b9-24a8-4c0b-b4e4-9aa377341aee&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=42953ad5-dc93-473b-ab00-7f20c09e584c&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=42f438a8-974d-4c4b-9d87-ad0ce72f3c6e&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users> freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=044fe0c3-9b8e-460c-81f7-d94b49fb3480&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=4b6330dc-4a15-4fbf-9273-ac7faca5d3ad&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=71ba93f3-42f8-4488-ad34-b1eddd543a48&cm_destination=http://www.freeswitch.org>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=d1a08a40-2fc6-448d-99d1-392449e6f541&cm_destination=http://www.freeswitchsolutions.com> freeswitchsolutions.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=6b6bd89f-9a8a-4f15-a5b9-6e23a37b23a8&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a5f575be-d17f-4cdd-8b36-9017cd55087d&cm_destination=http://www.cudatel.com> http://www.cudatel.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=82255a68-08c6-4715-855b-a01686deff9b&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=727fc22f-66f3-4861-a4b9-eeca83612591&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=2113b02d-e5c6-4fbb-9f8a-0088b82fa8a6&cm_destination=http://www.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ca8caeb8-b7db-4a41-85f1-344ec5f631ab&cm_destination=http://wiki.freeswitch.org> http://wiki.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=de8d1f6a-44bb-41fb-ae0d-0408027db0fe&cm_destination=http://wiki.freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f073c2ec-06d7-4752-90be-3c8b08d809bc&cm_destination=http://www.cluecon.com> http://www.cluecon.com<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=21e21405-af93-4559-86d7-d849346f02d3&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <FreeSWITCH-users@lists.freeswitch.org> freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5b48fc85-f75f-4291-9151-bda706d5181a&cm_destination=http://freeswitch.org> <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=cd39420b-d9a5-470c-bfa3-d44a06d522b0&cm_destination=http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ff6a2221-0f91-45fd-92af-21dbfd17c98c&cm_destination=http://lists.freeswitch.org/> mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3547b6ee-e67a-431f-a1fd-da0af8e9ff76&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users> freeswitch.org/mailman/<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a8d0fffa-eef3-41fa-9d97-cbdac2aa3e84&cm_destination=http://freeswitch.org/mailman/> options/freeswitch-users <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=eda4ad69-be0f-46c4-9421-f632c0c29947&cm_destination=http://www.freeswitch.org> http://www.freeswitch.org<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=49f287ed-c3e7-465c-a1a6-7e519e8748c1&cm_destination=http://www.freeswitch.org>
------ Original Message ------ From: "Ali Pey" <alipey@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: 3/25/2014 9:52:41 AM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
Have you done any performance testing? How many concurrent faxes can you do?
Yes, in Lua you can do transfer to FAX_DETECT extension. It's fairly simple. If you choose to go that route, I can help you to set it up.
Try api_hangup_hook for post call processing. It gives you whole lots of information. You can also save additional parameters in channel variables and access them there in hangup hook.
No, I haven't done any performance tests. I'm not sure how I would do that either :). I'm pretty new to FreeSWITCH and I've never used LUA before I started this project so all and all.. I'm mostly clueless. There's probably a number of best-practices I just haven't read or learned about yet. Right now I'm just trying to get it to log everything and be as reliable as possible :) I am curious about how to do the extension transfer stuff in LUA. Everything I learn at this point is a big bonus to making this work best. Right now all the post call processing is just happening in the same LUA script. I do call "hangup" after the fax is received though. Is there a big advantage to splitting the script up into two scripts? One for the call and another for post call stuff (logging, emailing, etc). ?
Hi, Bruce! Yes, it's been 7 years, but I'm setting up a FreeSWITCH system for a local non-profit, and part of this is FAX. I have been using your fsfax script at my company for a long time, and they just keep working, so I never made any changes. When I was on your GitHub repository (https://github.com/bwmarrin/fsfax) I noticed the code hasn't been updated for 6 years. Is this because: 1. It's already perfect? 2. You updated it, but forgot to push? 3. You found something better? Let me know which, so I can decide which FAX solution to use. -- Steve On Tue, Mar 25, 2014 at 8:42 AM <bruce@sqls.net> wrote:
------ Original Message ------ From: "Ali Pey" <alipey@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: 3/25/2014 9:52:41 AM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
Have you done any performance testing? How many concurrent faxes can you do?
Yes, in Lua you can do transfer to FAX_DETECT extension. It's fairly simple. If you choose to go that route, I can help you to set it up.
Try api_hangup_hook for post call processing. It gives you whole lots of information. You can also save additional parameters in channel variables and access them there in hangup hook.
No, I haven't done any performance tests. I'm not sure how I would do that either :). I'm pretty new to FreeSWITCH and I've never used LUA before I started this project so all and all.. I'm mostly clueless. There's probably a number of best-practices I just haven't read or learned about yet.
Right now I'm just trying to get it to log everything and be as reliable as possible :) I am curious about how to do the extension transfer stuff in LUA. Everything I learn at this point is a big bonus to making this work best.
Right now all the post call processing is just happening in the same LUA script. I do call "hangup" after the fax is received though. Is there a big advantage to splitting the script up into two scripts? One for the call and another for post call stuff (logging, emailing, etc). ?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
The reasonable maximum for concurrent FAX channels will depend a lot on the hardware and the nature of the FAXes. If a modern quad core machine isn't giving you a capacity in the hundreds you are either handling really difficult FAXes or you have a bottleneck somewhere (e.g. slow disks). Regards, Steve On 03/25/2014 10:52 PM, Ali Pey wrote:
Have you done any performance testing? How many concurrent faxes can you do?
Yes, in Lua you can do transfer to FAX_DETECT extension. It's fairly simple. If you choose to go that route, I can help you to set it up.
Try api_hangup_hook for post call processing. It gives you whole lots of information. You can also save additional parameters in channel variables and access them there in hangup hook.
Regards, Ali Pey
On Mon, Mar 24, 2014 at 8:56 PM, <bruce@sqls.net <mailto:bruce@sqls.net>> wrote:
I actually did that after reviewing some captures in wireshark and I realized the silence was just taking up time at the start. This is what I have now.
session:answer() session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. uuid .. ".tif'") session:execute("playback", "silence_stream://15000") session:hangup()
With that, I don't even need the sleep. So it's commented out and the system plays silence for the 15 seconds while it listens for a fax tone. If it never gets a tone then all the session variables that rxfax sets are empty so later on in the script if those are empty I just set the error as "No fax detected, possible voice call" for my logging and e-mail notifications stuff. I thought about having the fax_detect just set a variable and run a while loop to detect the variable (with a timeout) but that seems more wasteful on resources and likely to break somehow creating an endlessly running loop.
Thanks for the comments from everyone else too. The IVR ideas make sense if I took voice calls but this is a 100% fax only system. I suppose I could play a notice announcement like "This is a fax system. Please start you fax now or hangup"... Maybe later :) The recommendations to have the fax_detect switch to other parts of the dialplan won't work for me since I'm doing this all 100% inside a LUA script.. Or at least I don't think they would work. I don't know how to register dialplan extensions inside a LUA script.
I think this brings me to my #2 question. When faxes don't work. How do I go about finding the problem? Right now, like I mentioned initially, the majority of my failed faxes just give the error "The call dropped prematurely". I'm currently pretty clueless on knowing where to go with that...
Right now my script pulls out the entire freeswitch log for the call and puts it into a file named based on the call uuid. Then I have pcapsipdump running which gives me a log of the sip/rdp/t38 packets. I also log all the channel and rxfax variables into a sqlite database for each call. So I've got tons of data to look at :) I've been toying around with wireshark but I have no idea what the call is suppose to look like :). The feature in wireshark that lets me play the audio seems the most helpful for me because I can at least listen to see if any fax tones or weird static is on the line.
Is there a good guide I could reference to understand at least the initial negation of a ulaw/t38 fax call? That way I'll have a starting clue on where a problem might be.
------ Original Message ------ From: "Tim St. Pierre" <fs-list@communicatefreely.net <mailto:fs-list@communicatefreely.net>> To: freeswitch-users@lists. <mailto:freeswitch-users@lists.freeswitch.org>freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=9cb3777a-24f4-4d5c-bdd4-cbacce033702&cm_destination=http://freeswitch.org> Sent: 3/24/2014 7:31:50 PM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
>Switch the fax detect and silence_stream so that fax detect happens >first. You want Freeswitch to be listening during the silence stream. >What's probably happening right now is that the fax isn't detected >until >you are in the 15s sleep. > > > >On 14-03-24 05:19 PM, bruce@sqls.net <mailto:bruce@sqls.net> wrote: >> >> Ah, thanks for the info on fax detect.. With that and reading some >>more >> examples/docs I tried this.. >> >> session:answer() >> session:execute("playback", "silence_stream://2000") >> session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. >>uuid >> .. ".tif'") >> session:sleep(15000); >> session:hangup() >> >> >> Which seems to work. Once it detects a fax it fire's off the rxfax >>app. >> I'm not sure if maybe there's a better method to do this or not. >>This >> doesn't really leave me a variable saying that no fax was detected >> outside the lack of result variables from rxfax but maybe that's good >> enough. Any ideas on a better solution, anyone? :) >> >> On a side note. Does anyone know -why- the playback silence_stream is >> needed? Or is it not needed at all? I see that in almost every >>example >> on using FreeSWITCH faxing but I'm not sure what it's purpose is. >> Thanks. >> >> >> ------ Original Message ------ >> From: "Tim St. Pierre" <fs-list@communicatefreely.net <mailto:fs-list@communicatefreely.net>> >> To: freeswitch-users@lists. <mailto:freeswitch-users@lists.freeswitch.org>freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=bbf31206-26d1-4db5-803c-ef6ff8ab746a&cm_destination=http://freeswitch.org> >> Sent: 3/24/2014 3:15:08 PM >> Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH >> >>> The fax detect function starts listening for fax tones while the >>>call >>> continues. You are right, in that it is a non-blocking function. >>> >>> What you probably need to do, after making sure that media is >>> established, is call fax detect, then give the caller something to >>>do >>> while you wait for a possible fax tone. You could just play silence >>>to >>> the caller for a few seconds, unless there was something more >>>relevant >>> to do. I believe that the original intent of fax detect was to be >>> invoked just before an IVR was run, so that a voice caller would >>>just >>> listen to the menu, but a fax would start making tones that could >>>then >>> be detected, transferring the call to the named extension where it >>> would >>> be answered as a fax. >>> >>> Hope that helps! >>> >>> On 14-03-24 01:49 PM, bruce@sqls.net <mailto:bruce@sqls.net> wrote: >>>> >>>> Hello! I'm working on setting up a FreeSWITCH/Flowroute fax >>>>server. >>>> The >>>> server is connected without any nat on a 20MB fiber internet >>>> connection. >>>> I've built some lua scripts that allow me to receive and send >>>>faxes >>>> and >>>> log all the faxes to a sqlite database. I even have a management >>>> script >>>> that can be called from the fs_cli to add fax2email routes and >>>>adjust >>>> settings. It's still a pretty rough implementation but overall >>>>it's >>>> working fairly well but I have two main questions that I hope >>>>someone >>>> could help me with. >>>> >>>> 1) I would like to detect "voice calls" or maybe I want to detect >>>>fax >>>> calls? There's a dialplan function to listen for and detect a fax >>>> caller >>>> but I'm having trouble implementing it in my lua script. It seems >>>> it's a >>>> non-blocking function, maybe? Because it just walks right over >>>>that >>>> line >>>> instead of waiting and listening for any fax tones. I thought it >>>> would >>>> block the script for x seconds and listen for a fax tone and >>>>return a >>>> result based on what it found. Can someone help me accomplish >>>> something >>>> similar to that? >>>> >>>> 2) So far, by far... my most common error is "The call dropped >>>> prematurely". I'm not sure how to start debugging the error to >>>>figure >>>> out what's causing it and how (if I can) solve it. I do have >>>>pcap's >>>> of >>>> the calls from pcapsipdump and I also have the freeswitch log of >>>>each >>>> call (my lua script pulls and saves that for each fax call). I've >>>> opened >>>> the pcap files up in wireshark but I don't know what I'm looking >>>>for >>>> and >>>> I think that might be over my head at the moment. Can anyone give >>>>me >>>> any >>>> help on what this error is normally caused by or what I could look >>>> for >>>> and/or test? >>>> >>>> Here are a couple of example logs that ended with "The call >>>>dropped >>>> prematurely". >>>> >>>>http://bmts.us/faxlogs/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5f06b9d2-6783-4a4a-a22e-eba488a4dce1&cm_destination=http://bmts.us/faxlogs/>FAX-2e913a50-3a4f-4abc-9882-a323a97e5138.log >>>> >>>>http://bmts.us/faxlogs/_ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=4f08a9d2-c0e4-4656-b307-1fce4f26290e&cm_destination=http://bmts.us/faxlogs/_>FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log_ >>>> >>>><http://bmts.us/faxlogs/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=bf04972b-bcc0-4f1c-9c13-29253abcb611&cm_destination=http://bmts.us/faxlogs/>FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log> >>>> __ >>>> __ >>>> >>>> >>>> >>>> >>>> >>>> >>>>_________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting@freeswitch.org <mailto:consulting@freeswitch.org> >>>> http://www. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=c6e1fbd7-4e4c-4003-9a80-5921445814b2&cm_destination=http://www.freeswitchsolutions.com>freeswitchsolutions.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3c565ef0-f29d-488d-8442-ab0cb06d459f&cm_destination=http://freeswitchsolutions.com> >>>> >>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >>>> http://www.cudatel.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=1068f134-32c6-4323-9f84-7f6821c87ba8&cm_destination=http://www.cudatel.com> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=2a0c017f-dbda-4c8a-afd1-9fe29c887e49&cm_destination=http://www.freeswitch.org> >>>> http://wiki.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=d70dad2e-9350-443c-bfc2-cd6831ed249b&cm_destination=http://wiki.freeswitch.org> >>>> http://www.cluecon.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a9cea91e-974c-4959-95f5-d9fdde010d79&cm_destination=http://www.cluecon.com> >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3954c2e4-d1eb-4c1b-9112-85d76ceaf489&cm_destination=http://freeswitch.org> >>>> http://lists.freeswitch.org/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5683d0d0-ac79-401c-9ccd-efd0e8c1e4dc&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users >>>> >>>> >>>>UNSUBSCRIBE:http://lists. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=2ed13fca-4b38-40db-97a9-2b2e96991588&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users>freeswitch.org/mailman/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=0de8b5d6-7a6f-4311-919a-2ecf067f47ee&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users >>>> http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=8ebca09a-485c-4194-aba3-d5ff29119a38&cm_destination=http://www.freeswitch.org> >>>> >>> >>> >>>_________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org <mailto:consulting@freeswitch.org> >>> http://www. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ff1b0b6b-6d37-4de1-948a-ecee65a6ab5c&cm_destination=http://www.freeswitchsolutions.com>freeswitchsolutions.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=fc8adccf-ac9f-4c48-bb3a-50151f9c7dba&cm_destination=http://freeswitchsolutions.com> >>> >>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >>> http://www.cudatel.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f94bd341-e49b-4dab-9ef2-ba9277e06b45&cm_destination=http://www.cudatel.com> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f94bdaad-8587-4495-b9ed-1b23793800f7&cm_destination=http://www.freeswitch.org> >>> http://wiki.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=26d781c9-63ce-4f92-a39f-29faaf9a0a8d&cm_destination=http://wiki.freeswitch.org> >>> http://www.cluecon.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=9a6bc26f-4b94-4df1-b4fe-faf5456d9f82&cm_destination=http://www.cluecon.com> >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=c3f885dc-3428-4207-baf5-0645d23cb413&cm_destination=http://freeswitch.org> >>> http://lists.freeswitch.org/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=427de94b-c610-4918-8888-e0882b77c91c&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users >>> >>>UNSUBSCRIBE:http://lists. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=7f00b959-9620-4d69-a082-b627405329c2&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users>freeswitch.org/mailman/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3588cb67-bf41-481b-a341-59a7f358ff21&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users >>> http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a02a3b0d-1926-436a-b876-18e05becf947&cm_destination=http://www.freeswitch.org> >> >> >> >>_________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org <mailto:consulting@freeswitch.org> >> http://www. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ab015fba-834a-46f5-acbf-7322d2111df1&cm_destination=http://www.freeswitchsolutions.com>freeswitchsolutions.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=08823be6-a15f-48f0-89f0-1ccc183c8310&cm_destination=http://freeswitchsolutions.com> >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ab026770-3b80-4403-a646-de56e5c50e44&cm_destination=http://www.cudatel.com> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=d2ca55d3-f1b1-4f22-b80b-9e412eb9b36a&cm_destination=http://www.freeswitch.org> >> http://wiki.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a1cecbea-17e1-4a73-a18f-c9067a5d343a&cm_destination=http://wiki.freeswitch.org> >> http://www.cluecon.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=368695c7-ea9b-4e1e-b0ac-d8e731015df0&cm_destination=http://www.cluecon.com> >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=1dcb8853-3723-4a41-808a-11c1fa528ad4&cm_destination=http://freeswitch.org> >> http://lists.freeswitch.org/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=21d39a9a-b885-4cef-abc1-0ad83b972aa5&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users >> >>UNSUBSCRIBE:http://lists. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5193bf5e-9fae-4d72-96e8-380f28372f31&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users>freeswitch.org/mailman/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=e4e25de0-786c-4d96-ab41-ad2ddec00085&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users >> http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=6bef95b7-75a6-4b56-983f-15fd28efc257&cm_destination=http://www.freeswitch.org> >> > >_________________________________________________________________________ >Professional FreeSWITCH Consulting Services: >consulting@freeswitch.org <mailto:consulting@freeswitch.org> >http://www. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ab616f44-3527-423c-be24-8e99aa2ebb1a&cm_destination=http://www.freeswitchsolutions.com>freeswitchsolutions.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=29812a4b-fdd0-4e7e-90fc-d79b0a1fff02&cm_destination=http://freeswitchsolutions.com> > >FreeSWITCH-powered IP PBX: The CudaTel Communication Server >http://www.cudatel.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f3bcf3ce-a49d-425e-80e7-0051a226c555&cm_destination=http://www.cudatel.com> > >Official FreeSWITCH Sites >http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=24ceb58a-0853-431c-98a1-bf6ff97b2bb8&cm_destination=http://www.freeswitch.org> >http://wiki.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=00bf007f-6048-47ae-9d49-a4a7424a29db&cm_destination=http://wiki.freeswitch.org> >http://www.cluecon.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a3041473-e1f6-4fe4-92f7-909d83e8080b&cm_destination=http://www.cluecon.com> > >FreeSWITCH-users mailing list >FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=56b6333b-cb3e-4571-bf22-d6de22c5a3ba&cm_destination=http://freeswitch.org> >http://lists.freeswitch.org/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=42953ad5-dc93-473b-ab00-7f20c09e584c&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users >UNSUBSCRIBE:http://lists. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=42f438a8-974d-4c4b-9d87-ad0ce72f3c6e&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users>freeswitch.org/mailman/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=044fe0c3-9b8e-460c-81f7-d94b49fb3480&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users >http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=71ba93f3-42f8-4488-ad34-b1eddd543a48&cm_destination=http://www.freeswitch.org>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=d1a08a40-2fc6-448d-99d1-392449e6f541&cm_destination=http://www.freeswitchsolutions.com>freeswitchsolutions.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=6b6bd89f-9a8a-4f15-a5b9-6e23a37b23a8&cm_destination=http://freeswitchsolutions.com>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=82255a68-08c6-4715-855b-a01686deff9b&cm_destination=http://www.cudatel.com>
Official FreeSWITCH Sites http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=2113b02d-e5c6-4fbb-9f8a-0088b82fa8a6&cm_destination=http://www.freeswitch.org> http://wiki.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=de8d1f6a-44bb-41fb-ae0d-0408027db0fe&cm_destination=http://wiki.freeswitch.org> http://www.cluecon.com <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=21e21405-af93-4559-86d7-d849346f02d3&cm_destination=http://www.cluecon.com>
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5b48fc85-f75f-4291-9151-bda706d5181a&cm_destination=http://freeswitch.org> http://lists.freeswitch.org/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ff6a2221-0f91-45fd-92af-21dbfd17c98c&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists. <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3547b6ee-e67a-431f-a1fd-da0af8e9ff76&cm_destination=http://lists.freeswitch.org/mailman/options/freeswitch-users>freeswitch.org/mailman/ <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a8d0fffa-eef3-41fa-9d97-cbdac2aa3e84&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users http://www.freeswitch.org <https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=49f287ed-c3e7-465c-a1a6-7e519e8748c1&cm_destination=http://www.freeswitch.org>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
For reference. My test system that I'm trying to build this on is an old Dell PowerEdge 860 with a single SATA HD, Intel Pentium D 2.8ghz, and 4GB of ram. It's running CentOS 6.5 and FreeSWITCH 1.2.22. While, I say "test" it's getting some real use and handling a couple thousend faxes a month. I know that's not a high volume for some, but it is working without any load or performance issues. I'm just trying to adjust it to get the success rate higher :) I think with my recent change to use fax_detect will help a lot. It's already sorted a few voice calls out which I verified by listening to the captured audio in wireshark. "hello... click". Once I get more done I plan to modify my script so it adjusts per caller. If it knows the last attempt at 14.4k didn't work, it'll disable v17 before starting the call, etc, etc. That should help out some more. Maybe when I get it working smoothly I can post the LUA somewhere. But then everyone will laugh at my horrible LUA skills! Having it in lua is really nice (to me) because with FreeSWITCH I can run a "management" lua script from the console and set routes, and view logs. I really like that aspect at lot. Might not be ideal for everyone though. ------ Original Message ------ From: "Steve Underwood" <steveu@coppice.org> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: 3/25/2014 10:56:36 AM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
The reasonable maximum for concurrent FAX channels will depend a lot on the hardware and the nature of the FAXes. If a modern quad core machine isn't giving you a capacity in the hundreds you are either handling really difficult FAXes or you have a bottleneck somewhere (e.g. slow disks).
Regards, Steve
On 03/25/2014 10:52 PM, Ali Pey wrote:
Have you done any performance testing? How many concurrent faxes can you do?
Yes, in Lua you can do transfer to FAX_DETECT extension. It's fairly simple. If you choose to go that route, I can help you to set it up.
Try api_hangup_hook for post call processing. It gives you whole lots of information. You can also save additional parameters in channel variables and access them there in hangup hook.
Regards, Ali Pey
On Mon, Mar 24, 2014 at 8:56 PM, <bruce@sqls.net <mailto:bruce@sqls.net>> wrote:
I actually did that after reviewing some captures in wireshark and I realized the silence was just taking up time at the start. This is what I have now.
session:answer() session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. uuid .. ".tif'") session:execute("playback", "silence_stream://15000") session:hangup()
With that, I don't even need the sleep. So it's commented out and the system plays silence for the 15 seconds while it listens for a fax tone. If it never gets a tone then all the session variables that rxfax sets are empty so later on in the script if those are empty I just set the error as "No fax detected, possible voice call" for my logging and e-mail notifications stuff. I thought about having the fax_detect just set a variable and run a while loop to detect the variable (with a timeout) but that seems more wasteful on resources and likely to break somehow creating an endlessly running loop.
Thanks for the comments from everyone else too. The IVR ideas make sense if I took voice calls but this is a 100% fax only system. I suppose I could play a notice announcement like "This is a fax system. Please start you fax now or hangup"... Maybe later :) The recommendations to have the fax_detect switch to other parts of the dialplan won't work for me since I'm doing this all 100% inside a LUA script.. Or at least I don't think they would work. I don't know how to register dialplan extensions inside a LUA script.
I think this brings me to my #2 question. When faxes don't work. How do I go about finding the problem? Right now, like I mentioned initially, the majority of my failed faxes just give the error "The call dropped prematurely". I'm currently pretty clueless on knowing where to go with that...
Right now my script pulls out the entire freeswitch log for the call and puts it into a file named based on the call uuid. Then I have pcapsipdump running which gives me a log of the sip/rdp/t38 packets. I also log all the channel and rxfax variables into a sqlite database for each call. So I've got tons of data to look at :) I've been toying around with wireshark but I have no idea what the call is suppose to look like :). The feature in wireshark that lets me play the audio seems the most helpful for me because I can at least listen to see if any fax tones or weird static is on the line.
Is there a good guide I could reference to understand at least the initial negation of a ulaw/t38 fax call? That way I'll have a starting clue on where a problem might be.
------ Original Message ------ From: "Tim St. Pierre" <fs-list@communicatefreely.net <mailto:fs-list@communicatefreely.net>> To: freeswitch-users@lists. <mailto:freeswitch-users@lists.freeswitch.org>freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=9cb3777a-24f4-4d5c-bdd4-cbacce033702&cm_destination=http://freeswitch.org> Sent: 3/24/2014 7:31:50 PM Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH
>Switch the fax detect and silence_stream so that fax detect happens >first. You want Freeswitch to be listening during the silence stream. >What's probably happening right now is that the fax isn't detected >until >you are in the 15s sleep. > > > >On 14-03-24 05:19 PM, bruce@sqls.net <mailto:bruce@sqls.net> wrote: >> >> Ah, thanks for the info on fax detect.. With that and reading some >>more >> examples/docs I tried this.. >> >> session:answer() >> session:execute("playback", "silence_stream://2000") >> session:execute("spandsp_start_fax_detect", "rxfax '/tmp/FAX-" .. >>uuid >> .. ".tif'") >> session:sleep(15000); >> session:hangup() >> >> >> Which seems to work. Once it detects a fax it fire's off the rxfax >>app. >> I'm not sure if maybe there's a better method to do this or not. >>This >> doesn't really leave me a variable saying that no fax was detected >> outside the lack of result variables from rxfax but maybe that's good >> enough. Any ideas on a better solution, anyone? :) >> >> On a side note. Does anyone know -why- the playback silence_stream is >> needed? Or is it not needed at all? I see that in almost every >>example >> on using FreeSWITCH faxing but I'm not sure what it's purpose is. >> Thanks. >> >> >> ------ Original Message ------ >> From: "Tim St. Pierre" <fs-list@communicatefreely.net <mailto:fs-list@communicatefreely.net>> >> To: freeswitch-users@lists. <mailto:freeswitch-users@lists.freeswitch.org>freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=bbf31206-26d1-4db5-803c-ef6ff8ab746a&cm_destination=http://freeswitch.org> >> Sent: 3/24/2014 3:15:08 PM >> Subject: Re: [Freeswitch-users] Faxing with FreeSWITCH >> >>> The fax detect function starts listening for fax tones while the >>>call >>> continues. You are right, in that it is a non-blocking function. >>> >>> What you probably need to do, after making sure that media is >>> established, is call fax detect, then give the caller something to >>>do >>> while you wait for a possible fax tone. You could just play silence >>>to >>> the caller for a few seconds, unless there was something more >>>relevant >>> to do. I believe that the original intent of fax detect was to be >>> invoked just before an IVR was run, so that a voice caller would >>>just >>> listen to the menu, but a fax would start making tones that could >>>then >>> be detected, transferring the call to the named extension where it >>> would >>> be answered as a fax. >>> >>> Hope that helps! >>> >>> On 14-03-24 01:49 PM, bruce@sqls.net <mailto:bruce@sqls.net> wrote: >>>> >>>> Hello! I'm working on setting up a FreeSWITCH/Flowroute fax >>>>server. >>>> The >>>> server is connected without any nat on a 20MB fiber internet >>>> connection. >>>> I've built some lua scripts that allow me to receive and send >>>>faxes >>>> and >>>> log all the faxes to a sqlite database. I even have a management >>>> script >>>> that can be called from the fs_cli to add fax2email routes and >>>>adjust >>>> settings. It's still a pretty rough implementation but overall >>>>it's >>>> working fairly well but I have two main questions that I hope >>>>someone >>>> could help me with. >>>> >>>> 1) I would like to detect "voice calls" or maybe I want to detect >>>>fax >>>> calls? There's a dialplan function to listen for and detect a fax >>>> caller >>>> but I'm having trouble implementing it in my lua script. It seems >>>> it's a >>>> non-blocking function, maybe? Because it just walks right over >>>>that >>>> line >>>> instead of waiting and listening for any fax tones. I thought it >>>> would >>>> block the script for x seconds and listen for a fax tone and >>>>return a >>>> result based on what it found. Can someone help me accomplish >>>> something >>>> similar to that? >>>> >>>> 2) So far, by far... my most common error is "The call dropped >>>> prematurely". I'm not sure how to start debugging the error to >>>>figure >>>> out what's causing it and how (if I can) solve it. I do have >>>>pcap's >>>> of >>>> the calls from pcapsipdump and I also have the freeswitch log of >>>>each >>>> call (my lua script pulls and saves that for each fax call). I've >>>> opened >>>> the pcap files up in wireshark but I don't know what I'm looking >>>>for >>>> and >>>> I think that might be over my head at the moment. Can anyone give >>>>me >>>> any >>>> help on what this error is normally caused by or what I could look >>>> for >>>> and/or test? >>>> >>>> Here are a couple of example logs that ended with "The call >>>>dropped >>>> prematurely". >>>> >>>>http://bmts.us/faxlogs/
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5f06b9d2-6783-4a4a-a22e-eba488a4dce1&cm_destination=http://bmts.us/faxlogs/>FAX-2e913a50-3a4f-4abc-9882-a323a97e5138.log >>>> >>>>http://bmts.us/faxlogs/_
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=4f08a9d2-c0e4-4656-b307-1fce4f26290e&cm_destination=http://bmts.us/faxlogs/_>FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log_ >>>> >>>><http://bmts.us/faxlogs/
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=bf04972b-bcc0-4f1c-9c13-29253abcb611&cm_destination=http://bmts.us/faxlogs/>FAX-59d02d9d-c4ba-44c2-8edd-a1c9142c7c1c.log> >>>> __ >>>> __ >>>> >>>> >>>> >>>> >>>> >>>>
_________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting@freeswitch.org <mailto:consulting@freeswitch.org> >>>> http://www.
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3c565ef0-f29d-488d-8442-ab0cb06d459f&cm_destination=http://freeswitchsolutions.com> >>>> >>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >>>> http://www.cudatel.com
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=1068f134-32c6-4323-9f84-7f6821c87ba8&cm_destination=http://www.cudatel.com> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=2a0c017f-dbda-4c8a-afd1-9fe29c887e49&cm_destination=http://www.freeswitch.org> >>>> http://wiki.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=d70dad2e-9350-443c-bfc2-cd6831ed249b&cm_destination=http://wiki.freeswitch.org> >>>> http://www.cluecon.com
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a9cea91e-974c-4959-95f5-d9fdde010d79&cm_destination=http://www.cluecon.com> >>>> >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3954c2e4-d1eb-4c1b-9112-85d76ceaf489&cm_destination=http://freeswitch.org> >>>> http://lists.freeswitch.org/
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5683d0d0-ac79-401c-9ccd-efd0e8c1e4dc&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users >>>> >>>> >>>>UNSUBSCRIBE:http://lists.
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=0de8b5d6-7a6f-4311-919a-2ecf067f47ee&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users >>>> http://www.freeswitch.org
_________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org <mailto:consulting@freeswitch.org> >>> http://www.
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=fc8adccf-ac9f-4c48-bb3a-50151f9c7dba&cm_destination=http://freeswitchsolutions.com> >>> >>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >>> http://www.cudatel.com
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f94bd341-e49b-4dab-9ef2-ba9277e06b45&cm_destination=http://www.cudatel.com> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f94bdaad-8587-4495-b9ed-1b23793800f7&cm_destination=http://www.freeswitch.org> >>> http://wiki.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=26d781c9-63ce-4f92-a39f-29faaf9a0a8d&cm_destination=http://wiki.freeswitch.org> >>> http://www.cluecon.com
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=9a6bc26f-4b94-4df1-b4fe-faf5456d9f82&cm_destination=http://www.cluecon.com> >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=c3f885dc-3428-4207-baf5-0645d23cb413&cm_destination=http://freeswitch.org> >>> http://lists.freeswitch.org/
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=427de94b-c610-4918-8888-e0882b77c91c&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users >>> >>>UNSUBSCRIBE:http://lists.
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=3588cb67-bf41-481b-a341-59a7f358ff21&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users >>> http://www.freeswitch.org
_________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org <mailto:consulting@freeswitch.org> >> http://www.
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=08823be6-a15f-48f0-89f0-1ccc183c8310&cm_destination=http://freeswitchsolutions.com> >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ab026770-3b80-4403-a646-de56e5c50e44&cm_destination=http://www.cudatel.com> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=d2ca55d3-f1b1-4f22-b80b-9e412eb9b36a&cm_destination=http://www.freeswitch.org> >> http://wiki.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a1cecbea-17e1-4a73-a18f-c9067a5d343a&cm_destination=http://wiki.freeswitch.org> >> http://www.cluecon.com
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=368695c7-ea9b-4e1e-b0ac-d8e731015df0&cm_destination=http://www.cluecon.com> >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=1dcb8853-3723-4a41-808a-11c1fa528ad4&cm_destination=http://freeswitch.org> >> http://lists.freeswitch.org/
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=21d39a9a-b885-4cef-abc1-0ad83b972aa5&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users >> >>UNSUBSCRIBE:http://lists.
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=e4e25de0-786c-4d96-ab41-ad2ddec00085&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users >> http://www.freeswitch.org
_________________________________________________________________________ >Professional FreeSWITCH Consulting Services: >consulting@freeswitch.org <mailto:consulting@freeswitch.org> >http://www.
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=29812a4b-fdd0-4e7e-90fc-d79b0a1fff02&cm_destination=http://freeswitchsolutions.com> > >FreeSWITCH-powered IP PBX: The CudaTel Communication Server >http://www.cudatel.com
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=f3bcf3ce-a49d-425e-80e7-0051a226c555&cm_destination=http://www.cudatel.com> > >Official FreeSWITCH Sites >http://www.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=24ceb58a-0853-431c-98a1-bf6ff97b2bb8&cm_destination=http://www.freeswitch.org> >http://wiki.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=00bf007f-6048-47ae-9d49-a4a7424a29db&cm_destination=http://wiki.freeswitch.org> >http://www.cluecon.com
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a3041473-e1f6-4fe4-92f7-909d83e8080b&cm_destination=http://www.cluecon.com> > >FreeSWITCH-users mailing list >FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=56b6333b-cb3e-4571-bf22-d6de22c5a3ba&cm_destination=http://freeswitch.org> >http://lists.freeswitch.org/
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=42953ad5-dc93-473b-ab00-7f20c09e584c&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users >UNSUBSCRIBE:http://lists.
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=044fe0c3-9b8e-460c-81f7-d94b49fb3480&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users >http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=2113b02d-e5c6-4fbb-9f8a-0088b82fa8a6&cm_destination=http://www.freeswitch.org> http://wiki.freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=de8d1f6a-44bb-41fb-ae0d-0408027db0fe&cm_destination=http://wiki.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists. <mailto:FreeSWITCH-users@lists.freeswitch.org>freeswitch.org
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=5b48fc85-f75f-4291-9151-bda706d5181a&cm_destination=http://freeswitch.org> http://lists.freeswitch.org/
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=ff6a2221-0f91-45fd-92af-21dbfd17c98c&cm_destination=http://lists.freeswitch.org/>mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.
<https://contactmonkey.com/api/tracker?cm_session=ff9a4c7c-2f7b-40b1-b4f7-4b35f31838f8&cm_type=link&cm_link=a8d0fffa-eef3-41fa-9d97-cbdac2aa3e84&cm_destination=http://freeswitch.org/mailman/>options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
It will force you into media one you attach it. -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Mar 24, 2014, at 3:15 PM, Tim St. Pierre <fs-list@communicatefreely.net> wrote:
What you probably need to do, after making sure that media is established, is call fax detect, then give the caller something to do while you wait for a possible fax tone.
participants (6)
-
Ali Pey
-
Brian West
-
bruce@sqls.net
-
Steve Underwood
-
Steven Schoch
-
Tim St. Pierre