4 ms·
Most internet-based VoIP services (read: full telephone providers, not just chat providers) use the same exact G.711 codecs used in the digital portions of trad
by wolrah 3y ago
Most internet-based VoIP services (read: full telephone providers, not just chat providers) use the same exact G.711 codecs used in the digital portions of traditional telephone lines for normal calls.
In theory you can run anything over this that could run over a long distance PSTN link.
In practice most modem technologies do not handle jitter and packet loss well at all, and quirks which a human would not even notice will trip up a data call. It still works, I have clients running credit card machines on VoIP lines all day, but the longer the call and the higher the bandwidth the more likely something is to go wrong. A short 9600bps data exchange from a card machine is a lot easier than a 30 page 33.6k fax which is a lot easier than a 56k modem on a PC.
There's a special method called T.38 that allows VoIP providers with compatible endpoints to convert digital fax calls back to a data stream instead of audio which makes it a lot more tolerant of delay and jitter as well as slightly more tolerant of loss. Something similar could hypothetically be done for data modems but I haven't seen it.
- AvocadoPanic 3y agov.150.1
- throwaway67743 3y agoYou want 722 really, one of the choices for "HD voice", it mangles it much less than even 711
- lxgr 3y agoNo, unlike G.711, G.722 is lossily compressed using psychoacoustic concepts, and modems wouldn’t know what to do with the extra acoustic frequencies anyway. G.722 might sound better to humans, but G.711 is definitely better for modems since it’s effectively just uncompressed PCM (disregarding a bit of dynamic range compression which modems are generally fine with).
- throwaway67743 3y agoIt is compressed, yes, but at higher bitrates it is actually usable for modems/faxes, you're limited to low baud rates anyway due to jitter and sample intervals. But really the benefit is 16k sampling rate instead of 8, I'm not saying it's great but it's the best we've got. It would be possible to mask this with a relatively simple FXS device to hide all of this and pretend it's a modem while packetising the actual data, but I guess the demand is almost zero so why bother. I've been looking for a solution for many years to retain dialin services without having racks full of modems and trunks that are rapidly going out of fashion and at some point will not be available except via IP (and now we have the same problem at both ends), but they just don't exist.
- lxgr 3y ago> really the benefit is 16k sampling rate instead of 8 Regular modems can't make use of that, since the actual phone lines they were designed for (whether analog or digital via G.711) didn't support more than 300-3400 kHz anyway, so anything beyond 8 kHz sampling (corresponding to a Nyquist frequency of 4 kHz) is wasted on them. Maybe you could go crazy with a custom modem that knows how to exploit the additional high-frequency components of G.722 while dealing with the lossy/psychoacoustic compression across all bands, but I doubt it would yield any improvement over G.711: > It is compressed, yes, but at higher bitrates it is actually usable for modems/faxes No, they're both exactly 64 kbps (after compression/"compression"), so you wouldn't be able to fit any more signal in it from an information theoretical point of view.
- ssl-3 3y agoHave we forgotten about T.38[1]? It is designed just to let analog fax machines/modems send documents over IP. 1: https://en.wikipedia.org/wiki/T.38 https://en.wikipedia.org/wiki/T.38
- throwaway67743 3y agoBut only fax, and it's basically a software version of what I suggested above. It isn't actually a modem of any kind, it's basically the equivalent of sending a fax via sip messages. The closest we have is iaxmodem which does actually work for low baud faxes, but it's no DSP emulation for higher speeds, even if the line was good enough.
- wolrah 3y agoG.711 is what's used on the actual PSTN, so there's not even a hypothetical benefit from G.722 unless you're going direct over IP to another host supporting 722, and if you're doing that then you're probably better off with T.38 or just dropping the modem entirely for serial-over-IP.
- vel0city 3y agoLots of people say faxing over VoIP just won't work, but at least for faxes with only a few pages and having a decent internet connection I've had excellent results. I had a project using hylafax with about a dozen USB fax modems hooked up to a SIP gateway, connecting through a VPN back to the office where the PBX was and then out to our SIP trunk provider on G.711. It sent a lot of 2-10 page faxes. The system sent over a million faxes over its life, and excluding one receiver that tended to constantly have problems no matter what had an >95% success rate.
- lxgr 3y agoIt really mostly comes down to jitter. On a low-jitter, low-packet-loss path and/or using large receive buffers (which adds delay, but that doesn't matter at all for faxes) fax is very possible.