[asterisk-users] ReceiveFax to G.711

Kevin P. Fleming kpfleming at digium.com
Mon Jun 27 14:08:00 CDT 2011


On 06/27/2011 08:06 AM, Michael wrote:

> Controlling it through the sip.conf peers is sufficient for us for this
> case (because this particular provider doesn't support T.38 at all), but
> I think it would be a good idea to add the option to enable/disable T.38
> from the dialplan. If I recall correctly, that's how callweaver worked
> at the time.

In Asterisk trunk (soon to become Asterisk 1.10), there is an 'F' option 
to ReceiveFAX and SendFAX that forces audio mode FAX even if the channel 
is T.38 capable. That would do what you want. I posted a patch some time 
ago for Asterisk 1.8 to add the same ability, but it probably doesn't 
apply any more... the it's only a few lines though, it should be fairly 
easy to replicate in the Asterisk 1.8 version of res_fax.c

> Also, we just checked it, and since for that provider, we have other
> codecs in higher priorities (like GSM, for example) than G.711, G.711
> was not chosen as the only codec, so the fax transmission failed. We can
> not prioritize G.711 over the other codecs in the sip.conf, for the
> obvious reasons, so for this, we need to do it in the dialplan. How can
> we do it?

How are you going to determine that you need to force G.711 to be used?

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list