[asterisk-users] ReceiveFax to G.711

isrlgb at gmail.com isrlgb at gmail.com
Mon Jun 27 14:14:13 CDT 2011


You could force g711 inbound by using

Set(SIP_CODEC=ulaw) 
-----Original Message-----
From: "Kevin P. Fleming" <kpfleming at digium.com>
Sender: asterisk-users-bounces at lists.digium.com
Date: Mon, 27 Jun 2011 14:08:00 
To: <asterisk-users at lists.digium.com>
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
	<asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users] ReceiveFax to G.711

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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


More information about the asterisk-users mailing list