Commercial Fax over T.30 for FreeSWITCH
Hi I am looking for a commercial product for Incoming Fax over T.30 for FreeSWITCH. Like Commetrex is available for Asterisk, is there something for freeswitch ? regards, Anita
On 03/05/12 08:08, Anita Hall wrote:
Hi
I am looking for a commercial product for Incoming Fax over T.30 for FreeSWITCH.
Like Commetrex is available for Asterisk, is there something for freeswitch ?
regards, Anita
Hi, I use Hylafax with T38Modem (and gateway to T.30 in Freeswitch). Hylafax is as good as any commercial product, and I get at least 99.5% success using it with onboard analog modems. I've not sent or received hundreds of faxes over T38modem but I don't see why it should be any worse. Just one question - are you running Freeswitch on a VM? Fax is very timing critical and I found running on a VM caused an awful lot of failures for T.30. For outbound: <extension name="faxout"> <condition field="ani" expression="^t38modem.*$"/> <condition field="destination_number" expression="^(9\d{6,14})$"> <action application="set" data="absolute_codec_string=PCMU"/> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway self nocng"/> <action application="bridge" data="sofia/gateway/isdngw/$1"/> </condition> </extension> For inbound: <extension name="faxin" > <condition field="network_addr" expression="<ip address of isdngw>"/> <condition field="context" expression="default"/> <condition field="destination_number" expression="^100([0-4])$"> <action application="bridge" data="{sip_execute_on_image='t38_gateway self nocng'}user/t38modem$1@${domain_name}"/> </condition> </extension> Cheers Alex
Hi Alex Thanks for the tip :) No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM. Is it possible to use Hylafax instead of or in combination to FreeSWITCH if I am using Sangoma E1 Cards ? What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ? Cheers! regards, Anita On Thu, May 3, 2012 at 1:55 PM, Alex Crow <acrow@integrafin.co.uk> wrote:
On 03/05/12 08:08, Anita Hall wrote:
Hi
I am looking for a commercial product for Incoming Fax over T.30 for FreeSWITCH.
Like Commetrex is available for Asterisk, is there something for freeswitch ?
regards, Anita
Hi,
I use Hylafax with T38Modem (and gateway to T.30 in Freeswitch). Hylafax is as good as any commercial product, and I get at least 99.5% success using it with onboard analog modems. I've not sent or received hundreds of faxes over T38modem but I don't see why it should be any worse.
Just one question - are you running Freeswitch on a VM? Fax is very timing critical and I found running on a VM caused an awful lot of failures for T.30.
For outbound:
<extension name="faxout"> <condition field="ani" expression="^t38modem.*$"/> <condition field="destination_number" expression="^(9\d{6,14})$"> <action application="set" data="absolute_codec_string=PCMU"/> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway self nocng"/> <action application="bridge" data="sofia/gateway/isdngw/$1"/> </condition> </extension>
For inbound:
<extension name="faxin" > <condition field="network_addr" expression="<ip address of isdngw>"/> <condition field="context" expression="default"/> <condition field="destination_number" expression="^100([0-4])$"> <action application="bridge" data="{sip_execute_on_image='t38_gateway self nocng'}user/t38modem$1@${domain_name}"/> </condition> </extension>
Cheers
Alex
_________________________________________________________________________ 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
Hi Anita, What are you hoping to get from a commercial solution? You won't get improved reliability. If you go with the Digium solution support seems to be limited to an offer of a refund. I have helped a number of FAX for Asterisk users move to spandsp to improve their performance. What are you actually doing? Are you simply sending and receiving FAXes on a Sangoma E1 card? If that gives you anything less than 99.5% success, something is wrong in your setup. A timing problem with the E1 is the most likely cause. Not the motherboard or the kernel. The E1 interface itself. You MUST make the PSTN the source of the clock for the E1. If you make your card the source you WILL have serious problems with reliability. Using T.38 gateway operation to interwork between the PSTN and VoIP can give additional problems, as some system do strange things with the signaling, or don't open the right ports when the call switches from RTP to UDPTL. If those things are sorted out, and your IP interface is not losing lots of packets, you should have few failures. Steve On 05/03/2012 08:23 PM, Anita Hall wrote:
Hi Alex
Thanks for the tip :)
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM.
Is it possible to use Hylafax instead of or in combination to FreeSWITCH if I am using Sangoma E1 Cards ?
What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ?
Cheers!
regards, Anita
On Thu, May 3, 2012 at 1:55 PM, Alex Crow <acrow@integrafin.co.uk <mailto:acrow@integrafin.co.uk>> wrote:
On 03/05/12 08:08, Anita Hall wrote: > Hi > > I am looking for a commercial product for Incoming Fax over T.30 for > FreeSWITCH. > > Like Commetrex is available for Asterisk, is there something for > freeswitch ? > > regards, > Anita >
Hi,
I use Hylafax with T38Modem (and gateway to T.30 in Freeswitch). Hylafax is as good as any commercial product, and I get at least 99.5% success using it with onboard analog modems. I've not sent or received hundreds of faxes over T38modem but I don't see why it should be any worse.
Just one question - are you running Freeswitch on a VM? Fax is very timing critical and I found running on a VM caused an awful lot of failures for T.30.
For outbound:
<extension name="faxout"> <condition field="ani" expression="^t38modem.*$"/> <condition field="destination_number" expression="^(9\d{6,14})$"> <action application="set" data="absolute_codec_string=PCMU"/> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway self nocng"/> <action application="bridge" data="sofia/gateway/isdngw/$1"/> </condition> </extension>
For inbound:
<extension name="faxin" > <condition field="network_addr" expression="<ip address of isdngw>"/> <condition field="context" expression="default"/> <condition field="destination_number" expression="^100([0-4])$"> <action application="bridge" data="{sip_execute_on_image='t38_gateway self nocng'}user/t38modem$1@${domain_name}"/> </condition> </extension>
Cheers
Alex
On Thu, May 03, 2012 at 05:53:01PM +0530, Anita Hall wrote:
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM.
What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ?
The most common suggestion is to use a kernel with 1000Hz timer. I think that the default timer for Ubuntu is 250, so this would be first thing to check/change. You can check by running: grep CONFIG_HZ= /boot/config-`uname -r` and if it is not 1000, it would be worth installing a 1000Hz kernel and re-testing. Ubuntu may have a packages -lowlatency kernel which has a 1000Hz timer but this will also have other changes. I think a lot of people will compile a custom kernel based on the standard Ubuntu one, just changing that one configuration option. Regards,
Once you get to a version of FS that supports timerfd there is less issue with kernel freq. Also, more people should try the new t30 modem emulation built right into FS to work with hlyafax see spandsp.conf.xml one word of caution is don't leave (FS off and the faxgettys on) very long or the system will start using the ttty's for ssh sessions etc and faxgetty will start sending at commands to your stdin. <modem-settings> <!-- total-modems set to N will create that many soft-modems. If you use them with Hylafax you need the following for each one numbered 0..N: 1) A line like this in /etc/inittab: f0:2345:respawn:/usr/lib/fax/faxgetty /dev/FS0 2) copy conf/config.FS0 to /var/spool/hylafax/etc (or wherver the appropriate dir is on your system) Subsequent modem configs would incrment the 0 to 1 and so on. --> <param name="total-modems" value="0"/> On Thu, May 3, 2012 at 10:19 AM, Paul Cupis <paul@cupis.co.uk> wrote:
On Thu, May 03, 2012 at 05:53:01PM +0530, Anita Hall wrote:
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM.
What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ?
The most common suggestion is to use a kernel with 1000Hz timer. I think that the default timer for Ubuntu is 250, so this would be first thing to check/change.
You can check by running:
grep CONFIG_HZ= /boot/config-`uname -r`
and if it is not 1000, it would be worth installing a 1000Hz kernel and re-testing.
Ubuntu may have a packages -lowlatency kernel which has a 1000Hz timer but this will also have other changes. I think a lot of people will compile a custom kernel based on the standard Ubuntu one, just changing that one configuration option.
Regards,
_________________________________________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On 03/05/12 21:29, Anthony Minessale wrote:
Once you get to a version of FS that supports timerfd there is less issue with kernel freq.
Also, more people should try the new t30 modem emulation built right into FS to work with hlyafax
see spandsp.conf.xml one word of caution is don't leave (FS off and the faxgettys on) very long or the system will start using the ttty's for ssh sessions etc and faxgetty will start sending at commands to your stdin.
<modem-settings> <!-- total-modems set to N will create that many soft-modems. If you use them with Hylafax you need the following for each one numbered 0..N: 1) A line like this in /etc/inittab: f0:2345:respawn:/usr/lib/fax/faxgetty /dev/FS0
2) copy conf/config.FS0 to /var/spool/hylafax/etc (or wherver the appropriate dir is on your system)
Subsequent modem configs would incrment the 0 to 1 and so on.
--> <param name="total-modems" value="0"/>
Anthony, That is fantastic - seems I have a recent enough build for this. One question - how would you route inbound fax calls to these emulated modems so that Hylafax can deal with them? Cheers Alex
Hi, 1. Is it possible to route inbound fax calls to the emuiated modems set up in autoload.configs/spandsp.xml? 2. I set total-modems=1 but I don't have any /dev/FS* device. FS is not running as root - is that why? Do I need a udev rule to allow the device node to be created by FreeSWITCH? Cheers Alex
Quick question, why would you need that in the first place? Spandsp works fine sending/receiving faxes without that. The only reason would be something like hylafax integration. If that's what your looking for, there isn't any docs I can find on that. Maybe someone who knows how to can jump in and wikify that. -BDF On May 5, 2012 5:10 PM, "Alex Crow" <acrow@integrafin.co.uk> wrote:
Hi,
1. Is it possible to route inbound fax calls to the emuiated modems set up in autoload.configs/spandsp.xml?
2. I set total-modems=1 but I don't have any /dev/FS* device. FS is not running as root - is that why? Do I need a udev rule to allow the device node to be created by FreeSWITCH?
Cheers
Alex
_________________________________________________________________________ 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
On 06/05/12 03:13, Brian Foster wrote:
Quick question, why would you need that in the first place? Spandsp works fine sending/receiving faxes without that.
The only reason would be something like hylafax integration. If that's what your looking for, there isn't any docs I can find on that. Maybe someone who knows how to can jump in and wikify that.
-BDF
Brian, Yes, it's for hylafax integration. I really like it, so do the staff at my organisation, and I don't see a need to change something that "just works". I was hoping that I might see a registration corresponding to the modem, but for some reason I don't think it is working as it should anyway (eg no /dev/FS* device node). Cheers Alex
Hi Alex, Its the user ID which is causing your problem. If you just add the following <modem-settings> <param name="total-modems" value="5"/> </modem-settings> to your configuration you will get five /dev/FS* devices if you run as root, but none if you run as freeswitch. This ought to be fixed. I think the device names are a bit questionable, too. Calling the /dev/FS/modem* or even /dev/FS/t31-* might increase flexibility for the future where more device types might be needed. The use of the T.31 modems needs adding to the wiki, with sections on Linux use and on Windows use. Windows use is far from obvious, as you need to install com0com to provide the loopback virtual serial port devices. Steve On 05/06/2012 04:26 PM, Alex Crow wrote:
On 06/05/12 03:13, Brian Foster wrote:
Quick question, why would you need that in the first place? Spandsp works fine sending/receiving faxes without that.
The only reason would be something like hylafax integration. If that's what your looking for, there isn't any docs I can find on that. Maybe someone who knows how to can jump in and wikify that.
-BDF
Brian,
Yes, it's for hylafax integration. I really like it, so do the staff at my organisation, and I don't see a need to change something that "just works".
I was hoping that I might see a registration corresponding to the modem, but for some reason I don't think it is working as it should anyway (eg no /dev/FS* device node).
Cheers
Alex
On 06-05-12 14:02, Steve Underwood wrote:
Hi Alex,
Its the user ID which is causing your problem. If you just add the following <modem-settings> <param name="total-modems" value="5"/> </modem-settings> to your configuration you will get five /dev/FS* devices if you run as root, but none if you run as freeswitch. This ought to be fixed. I think
Could a udev rule with user=... (and group=...) perhaps fix that?
the device names are a bit questionable, too. Calling the /dev/FS/modem* or even /dev/FS/t31-* might increase flexibility for the future where more device types might be needed.
+1 Regards, Patrick
On 05/06/2012 10:13 PM, Patrick Lists wrote:
On 06-05-12 14:02, Steve Underwood wrote:
Hi Alex,
Its the user ID which is causing your problem. If you just add the following <modem-settings> <param name="total-modems" value="5"/> </modem-settings> to your configuration you will get five /dev/FS* devices if you run as root, but none if you run as freeswitch. This ought to be fixed. I think Could a udev rule with user=... (and group=...) perhaps fix that?
the device names are a bit questionable, too. Calling the /dev/FS/modem* or even /dev/FS/t31-* might increase flexibility for the future where more device types might be needed. +1 Its not the actual pts devices which cause problems. Those are happily created with any user name that's tried. It is the /dev/FS* links which won't create unless you are root. I'm not clear how udev can be used to make those creatable by someone like the freeswitch user. If you create a directory /dev/FS, make that writable by all, change FS to create the link as /dev/FS/*, and run as user freeswitch things work OK. However, /dev/FS is lost on reboot, because of the dynamic nature of /dev.
Steve
Hi Alex Did you get the answer to your first question ? Did you succeed in using the emulated modem option for taking fax calls to hylafax ? I put the following in spandsp.conf.xml and got /dev/FS[0-4] devices as soft links to /dev/pts/[4-8]. My freeswitch is running as root user so I did not face the issue you did. <modem-settings> <param name="total-modems" value="5"/> </modem-settings> What next? Could you point me to some doc in hylafax? (And before Steve lashes out at me again, I must clarify, I do not want to just play around, but my boss is clueless and wants me to evaluate hylafax :() regards, Anita On Sun, May 6, 2012 at 8:50 PM, Steve Underwood <steveu@coppice.org> wrote:
On 05/06/2012 10:13 PM, Patrick Lists wrote:
On 06-05-12 14:02, Steve Underwood wrote:
Hi Alex,
Its the user ID which is causing your problem. If you just add the following <modem-settings> <param name="total-modems" value="5"/> </modem-settings> to your configuration you will get five /dev/FS* devices if you run as root, but none if you run as freeswitch. This ought to be fixed. I think Could a udev rule with user=... (and group=...) perhaps fix that?
the device names are a bit questionable, too. Calling the /dev/FS/modem* or even /dev/FS/t31-* might increase flexibility for the future where more device types might be needed. +1 Its not the actual pts devices which cause problems. Those are happily created with any user name that's tried. It is the /dev/FS* links which won't create unless you are root. I'm not clear how udev can be used to make those creatable by someone like the freeswitch user. If you create a directory /dev/FS, make that writable by all, change FS to create the link as /dev/FS/*, and run as user freeswitch things work OK. However, /dev/FS is lost on reboot, because of the dynamic nature of /dev.
Steve
_________________________________________________________________________ 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
On 17/05/12 14:51, Anita Hall wrote:
Hi Alex
Did you get the answer to your first question ? Did you succeed in using the emulated modem option for taking fax calls to hylafax ?
I put the following in spandsp.conf.xml and got /dev/FS[0-4] devices as soft links to /dev/pts/[4-8]. My freeswitch is running as root user so I did not face the issue you did.
<modem-settings> <param name="total-modems" value="5"/> </modem-settings>
What next? Could you point me to some doc in hylafax?
(And before Steve lashes out at me again, I must clarify, I do not want to just play around, but my boss is clueless and wants me to evaluate hylafax :()
regards, Anita
Anita, The answer I got was that inbound is not yet supported by that mechanism, so I'd advise trying the Hylafax/T38Modem option if you need to use Hylafax. The T38Modem site provides tarballs of the OPAL and required dependencies to build it. The one main advantage we see for it is that there are quite a few free and commercial clients for Hylafax that can behave as a printer in Windows, so the user selects to print say a .doc file, chooses the fax printer, enters a number and off it goes. We used WHFC with XP, works great. We even have chaps batch faxing 100+ faxes a day using it from Excel with a macro. The other route for inbound is well documented, it using the inbuilt FreeSWITCH faxing and sending to email. Outbound is equally simple but not IMHO as easy for our end users as Hylafax (email-to-fax is simple but printing to fax from Windows not so simple). But with some work on your side, the spandsp stuff could probably do anything HF can do. As I said, Hylafax is excellent software and has been deployed on major production sites for probably 15 years+ with billions of total faxes delivered. We've used it for more than ten years with about 400 faxes in/out per day (which is piddling compared with some other sites, 10,000 per day is not difficult). If you want to avoid using t38modem you'd probably have to set up a dedicated HF box with an ISDN/POTS multichannel card (and if you want to fax from/to FS use a BRI or T1/E1 card to send audio to and from it). There are other ways of integrating it with backoffice systems including FTP, email, etc. To try to deploy a business fax system without first evaluating HylaFAX is in my opinion insane, so maybe your boss has a point. If, however, your boss is the one driving you to ask all these very diverse questions on this list (and they are indeed frequent and often completely unrelated to each other), perhaps you should ask him/her to focus on those that are his top priorities, and pick the first 3 to 5 and focus on those first, or in fact just compose a list of required features, post them up in a single email rather than 50, and ask "is this possible?". Just being a bit more targeted with your questions and how they link together might elicit more responses. Try to pick one solution at a time, test it, ask questions on that and stick with it for a bit and I think you'll get more help. Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
Hi Alex Many thanks for the reply. Do I need t38modem if I am already receiving the Fax calls over E1 via a Sangoma Card in my FS machine ? I read on the list that Hylafax takes audio and the only reason you needed t38modem was because your FS was getting calls over SIP. This is my topology ~~~~~~~~~ Hylafax <-------->|______| <-------> FreeSWITCH <---------> E1 ~~~~~~~~~ Since Hylafax is already taking audio calls, may be I do not need the t38modem ? If not, can Hylafax take audio calls directly from FreeSWITCH ? This is your topology (taken from your mails in the list) ~~~~~~~~~ Hylafax<---Audio---->t38modem<---T38--->Freeswitch/t38gateway<----G.711/SIP--->Mitel 3300(T38 unsupported, grr)<---ISDN30---->PSTN ~~~~~~~~~ Many thanks for the discussion. regards, Anita On Fri, May 18, 2012 at 1:08 AM, Alex Crow <acrow@integrafin.co.uk> wrote:
On 17/05/12 14:51, Anita Hall wrote:
Hi Alex
Did you get the answer to your first question ? Did you succeed in using the emulated modem option for taking fax calls to hylafax ?
I put the following in spandsp.conf.xml and got /dev/FS[0-4] devices as soft links to /dev/pts/[4-8]. My freeswitch is running as root user so I did not face the issue you did.
<modem-settings> <param name="total-modems" value="5"/> </modem-settings>
What next? Could you point me to some doc in hylafax?
(And before Steve lashes out at me again, I must clarify, I do not want to just play around, but my boss is clueless and wants me to evaluate hylafax :()
regards, Anita
Anita,
The answer I got was that inbound is not yet supported by that mechanism, so I'd advise trying the Hylafax/T38Modem option if you need to use Hylafax. The T38Modem site provides tarballs of the OPAL and required dependencies to build it. The one main advantage we see for it is that there are quite a few free and commercial clients for Hylafax that can behave as a printer in Windows, so the user selects to print say a .doc file, chooses the fax printer, enters a number and off it goes. We used WHFC with XP, works great. We even have chaps batch faxing 100+ faxes a day using it from Excel with a macro.
The other route for inbound is well documented, it using the inbuilt FreeSWITCH faxing and sending to email. Outbound is equally simple but not IMHO as easy for our end users as Hylafax (email-to-fax is simple but printing to fax from Windows not so simple). But with some work on your side, the spandsp stuff could probably do anything HF can do.
As I said, Hylafax is excellent software and has been deployed on major production sites for probably 15 years+ with billions of total faxes delivered. We've used it for more than ten years with about 400 faxes in/out per day (which is piddling compared with some other sites, 10,000 per day is not difficult). If you want to avoid using t38modem you'd probably have to set up a dedicated HF box with an ISDN/POTS multichannel card (and if you want to fax from/to FS use a BRI or T1/E1 card to send audio to and from it). There are other ways of integrating it with backoffice systems including FTP, email, etc.
To try to deploy a business fax system without first evaluating HylaFAX is in my opinion insane, so maybe your boss has a point. If, however, your boss is the one driving you to ask all these very diverse questions on this list (and they are indeed frequent and often completely unrelated to each other), perhaps you should ask him/her to focus on those that are his top priorities, and pick the first 3 to 5 and focus on those first, or in fact just compose a list of required features, post them up in a single email rather than 50, and ask "is this possible?".
Just being a bit more targeted with your questions and how they link together might elicit more responses. Try to pick one solution at a time, test it, ask questions on that and stick with it for a bit and I think you'll get more help.
Cheers
Alex
-- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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
On 18/05/12 09:34, Anita Hall wrote:
Hi Alex
Many thanks for the reply.
Do I need t38modem if I am already receiving the Fax calls over E1 via a Sangoma Card in my FS machine ? I read on the list that Hylafax takes audio and the only reason you needed t38modem was because your FS was getting calls over SIP.
Anita, Yes, you do if you want to use Hylafax and need inbound faxing, because it needs a modem device. T38Modem provides that (eg /dev/ttyT38x).
This is my topology ~~~~~~~~~ Hylafax <-------->|______| <-------> FreeSWITCH <---------> E1
Pretty much the same as mine in effect. So you would need Hylafax <-------->T38Modem<-------> FreeSWITCH/t38gateway <---------> E1 So hylafax speaks "Fax data" to T38modem, which speaks T38 to FreeSwitch, which gateways to/from audio over the E1. You may need to change my configs a bit to get that last bit working, maybe not.
~~~~~~~~~
Since Hylafax is already taking audio calls, may be I do not need the t38modem ? If not, can Hylafax take audio calls directly from FreeSWITCH ?
Not unless the inbuilt modem can be made to be an endpoint for calls from coming in from the E1, which I understand at present it cannot. This is because Hylafax does not send and receive audio itself, it talks fax control commands to modems and sends and receives data over a serial port.
This is your topology (taken from your mails in the list) ~~~~~~~~~ Hylafax<---Audio---->t38modem<---T38--->Freeswitch/t38gateway<----G.711/SIP--->Mitel 3300(T38 unsupported, grr)<---ISDN30---->PSTN ~~~~~~~~~
Actually the Mitel does support T38 with a license. The thing I'm not sure about is how good its gatewaying to ISDN is. Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
Hi Alex I got ptlib, opan and t38modem compile and installed. So far so good. Is there a wiki entry you have made with details of your FS + T38modem + Hylafax set-up, configuration files etc. I was able to dig up some stuff from your mails in the list but some wiki entry will help me and others a lot. My team member has put up a Wiki entry at http://wiki.freeswitch.org/wiki/T38modem It will help us a lot if you could do a quick edit and copy/paste of your config. Many many thanks! regards, Anita On Fri, May 18, 2012 at 2:45 PM, Alex Crow <acrow@integrafin.co.uk> wrote:
On 18/05/12 09:34, Anita Hall wrote:
Hi Alex
Many thanks for the reply.
Do I need t38modem if I am already receiving the Fax calls over E1 via a Sangoma Card in my FS machine ? I read on the list that Hylafax takes audio and the only reason you needed t38modem was because your FS was getting calls over SIP.
Anita,
Yes, you do if you want to use Hylafax and need inbound faxing, because it needs a modem device. T38Modem provides that (eg /dev/ttyT38x).
This is my topology ~~~~~~~~~ Hylafax <-------->|______| <-------> FreeSWITCH <---------> E1
Pretty much the same as mine in effect.
So you would need
Hylafax <-------->T38Modem<-------> FreeSWITCH/t38gateway <---------> E1
So hylafax speaks "Fax data" to T38modem, which speaks T38 to FreeSwitch, which gateways to/from audio over the E1. You may need to change my configs a bit to get that last bit working, maybe not.
~~~~~~~~~
Since Hylafax is already taking audio calls, may be I do not need the t38modem ? If not, can Hylafax take audio calls directly from FreeSWITCH
?
Not unless the inbuilt modem can be made to be an endpoint for calls from coming in from the E1, which I understand at present it cannot. This is because Hylafax does not send and receive audio itself, it talks fax control commands to modems and sends and receives data over a serial port.
This is your topology (taken from your mails in the list) ~~~~~~~~~
Hylafax<---Audio---->t38modem<---T38--->Freeswitch/t38gateway<----G.711/SIP--->Mitel
3300(T38 unsupported, grr)<---ISDN30---->PSTN ~~~~~~~~~
Actually the Mitel does support T38 with a license. The thing I'm not sure about is how good its gatewaying to ISDN is.
Cheers
Alex
-- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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
On 21/05/12 08:09, Anita Hall wrote:
Hi Alex
I got ptlib, opan and t38modem compile and installed. So far so good. Is there a wiki entry you have made with details of your FS + T38modem + Hylafax set-up, configuration files etc.
I was able to dig up some stuff from your mails in the list but some wiki entry will help me and others a lot.
My team member has put up a Wiki entry at http://wiki.freeswitch.org/wiki/T38modem
It will help us a lot if you could do a quick edit and copy/paste of your config.
Many many thanks!
regards, Anita
Hi, I posted up my inbound and outbound dialplan dialplans on the wiki. I think the absolute_codec_string would not be required in the case of bridging to FreeTDM instead of an IP gateway. Please try it. Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
On Thu, May 17, 2012 at 2:38 PM, Alex Crow <acrow@integrafin.co.uk> wrote:
On 17/05/12 14:51, Anita Hall wrote:
Hi Alex
Did you get the answer to your first question ? Did you succeed in using the emulated modem option for taking fax calls to hylafax ?
I put the following in spandsp.conf.xml and got /dev/FS[0-4] devices as soft links to /dev/pts/[4-8]. My freeswitch is running as root user so I did not face the issue you did.
<modem-settings> <param name="total-modems" value="5"/> </modem-settings>
What next? Could you point me to some doc in hylafax?
(And before Steve lashes out at me again, I must clarify, I do not want to just play around, but my boss is clueless and wants me to evaluate hylafax :()
regards, Anita
I need to stamp out some FUD 1) It works going both ways. Its been complete for some time and in use. 2) I can't find anything but helpful comments from Steve.
Anita,
The answer I got was that inbound is not yet supported by that mechanism, so I'd advise trying the Hylafax/T38Modem option if you need to use Hylafax. The T38Modem site provides tarballs of the OPAL and required dependencies to build it. The one main advantage we see for it is that there are quite a few free and commercial clients for Hylafax that can behave as a printer in Windows, so the user selects to print say a .doc file, chooses the fax printer, enters a number and off it goes. We used WHFC with XP, works great. We even have chaps batch faxing 100+ faxes a day using it from Excel with a macro.
The other route for inbound is well documented, it using the inbuilt FreeSWITCH faxing and sending to email. Outbound is equally simple but not IMHO as easy for our end users as Hylafax (email-to-fax is simple but printing to fax from Windows not so simple). But with some work on your side, the spandsp stuff could probably do anything HF can do.
As I said, Hylafax is excellent software and has been deployed on major production sites for probably 15 years+ with billions of total faxes delivered. We've used it for more than ten years with about 400 faxes in/out per day (which is piddling compared with some other sites, 10,000 per day is not difficult). If you want to avoid using t38modem you'd probably have to set up a dedicated HF box with an ISDN/POTS multichannel card (and if you want to fax from/to FS use a BRI or T1/E1 card to send audio to and from it). There are other ways of integrating it with backoffice systems including FTP, email, etc.
To try to deploy a business fax system without first evaluating HylaFAX is in my opinion insane, so maybe your boss has a point. If, however, your boss is the one driving you to ask all these very diverse questions on this list (and they are indeed frequent and often completely unrelated to each other), perhaps you should ask him/her to focus on those that are his top priorities, and pick the first 3 to 5 and focus on those first, or in fact just compose a list of required features, post them up in a single email rather than 50, and ask "is this possible?".
Just being a bit more targeted with your questions and how they link together might elicit more responses. Try to pick one solution at a time, test it, ask questions on that and stick with it for a bit and I think you'll get more help.
Cheers
Alex
-- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On 21/05/12 16:16, Anthony Minessale wrote:
On Thu, May 17, 2012 at 2:38 PM, Alex Crow<acrow@integrafin.co.uk> wrote:
On 17/05/12 14:51, Anita Hall wrote:
Hi Alex
Did you get the answer to your first question ? Did you succeed in using the emulated modem option for taking fax calls to hylafax ?
I put the following in spandsp.conf.xml and got /dev/FS[0-4] devices as soft links to /dev/pts/[4-8]. My freeswitch is running as root user so I did not face the issue you did.
<modem-settings> <param name="total-modems" value="5"/> </modem-settings>
What next? Could you point me to some doc in hylafax?
(And before Steve lashes out at me again, I must clarify, I do not want to just play around, but my boss is clueless and wants me to evaluate hylafax :()
regards, Anita
I need to stamp out some FUD
1) It works going both ways. Its been complete for some time and in use. 2) I can't find anything but helpful comments from Steve.
Anthony. I won't comment on point 2 as I think it's unproductive, but I also have no idea how to use the emulated modems for inbound fax. If you could suggest a way that would be great. I was expecting to see a registered endpoint but nothing appeared, so I am lost as to what I should put in my dialplan to, for instance, direct a call from a PSTN gateway or FreeTDM endpoint to the virtual modem (so Hylafax can answer it). Also I have the problem that unless FreeSWITCH is run as root, the device nodes are not created. Unless in the last few weeks some docs have been updated on this, I'm still stuck with T38modem. Cheers Alex
On 5/21/12 2:15 PM, "Alex Crow" <acrow@integrafin.co.uk> wrote:
Also I have the problem that unless FreeSWITCH is run as root, the device nodes are not created.
Unless in the last few weeks some docs have been updated on this, I'm still stuck with T38modem.
If freeswitch running as root and not running as root doesn't work, this should tell you that you have a permissions issue... The FreeSWITCH developers fixing your systems perms issues is beyond the scope of the FreeSWITCH project... Otherwise, the FreeSWITCH modems basically work just like t38modem... The only setting is how many of them to create then the only other settings is configuring your platform to properly allow freeswitch (or the user that freeswitch is running as) create those devices then configure hylafax to use them as normal. The steps to do this can vary from platform to platform (or even versions of the platform. For example how you do this on centos5 is not how you do this on centos6 due to changes in the platform.) K
On 21/05/12 20:28, Ken Rice wrote:
On 5/21/12 2:15 PM, "Alex Crow"<acrow@integrafin.co.uk> wrote:
Also I have the problem that unless FreeSWITCH is run as root, the device nodes are not created.
Unless in the last few weeks some docs have been updated on this, I'm still stuck with T38modem.
If freeswitch running as root and not running as root doesn't work, this should tell you that you have a permissions issue... The FreeSWITCH developers fixing your systems perms issues is beyond the scope of the FreeSWITCH project...
Otherwise, the FreeSWITCH modems basically work just like t38modem... The only setting is how many of them to create then the only other settings is configuring your platform to properly allow freeswitch (or the user that freeswitch is running as) create those devices then configure hylafax to use them as normal.
The steps to do this can vary from platform to platform (or even versions of the platform. For example how you do this on centos5 is not how you do this on centos6 due to changes in the platform.)
K
Ken, I respectfully disagree with the "like t38modem" bit of this. With t38modem, you create a set of t38modem devices which actually register against FreeSWITCH and therefore appear as registered endpoints, so it's easy to route calls to them (ie transfer to "t38modem0 default XML"). When I did run FS as root, despite the device nodes being created, I saw no endpoint registrations for the softmodems, nor did I find any documentation saying that these endpoints may be addressed as, for instance "spandsp/FSx". I am also used to writing udev rules, but I can't find anything that allows a non-root uid/gid user to create device nodes for a device provided by a userspace program. It'd be great to avoid T38modem, and I've asked these questions before, namely: 1) Does anyone have any examples on any platform of tweaking udev to allow FreeSWITCH to create device nodes at startup when running as, say, user freeswitch or user www-data (without making the primary group of said users "root" or setting setuid root on the executable). I am not prepared to take the risk of running as either effective uid or gid 0. Please share if so. I'm running on debian stable. 2) How does one direct an incoming call, say, from FreeTDM or a SIP/ISDN gateway to one of the softmodems. I cannot find this in the docs. If we can divorce these questions from any association with another user's questions on this list that's fine. I've tried to help that person as much as I can out of my own good nature. Cheers Alex
IIRC its modem/1 or 2 3 4 etc. Probably a for auto like tdm. Check the code to be sure.... On May 21, 2012 3:13 PM, "Alex Crow" <acrow@integrafin.co.uk> wrote:
On 21/05/12 20:28, Ken Rice wrote:
On 5/21/12 2:15 PM, "Alex Crow"<acrow@integrafin.co.uk> wrote:
Also I have the problem that unless FreeSWITCH is run as root, the device nodes are not created.
Unless in the last few weeks some docs have been updated on this, I'm still stuck with T38modem.
If freeswitch running as root and not running as root doesn't work, this should tell you that you have a permissions issue... The FreeSWITCH developers fixing your systems perms issues is beyond the scope of the FreeSWITCH project...
Otherwise, the FreeSWITCH modems basically work just like t38modem... The only setting is how many of them to create then the only other settings
is
configuring your platform to properly allow freeswitch (or the user that freeswitch is running as) create those devices then configure hylafax to use them as normal.
The steps to do this can vary from platform to platform (or even versions of the platform. For example how you do this on centos5 is not how you do this on centos6 due to changes in the platform.)
K
Ken,
I respectfully disagree with the "like t38modem" bit of this. With t38modem, you create a set of t38modem devices which actually register against FreeSWITCH and therefore appear as registered endpoints, so it's easy to route calls to them (ie transfer to "t38modem0 default XML"). When I did run FS as root, despite the device nodes being created, I saw no endpoint registrations for the softmodems, nor did I find any documentation saying that these endpoints may be addressed as, for instance "spandsp/FSx".
I am also used to writing udev rules, but I can't find anything that allows a non-root uid/gid user to create device nodes for a device provided by a userspace program.
It'd be great to avoid T38modem, and I've asked these questions before, namely:
1) Does anyone have any examples on any platform of tweaking udev to allow FreeSWITCH to create device nodes at startup when running as, say, user freeswitch or user www-data (without making the primary group of said users "root" or setting setuid root on the executable). I am not prepared to take the risk of running as either effective uid or gid 0. Please share if so. I'm running on debian stable.
2) How does one direct an incoming call, say, from FreeTDM or a SIP/ISDN gateway to one of the softmodems. I cannot find this in the docs.
If we can divorce these questions from any association with another user's questions on this list that's fine. I've tried to help that person as much as I can out of my own good nature.
Cheers
Alex
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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 looked at the source, just to confirm and I believe Anthony is correct. Line 871 of mod_spandsp_modem.c: switch_snprintf(name, sizeof(name), "modem/%d/%s", modem->slot, number); That would suggest a syntax just like FreeTDM, where the dialstring is "modem/x/y" where x is the "slot" and y is the dialed number. Also, I suspect this block starting at line 856 means you can use a literal "a" for the slot and it will hunt for the next available modem: if (!strcasecmp(modem_id_string, "a")) { modem_id = -1; } else { modem_id = atoi(modem_id_string); } Please try this out and confirm. If possible, add the information to the wiki. If you can't update the wiki then please report back and let us know whether the dialstring format worked or not. Thanks, MC On Mon, May 21, 2012 at 2:23 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
IIRC its modem/1 or 2 3 4 etc. Probably a for auto like tdm. Check the code to be sure.... On May 21, 2012 3:13 PM, "Alex Crow" <acrow@integrafin.co.uk> wrote:
On 21/05/12 20:28, Ken Rice wrote:
On 5/21/12 2:15 PM, "Alex Crow"<acrow@integrafin.co.uk> wrote:
Also I have the problem that unless FreeSWITCH is run as root, the device nodes are not created.
Unless in the last few weeks some docs have been updated on this, I'm still stuck with T38modem.
If freeswitch running as root and not running as root doesn't work, this should tell you that you have a permissions issue... The FreeSWITCH developers fixing your systems perms issues is beyond the scope of the FreeSWITCH project...
Otherwise, the FreeSWITCH modems basically work just like t38modem...
The
only setting is how many of them to create then the only other settings is configuring your platform to properly allow freeswitch (or the user that freeswitch is running as) create those devices then configure hylafax to use them as normal.
The steps to do this can vary from platform to platform (or even versions of the platform. For example how you do this on centos5 is not how you do this on centos6 due to changes in the platform.)
K
Ken,
I respectfully disagree with the "like t38modem" bit of this. With t38modem, you create a set of t38modem devices which actually register against FreeSWITCH and therefore appear as registered endpoints, so it's easy to route calls to them (ie transfer to "t38modem0 default XML"). When I did run FS as root, despite the device nodes being created, I saw no endpoint registrations for the softmodems, nor did I find any documentation saying that these endpoints may be addressed as, for instance "spandsp/FSx".
I am also used to writing udev rules, but I can't find anything that allows a non-root uid/gid user to create device nodes for a device provided by a userspace program.
It'd be great to avoid T38modem, and I've asked these questions before, namely:
1) Does anyone have any examples on any platform of tweaking udev to allow FreeSWITCH to create device nodes at startup when running as, say, user freeswitch or user www-data (without making the primary group of said users "root" or setting setuid root on the executable). I am not prepared to take the risk of running as either effective uid or gid 0. Please share if so. I'm running on debian stable.
2) How does one direct an incoming call, say, from FreeTDM or a SIP/ISDN gateway to one of the softmodems. I cannot find this in the docs.
If we can divorce these questions from any association with another user's questions on this list that's fine. I've tried to help that person as much as I can out of my own good nature.
Cheers
Alex
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
What all this should tell us is a wiki page is badly needed on this topic. Specifically, people need clear information about: - How the modems appear to the user inside FS - How the modems appear to the user in /dev - How the permissions of the modems in /dev can be controlled, so non-root users are OK I still haven't seen anyone give information on the last point. Its easy to set up udev rules to control the generation of the pts devices in /dev, but I am not clear how to control the permissions during the creation of the links in /dev which give these devices meaningful names. Steve On 05/22/2012 07:28 AM, Michael Collins wrote:
I looked at the source, just to confirm and I believe Anthony is correct.
Line 871 of mod_spandsp_modem.c: switch_snprintf(name, sizeof(name), "modem/%d/%s", modem->slot, number);
That would suggest a syntax just like FreeTDM, where the dialstring is "modem/x/y" where x is the "slot" and y is the dialed number. Also, I suspect this block starting at line 856 means you can use a literal "a" for the slot and it will hunt for the next available modem:
if (!strcasecmp(modem_id_string, "a")) { modem_id = -1; } else { modem_id = atoi(modem_id_string); }
Please try this out and confirm. If possible, add the information to the wiki. If you can't update the wiki then please report back and let us know whether the dialstring format worked or not.
Thanks, MC
On Mon, May 21, 2012 at 2:23 PM, Anthony Minessale <anthony.minessale@gmail.com <mailto:anthony.minessale@gmail.com>> wrote:
IIRC its modem/1 or 2 3 4 etc. Probably a for auto like tdm. Check the code to be sure....
On May 21, 2012 3:13 PM, "Alex Crow" <acrow@integrafin.co.uk <mailto:acrow@integrafin.co.uk>> wrote:
On 21/05/12 20:28, Ken Rice wrote: > > > On 5/21/12 2:15 PM, "Alex Crow"<acrow@integrafin.co.uk <mailto:acrow@integrafin.co.uk>> wrote: >> Also I have the problem that unless FreeSWITCH is run as root, the >> device nodes are not created. >> >> Unless in the last few weeks some docs have been updated on this, I'm >> still stuck with T38modem. >> > If freeswitch running as root and not running as root doesn't work, this > should tell you that you have a permissions issue... The FreeSWITCH > developers fixing your systems perms issues is beyond the scope of the > FreeSWITCH project... > > Otherwise, the FreeSWITCH modems basically work just like t38modem... The > only setting is how many of them to create then the only other settings is > configuring your platform to properly allow freeswitch (or the user that > freeswitch is running as) create those devices then configure hylafax to use > them as normal. > > The steps to do this can vary from platform to platform (or even versions of > the platform. For example how you do this on centos5 is not how you do this > on centos6 due to changes in the platform.) > > K > >
Ken,
I respectfully disagree with the "like t38modem" bit of this. With t38modem, you create a set of t38modem devices which actually register against FreeSWITCH and therefore appear as registered endpoints, so it's easy to route calls to them (ie transfer to "t38modem0 default XML"). When I did run FS as root, despite the device nodes being created, I saw no endpoint registrations for the softmodems, nor did I find any documentation saying that these endpoints may be addressed as, for instance "spandsp/FSx".
I am also used to writing udev rules, but I can't find anything that allows a non-root uid/gid user to create device nodes for a device provided by a userspace program.
It'd be great to avoid T38modem, and I've asked these questions before, namely:
1) Does anyone have any examples on any platform of tweaking udev to allow FreeSWITCH to create device nodes at startup when running as, say, user freeswitch or user www-data (without making the primary group of said users "root" or setting setuid root on the executable). I am not prepared to take the risk of running as either effective uid or gid 0. Please share if so. I'm running on debian stable.
2) How does one direct an incoming call, say, from FreeTDM or a SIP/ISDN gateway to one of the softmodems. I cannot find this in the docs.
If we can divorce these questions from any association with another user's questions on this list that's fine. I've tried to help that person as much as I can out of my own good nature.
Cheers
Alex
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
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
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
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
Join Us At ClueCon - Aug 7-9, 2012
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
Many thanks to everybody! I will put this on wiki but I am stuck at the very beginning. I am sorry for being such a noob but this is my first tryst with modems. I have modems appearing as /dev/FS[0-4] which link to /dev/pts/[4-7] # ls -l /dev/FS? lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS0 -> /dev/pts/4 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS1 -> /dev/pts/5 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS2 -> /dev/pts/6 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS3 -> /dev/pts/7 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS4 -> /dev/pts/8 But, # cu -l /dev/FS0 cu: open (/dev/FS0): Permission denied cu: /dev/FS0: Line in use I think this is because FreeSWITCH is using this device, but then how does HylaFax or any other program like cu talk to it ? This page says that I should be able to check my modem before I configure it with Hylafax. http://www.hylafax.org/content/Handbook:Basic_Server_Configuration:Checking_... regards, Anita On Tue, May 22, 2012 at 6:41 AM, Steve Underwood <steveu@coppice.org> wrote:
What all this should tell us is a wiki page is badly needed on this topic. Specifically, people need clear information about: - How the modems appear to the user inside FS - How the modems appear to the user in /dev - How the permissions of the modems in /dev can be controlled, so non-root users are OK I still haven't seen anyone give information on the last point. Its easy to set up udev rules to control the generation of the pts devices in /dev, but I am not clear how to control the permissions during the creation of the links in /dev which give these devices meaningful names.
Steve
On 05/22/2012 07:28 AM, Michael Collins wrote:
I looked at the source, just to confirm and I believe Anthony is correct.
Line 871 of mod_spandsp_modem.c: switch_snprintf(name, sizeof(name), "modem/%d/%s", modem->slot, number);
That would suggest a syntax just like FreeTDM, where the dialstring is "modem/x/y" where x is the "slot" and y is the dialed number. Also, I suspect this block starting at line 856 means you can use a literal "a" for the slot and it will hunt for the next available modem:
if (!strcasecmp(modem_id_string, "a")) { modem_id = -1; } else { modem_id = atoi(modem_id_string); }
Please try this out and confirm. If possible, add the information to the wiki. If you can't update the wiki then please report back and let us know whether the dialstring format worked or not.
Thanks, MC
On Mon, May 21, 2012 at 2:23 PM, Anthony Minessale <anthony.minessale@gmail.com <mailto:anthony.minessale@gmail.com>> wrote:
IIRC its modem/1 or 2 3 4 etc. Probably a for auto like tdm. Check the code to be sure....
On May 21, 2012 3:13 PM, "Alex Crow" <acrow@integrafin.co.uk <mailto:acrow@integrafin.co.uk>> wrote:
On 21/05/12 20:28, Ken Rice wrote: > > > On 5/21/12 2:15 PM, "Alex Crow"<acrow@integrafin.co.uk <mailto:acrow@integrafin.co.uk>> wrote: >> Also I have the problem that unless FreeSWITCH is run as root, the >> device nodes are not created. >> >> Unless in the last few weeks some docs have been updated on this, I'm >> still stuck with T38modem. >> > If freeswitch running as root and not running as root doesn't work, this > should tell you that you have a permissions issue... The FreeSWITCH > developers fixing your systems perms issues is beyond the scope of the > FreeSWITCH project... > > Otherwise, the FreeSWITCH modems basically work just like t38modem... The > only setting is how many of them to create then the only other settings is > configuring your platform to properly allow freeswitch (or the user that > freeswitch is running as) create those devices then configure hylafax to use > them as normal. > > The steps to do this can vary from platform to platform (or even versions of > the platform. For example how you do this on centos5 is not how you do this > on centos6 due to changes in the platform.) > > K > >
Ken,
I respectfully disagree with the "like t38modem" bit of this. With t38modem, you create a set of t38modem devices which actually register against FreeSWITCH and therefore appear as registered endpoints, so it's easy to route calls to them (ie transfer to "t38modem0 default XML"). When I did run FS as root, despite the device nodes being created, I saw no endpoint registrations for the softmodems, nor did I find any documentation saying that these endpoints may be addressed as, for instance "spandsp/FSx".
I am also used to writing udev rules, but I can't find anything that allows a non-root uid/gid user to create device nodes for a device provided by a userspace program.
It'd be great to avoid T38modem, and I've asked these questions before, namely:
1) Does anyone have any examples on any platform of tweaking udev to allow FreeSWITCH to create device nodes at startup when running as, say, user freeswitch or user www-data (without making the primary group of said users "root" or setting setuid root on the executable). I am not prepared to take the risk of running as either effective uid or gid 0. Please share if so. I'm running on debian stable.
2) How does one direct an incoming call, say, from FreeTDM or a SIP/ISDN gateway to one of the softmodems. I cannot find this in the docs.
If we can divorce these questions from any association with another user's questions on this list that's fine. I've tried to help that person as much as I can out of my own good nature.
Cheers
Alex
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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
Join Us At ClueCon - Aug 7-9, 2012
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
On 24/05/12 09:07, Anita Hall wrote:
Many thanks to everybody!
I will put this on wiki but I am stuck at the very beginning. I am sorry for being such a noob but this is my first tryst with modems.
I have modems appearing as /dev/FS[0-4] which link to /dev/pts/[4-7]
# ls -l /dev/FS? lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS0 -> /dev/pts/4 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS1 -> /dev/pts/5 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS2 -> /dev/pts/6 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS3 -> /dev/pts/7 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS4 -> /dev/pts/8
But, # cu -l /dev/FS0 cu: open (/dev/FS0): Permission denied cu: /dev/FS0: Line in use
I think this is because FreeSWITCH is using this device, but then how does HylaFax or any other program like cu talk to it ?
This page says that I should be able to check my modem before I configure it with Hylafax. http://www.hylafax.org/content/Handbook:Basic_Server_Configuration:Checking_...
regards, Anita
The permissions on the links are not relevant. It's the permissions on the /dev/pts/* devices that take effect. Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
Able to both receive and send Fax using emulated soft modem via mod_spandsp and HylaFax. Wikified at http://wiki.freeswitch.org/wiki/HylaFax A big thank you to everyone! On Thu, May 24, 2012 at 4:02 PM, Alex Crow <acrow@integrafin.co.uk> wrote:
On 24/05/12 09:07, Anita Hall wrote:
Many thanks to everybody!
I will put this on wiki but I am stuck at the very beginning. I am sorry for being such a noob but this is my first tryst with modems.
I have modems appearing as /dev/FS[0-4] which link to /dev/pts/[4-7]
# ls -l /dev/FS? lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS0 -> /dev/pts/4 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS1 -> /dev/pts/5 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS2 -> /dev/pts/6 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS3 -> /dev/pts/7 lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS4 -> /dev/pts/8
But, # cu -l /dev/FS0 cu: open (/dev/FS0): Permission denied cu: /dev/FS0: Line in use
I think this is because FreeSWITCH is using this device, but then how does HylaFax or any other program like cu talk to it ?
This page says that I should be able to check my modem before I configure it with Hylafax.
http://www.hylafax.org/content/Handbook:Basic_Server_Configuration:Checking_...
regards, Anita
The permissions on the links are not relevant. It's the permissions on the /dev/pts/* devices that take effect.
Alex
-- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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
Sounds good to me. Cheers Sent from my BlackBerry® -----Original Message----- From: Anita Hall <anita.hall@simmortel.com> Sender: freeswitch-users-bounces@lists.freeswitch.org Date: Fri, 1 Jun 2012 17:21:05 To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Spandsp mulated modems inbound/no /dev/FS* device? _________________________________________________________________________ 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 Join Us At ClueCon - Aug 7-9, 2012 FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi, I spent many hours playing with udev rules, as, sensibly, I don't run FreeSWITCH as root. I could not get any devices created, not even those in /dev/tts/<ttsX> (running on Debian Squeeze) Has anyone got this working as a non-root user? Cutting out t38modem is one layer less to go wrong and I'd like to use it. All ideas received gratefully. Cheers Alex On 01/06/12 13:01, davidwaf@gmail.com wrote:
Sounds good to me. Cheers Sent from my BlackBerry®
-----Original Message----- From: Anita Hall<anita.hall@simmortel.com> Sender: freeswitch-users-bounces@lists.freeswitch.org Date: Fri, 1 Jun 2012 17:21:05 To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Reply-To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Spandsp mulated modems inbound/no /dev/FS* device?
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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
Join Us At ClueCon - Aug 7-9, 2012
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
-- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
Ubuntu default timer for the server kernel is 100Hz (although I haven't checked 12.04). You need the -preempt kernel for low latency and 1000Hz. It's easy to apt-get install; you then need to tweak the GRUB config to make it your default kernel on (re)boot. John On 03/05/12 16:19, Paul Cupis wrote:
On Thu, May 03, 2012 at 05:53:01PM +0530, Anita Hall wrote:
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM. What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ? The most common suggestion is to use a kernel with 1000Hz timer. I think that the default timer for Ubuntu is 250, so this would be first thing to check/change.
You can check by running:
grep CONFIG_HZ= /boot/config-`uname -r`
and if it is not 1000, it would be worth installing a 1000Hz kernel and re-testing.
Ubuntu may have a packages -lowlatency kernel which has a 1000Hz timer but this will also have other changes. I think a lot of people will compile a custom kernel based on the standard Ubuntu one, just changing that one configuration option.
Regards,
_________________________________________________________________________ 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
Thanks a lot Steve, Paul, Anthm, John ! I will try both timerfd and the kernel freq thing :) Btw, I am not using any T.38 or IP. Here is the set-up and config E1 <-> Sangoma A108D <-> libPRI <-> FreeTDM <-> mod_spandsp The Sangoma cards take their timing source from the E1, echo cancellation is disabled. There is no T.38 or any other IP. We are using G.711 only Kernel timing related info $grep CONFIG_HZ= /boot/config-`uname -r` CONFIG_HZ=100 $ cat freetdm.conf [span wanpipe wp1] trunk_type => e1 group=1 b-channel => 1:1-15 d-channel => 1:16 b-channel => 1:17-31 etc. $ cat /etc/wanpipe/wanpipe1.conf [devices] wanpipe1 = WAN_AFT_TE1, Comment [interfaces] w1g1 = wanpipe1, , TDM_VOICE_API, Comment [wanpipe1] CARD_TYPE = AFT S514CPU = A CommPort = PRI AUTO_PCISLOT = NO PCISLOT = 6 PCIBUS = 1 FE_MEDIA = E1 FE_LCODE = HDB3 FE_FRAME = CRC4 FE_LINE = 1 TE_CLOCK = NORMAL TE_REF_CLOCK = 0 TE_SIG_MODE = CCS TE_HIGHIMPEDANCE = NO TE_RX_SLEVEL = 430 HW_RJ45_PORT_MAP = DEFAULT LBO = 120OH FE_TXTRISTATE = NO MTU = 1500 UDPPORT = 9000 TTL = 255 IGNORE_FRONT_END = NO TDMV_SPAN = 1 TDMV_DCHAN = 16 TE_AIS_MAINTENANCE = NO #NO: defualt YES: Start port in AIS Blue Alarm and keep line down #wanpipemon -i w1g1 -c Ttx_ais_off to disable AIS maintenance mode #wanpipemon -i w1g1 -c Ttx_ais_on to enable AIS maintenance mode TDMV_HW_DTMF = YES # YES: receive dtmf events from hardware TDMV_HW_FAX_DETECT = NO # YES: receive fax 1100hz events from hardware HWEC_OPERATION_MODE = OCT_NORMAL # OCT_NORMAL: echo cancelation enabled with nlp (default) # OCT_SPEECH: improves software tone detection by disabling NLP (echo possible) # OCT_NO_ECHO:disables echo cancelation but allows VQE/tone functions. HWEC_DTMF_REMOVAL = NO # NO: default YES: remove dtmf out of incoming media (must have hwdtmf enabled) HWEC_NOISE_REDUCTION = NO # NO: default YES: reduces noise on the line - could break fax HWEC_ACUSTIC_ECHO = NO # NO: default YES: enables acoustic echo cancellation HWEC_NLP_DISABLE = NO # NO: default YES: guarantees software tone detection (possible echo) HWEC_TX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default) HWEC_RX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default) HWEC_TX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal HWEC_RX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal [w1g1] ACTIVE_CH = ALL TDMV_HWEC = YES MTU = 80 $ cat autoload_configs/freetdm.conf.xml <configuration name="freetdm.conf" description="Freetdm Configuration"> <settings> <param name="debug" value="1"/> </settings> <config_profiles> <profile name="my_pri_te_1"> <param name="switchtype" value="euroisdn" /> <param name="interface" value="pri_cpe"/> </profile> </config_profiles> <libpri_spans> <span name="wp1" cfgprofile="my_pri_te_1"> <param name="debug" value="all" /> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="l1" value="alaw"/> </span> etc. regards, Anita On Fri, May 4, 2012 at 4:34 AM, John <freeswitch@earthspike.net> wrote:
Ubuntu default timer for the server kernel is 100Hz (although I haven't checked 12.04). You need the -preempt kernel for low latency and 1000Hz. It's easy to apt-get install; you then need to tweak the GRUB config to make it your default kernel on (re)boot.
John
On 03/05/12 16:19, Paul Cupis wrote:
On Thu, May 03, 2012 at 05:53:01PM +0530, Anita Hall wrote:
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM. What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ? The most common suggestion is to use a kernel with 1000Hz timer. I think that the default timer for Ubuntu is 250, so this would be first thing to check/change.
You can check by running:
grep CONFIG_HZ= /boot/config-`uname -r`
and if it is not 1000, it would be worth installing a 1000Hz kernel and re-testing.
Ubuntu may have a packages -lowlatency kernel which has a 1000Hz timer but this will also have other changes. I think a lot of people will compile a custom kernel based on the standard Ubuntu one, just changing that one configuration option.
Regards,
_________________________________________________________________________ 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
On 03/05/12 13:23, Anita Hall wrote:
Hi Alex
Thanks for the tip :)
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM.
Is it possible to use Hylafax instead of or in combination to FreeSWITCH if I am using Sangoma E1 Cards ?
What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ?
Cheers!
regards, Anita
Yes, you can use it with the E1 cards in exactly the same way, instead of bridging to a gateway you'd bridge to FreeTDM channel(s) for outbound. Inbound it's exactly the same. However I've just noticed a later post by Anthony in which he describes soft-modems built into Freeswitch directly. I would try that first as it was a right royal pain compiling T38modem! Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
On 05/03/2012 08:23 PM, Anita Hall wrote:
Hi Alex
Thanks for the tip :)
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM.
Is it possible to use Hylafax instead of or in combination to FreeSWITCH if I am using Sangoma E1 Cards ?
What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ?
Are you really interested in fixing your problems? It seems you have greater interest in tinkering with every possible solution. Many many people handle hundreds of thousands of FAXes per day with low failures rates using: asterisk + iaxmodem/spandsp + hylafax, or asterisk + spandsp, or freeswitch + spandsp and some people are probably now carrying significant traffic with freeswitch + spandsp + hylafax, which is a recent addition to the options. They all work well when set up properly. Steve
On 04/05/12 17:17, Steve Underwood wrote:
On 05/03/2012 08:23 PM, Anita Hall wrote:
Hi Alex
Thanks for the tip :)
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM.
Is it possible to use Hylafax instead of or in combination to FreeSWITCH if I am using Sangoma E1 Cards ?
What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ? Are you really interested in fixing your problems? It seems you have greater interest in tinkering with every possible solution. Many many people handle hundreds of thousands of FAXes per day with low failures rates using: asterisk + iaxmodem/spandsp + hylafax, or asterisk + spandsp, or freeswitch + spandsp and some people are probably now carrying significant traffic with freeswitch + spandsp + hylafax, which is a recent addition to the options. They all work well when set up properly.
Steve
Steve, Forgive me, but to be honest I think that opening sentence is a bit harsh. Timing is important for fax, and I think the OP just wants to eliminate all the possible causes, which is commendable. I have had problems in the past with bad timing in the kernel on Ubuntu (although it may not apply here, I was on BRI) and it was a really difficult time with lots of complaints from users until I pinned it down. I think we just need to point out the great capabilities of the Free/OSS software that is available. I have been stunned with the quality and stability of both FreeSwitch and HylaFAX, and having used the latter for more than a decade in a commercial environment cannot fault it. It also has great Windows clients such as WHFC, great reporting of fax outcomes built-in, and just seems to do its job without ever needing attention (We had one box with 5+ years of uptime). Moving to to a new softswitch/PBX can be very daunting for a new user, especially one that comes from the Asterisk environment (lots of baggage) or one not accustomed to telephony in general. Cheers Alex
On 05/05/2012 01:39 AM, Alex Crow wrote:
On 04/05/12 17:17, Steve Underwood wrote:
On 05/03/2012 08:23 PM, Anita Hall wrote:
Hi Alex
Thanks for the tip :)
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM.
Is it possible to use Hylafax instead of or in combination to FreeSWITCH if I am using Sangoma E1 Cards ?
What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ? Are you really interested in fixing your problems? It seems you have greater interest in tinkering with every possible solution. Many many people handle hundreds of thousands of FAXes per day with low failures rates using: asterisk + iaxmodem/spandsp + hylafax, or asterisk + spandsp, or freeswitch + spandsp and some people are probably now carrying significant traffic with freeswitch + spandsp + hylafax, which is a recent addition to the options. They all work well when set up properly.
Steve
Steve,
Forgive me, but to be honest I think that opening sentence is a bit harsh. Timing is important for fax, and I think the OP just wants to eliminate all the possible causes, which is commendable. I have had problems in the past with bad timing in the kernel on Ubuntu (although it may not apply here, I was on BRI) and it was a really difficult time with lots of complaints from users until I pinned it down.
I think we just need to point out the great capabilities of the Free/OSS software that is available. I have been stunned with the quality and stability of both FreeSwitch and HylaFAX, and having used the latter for more than a decade in a commercial environment cannot fault it. It also has great Windows clients such as WHFC, great reporting of fax outcomes built-in, and just seems to do its job without ever needing attention (We had one box with 5+ years of uptime). Moving to to a new softswitch/PBX can be very daunting for a new user, especially one that comes from the Asterisk environment (lots of baggage) or one not accustomed to telephony in general.
Have you seen what and where she has been posting? She's taking a scattergun approach, and its getting kind of annoying. She seems to assume every piece of software around is thoroughly broken, and the fact people are using it successfully in high volume applications is an illusion. Nice people get a lot of help from me, if I'm not too busy. She won't. Steve
Hi Steve I am sorry for the trouble. You are right, I should stay focused on FS + spandsp. I double checked, the clock is taken from the E1. I have in wanpipe1.conf TE_CLOCK = NORMAL TE_REF_CLOCK = 0 Thanks. regards, Anita On Sat, May 5, 2012 at 12:18 AM, Steve Underwood <steveu@coppice.org> wrote:
On 05/05/2012 01:39 AM, Alex Crow wrote:
On 04/05/12 17:17, Steve Underwood wrote:
On 05/03/2012 08:23 PM, Anita Hall wrote:
Hi Alex
Thanks for the tip :)
No, I am running FreeSWITCH on an Ubuntu 64-bit Quad core machine. There is no VM.
Is it possible to use Hylafax instead of or in combination to FreeSWITCH if I am using Sangoma E1 Cards ?
What all things should I check to ensure that the timing on my system is good? Like, may be, my motherboard is bad or my kernel could be tuned better ? Are you really interested in fixing your problems? It seems you have greater interest in tinkering with every possible solution. Many many people handle hundreds of thousands of FAXes per day with low failures rates using: asterisk + iaxmodem/spandsp + hylafax, or asterisk + spandsp, or freeswitch + spandsp and some people are probably now carrying significant traffic with freeswitch + spandsp + hylafax, which is a recent addition to the options. They all work well when set up properly.
Steve
Steve,
Forgive me, but to be honest I think that opening sentence is a bit harsh. Timing is important for fax, and I think the OP just wants to eliminate all the possible causes, which is commendable. I have had problems in the past with bad timing in the kernel on Ubuntu (although it may not apply here, I was on BRI) and it was a really difficult time with lots of complaints from users until I pinned it down.
I think we just need to point out the great capabilities of the Free/OSS software that is available. I have been stunned with the quality and stability of both FreeSwitch and HylaFAX, and having used the latter for more than a decade in a commercial environment cannot fault it. It also has great Windows clients such as WHFC, great reporting of fax outcomes built-in, and just seems to do its job without ever needing attention (We had one box with 5+ years of uptime). Moving to to a new softswitch/PBX can be very daunting for a new user, especially one that comes from the Asterisk environment (lots of baggage) or one not accustomed to telephony in general.
Have you seen what and where she has been posting? She's taking a scattergun approach, and its getting kind of annoying. She seems to assume every piece of software around is thoroughly broken, and the fact people are using it successfully in high volume applications is an illusion. Nice people get a lot of help from me, if I'm not too busy. She won't.
Steve
_________________________________________________________________________ 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
participants (11)
-
Alex Crow
-
Anita Hall
-
Anthony Minessale
-
Brian Foster
-
davidwaf@gmail.com
-
John
-
Ken Rice
-
Michael Collins
-
Patrick Lists
-
Paul Cupis
-
Steve Underwood