-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 12 Jun 2006, Max CtRiX wrote:
> It works because the ATA sends a reinvite with T38 headers both when
> receiving and sending a fax, so openpbx can switch to udptl.
> But there is still a problem.
> Openpbx in chan_sip.c actually uses dsp to try to detect fax tones and
> send a reinvite.
> It simply does not work. It detects nothing even if it should do it.

I ran into that problem myself.
It seems there is something wrong with the fax-tone detection.
I managed to get it to work by changing dsp.c line 440 from:
                 if (!hit && (fax_energy >= FAX_THRESHOLD) &&
                         (fax_energy >= DTMF_TO_TOTAL_ENERGY*s->energy) &&
                         (faxdetect)) {
to something like:
                 if (!hit && (fax_energy >= FAX_THRESHOLD) &&
                         (faxdetect)) {
But I don't understand the code so I don't know if this change is correct.
Basically what I saw was that fax_energy never got high enough to be
greater than DTMF_TO_TOTAL_ENERGY*s->energy.

Someone with more time and better dsp-skills than me should look it
over.

/B
- -- 
* GPG-Key: http://evil.gnarf.org/mrbk.pgp

A: Because we read from top to bottom, left to right.
Q: Why should i start my reply below the quoted text?
- -- http://www.i-hate-computers.demon.co.uk/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEjTnOckvkFeO3ANARAqxpAKCdW6M2/gsr8GiLHSKPV+c32NyXMQCglgop
O6zPdJctTYQTCyundHYJ2Q8=
=hSBJ
-----END PGP SIGNATURE-----
_______________________________________________
Openpbx-dev mailing list
Openpbx-dev@openpbx.org
http://lists.openpbx.org/mailman/listinfo/openpbx-dev

Reply via email to