<div dir="ltr">Thanks. That&#39;s what I did, and it forced G.711, but the problem is that the fax failed anyway. Although a lot of RTP packets went through, the end result was an empty tif file :-(<br><br>Kevin, the F option is an excellent idea. Great.<br>
<br><div class="gmail_quote">On Mon, Jun 27, 2011 at 10:14 PM,  <span dir="ltr">&lt;<a href="mailto:isrlgb@gmail.com">isrlgb@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
You could force g711 inbound by using<br>
<br>
Set(SIP_CODEC=ulaw)<br>
-----Original Message-----<br>
From: &quot;Kevin P. Fleming&quot; &lt;<a href="mailto:kpfleming@digium.com">kpfleming@digium.com</a>&gt;<br>
Sender: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
Date: Mon, 27 Jun 2011 14:08:00<br>
To: &lt;<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>&gt;<br>
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
        &lt;<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>&gt;<br>
Subject: Re: [asterisk-users] ReceiveFax to G.711<br>
<div><div></div><div class="h5"><br>
On 06/27/2011 08:06 AM, Michael wrote:<br>
<br>
&gt; Controlling it through the sip.conf peers is sufficient for us for this<br>
&gt; case (because this particular provider doesn&#39;t support T.38 at all), but<br>
&gt; I think it would be a good idea to add the option to enable/disable T.38<br>
&gt; from the dialplan. If I recall correctly, that&#39;s how callweaver worked<br>
&gt; at the time.<br>
<br>
In Asterisk trunk (soon to become Asterisk 1.10), there is an &#39;F&#39; option<br>
to ReceiveFAX and SendFAX that forces audio mode FAX even if the channel<br>
is T.38 capable. That would do what you want. I posted a patch some time<br>
ago for Asterisk 1.8 to add the same ability, but it probably doesn&#39;t<br>
apply any more... the it&#39;s only a few lines though, it should be fairly<br>
easy to replicate in the Asterisk 1.8 version of res_fax.c<br>
<br>
&gt; Also, we just checked it, and since for that provider, we have other<br>
&gt; codecs in higher priorities (like GSM, for example) than G.711, G.711<br>
&gt; was not chosen as the only codec, so the fax transmission failed. We can<br>
&gt; not prioritize G.711 over the other codecs in the sip.conf, for the<br>
&gt; obvious reasons, so for this, we need to do it in the dialplan. How can<br>
&gt; we do it?<br>
<br>
How are you going to determine that you need to force G.711 to be used?<br>
<br>
--<br>
Kevin P. Fleming<br>
Digium, Inc. | Director of Software Technologies<br>
Jabber: <a href="mailto:kfleming@digium.com">kfleming@digium.com</a> | SIP: <a href="mailto:kpfleming@digium.com">kpfleming@digium.com</a> | Skype: kpfleming<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at <a href="http://www.digium.com" target="_blank">www.digium.com</a> &amp; <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>