Ticket #4117 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

Fax Detection question

Reported by: kopspa Assigned to: mbrevda
Priority: minor Milestone: 2.8
Component: Fax Version: 2.7-branch
Keywords: Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

hi

i've noticed that freepbx (2.7.0) generate an

faxdetect=yes

in /etc/asterisk/sip_general_additional.conf

my problem is that with this parameter set to yes, i can't send fax from an analog fax machine connected to a linksys spa2102 to outside world, because asterisk detects it as a fax and try to send it to fax extension locally, instead of externally using outbound routes

how can be fixed? just now, i've switched back to nvfax faxdetect method and manually set faxdetect=off in sip_general_additional.conf

using asterisk 1.6.2

Change History

03/08/10 08:46:19 changed by kopspa

i think that fax detection should be used only in incoming calls, not outgoing. can be faxdetect=yes generated only in the trunk section and not in general?

03/08/10 10:15:55 changed by p_lindheimer

  • owner changed from p_lindheimer to mbrevda.
  • component changed from - choose - to Fax.

kopspa,

it's not clear where it is being picked up not knowing if your trunk is also SIP or an analog/pri line.

However, can you try the following, can you modify the sip_additional.conf configuration for the specific extension/device setup and in it's section add fax_detect=no and then after doing a reload at the CLI see if the problem goes away.

If so, I think the better solution may be to simply have us automatically add that do all sip extensions since putting it in the general section probably helps more then it hurts if this would resolve the issue.

03/08/10 14:40:26 changed by kopspa

i can't try this, because i have remote access to the pbx, but not physical access to the fax machine to make a test call.

03/08/10 14:50:49 changed by p_lindheimer

can you do the modification and then have someone try a fax or next time a fax is sent you can see if it is still an issue and report back.

In order to not have your change overwritten you can test like this, assuming the fax extension is 5003, in the file sip_custom_post.conf add:

[5003](+)
faxdetect=no

03/08/10 16:17:57 changed by kopspa

modifying sip_custom_post.conf doesn't work for me, i can't see the faxdetect=no on my extension in sip_additional.conf

however, i've changed it by hand. now i'll wait that someone send a fax and i'll report the results

for your info, the trunk where will be placed the outgoing call is also SIP (i fax from ATA to ISDN using a Patton Gateway, only in G.711), so i think that when the call goes thru SIP/patton, faxdetect=yes there will redirect the call to fax extension)

03/08/10 16:28:27 changed by kopspa

noticed also that even if fax detection is completely disabled in inbound routes, the faxdetect=yes is still present globally

[Mar 8 22:22:18] NOTICE[8380]: chan_sip.c:7069 sip_read: Fax detected but no fax extension

my opinion is that since fax detection is only used in inbound routes (receiving fax from a trunk), it should be enabled only in that trunk if checked, just in the same mode that as with nvfax that is called from the dialplan only if checked

but it may expose to another problem: most people (me too) use a single trunk type=friend for outbound and inbound calls, so i think that in that way, an outbound fax will be intercepted and redirected to fax extension!

thanks

03/08/10 17:28:22 changed by p_lindheimer

kopspa,

first off on the sip_custom_post.conf change you will not see it changed in sip_additional.conf, it is picked up by Asterisk though so it will be seen if you were to look at the settings for the specific channel. It adds it to the sip section.

as far as just putting it with inbound trunks, you are conceptually correct but there are a lot of scenarios and existing installations where the signaling ends up coming into from-sip-external for a lot of reasons including mis-configurations, etc. And there are times that you can not differentiate between your inbound and outbound trunk (even when using peers).

So ... if there is a way to leave it in the general section and find a way that gets around the issue, that would be preferred. Therefore, your environment is a great one to test since you are coming in a SIP extensino and going out a SIP trunk, worse of both worlds. If disabling it in the extension while leaving it in the general section AND in the trunk result in fixing the problem, then we are in really good shape. Otherwise we need to further explore.

03/08/10 18:07:14 changed by p_lindheimer

btw per the sample sip.conf file in Asterisk:

; FAX detection will cause the SIP channel to jump to the 'fax' extension (if it exists)
; when a CNG tone is detected on an incoming call.
;
; faxdetect = yes              ; Default false

so it looks like it is already limited to incoming, meaning setting it to be disabled in the extension has a good chance of working.

Another question though, in your failure mode, which fax extension is the call ending up in?

03/09/10 05:28:34 changed by kopspa

hi i can confirm that with faxdetect=yes generated from freepbx in sip_general_additional.conf

and with faxdetect=no manually set into my peer (the linksys spa2102) outgoing faxes are not detected and works!

i've opened another bug on fax detection with nvfax, because in that way it send my call to talk extension instead of from-did-directextenprio, and asterisk plays ss-noservice: #4118

03/10/10 12:53:23 changed by p_lindheimer

(In [9111]) don't put faxdetect into sip configuration if no detection is enabled, part of solution but not final fix re #4117

03/10/10 14:12:48 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

(In [9120]) fixes #4117 add faxdetect=no to all extensions

03/11/10 21:10:38 changed by p_lindheimer

(In [9137]) Merged revisions 9075-9111,9113-9122,9124-9136 via svnmerge from http://svn.freepbx.org/modules/branches/2.7

........

r9079 | p_lindheimer | 2010-03-04 14:17:04 -0800 (Thu, 04 Mar 2010) | 1 line

fixes #4102, fixes #4104, fixes #4105 global variables not exposed and label typo

........

r9080 | p_lindheimer | 2010-03-04 14:17:36 -0800 (Thu, 04 Mar 2010) | 1 line

Module Publish Script: callforward 2.7.0.2

........

r9083 | p_lindheimer | 2010-03-05 15:29:27 -0800 (Fri, 05 Mar 2010) | 1 line

Auto Check-in of any outstanding patches

........

r9084 | p_lindheimer | 2010-03-05 15:29:47 -0800 (Fri, 05 Mar 2010) | 1 line

Module Publish Script: music 2.7.0.3

........

r9085 | p_lindheimer | 2010-03-05 16:37:14 -0800 (Fri, 05 Mar 2010) | 1 line

fixes #4102 check if set before checking value

........

r9092 | p_lindheimer | 2010-03-07 16:17:42 -0800 (Sun, 07 Mar 2010) | 1 line

fixes #4101 - hang up instead of goto h,1 no feedback on ticket so I hope it fixes it, fixes #4112 - forget all the commas in the goto target label, replace them with and then use CUT for each part in the goto, works on 1.4 needs confirming on 1.6, fixes #4113 adds option to force detection part of dialplan, ext-fax will still not be generated since that requires native detection and instead external sources will have to supply an equivalent.

........

r9093 | p_lindheimer | 2010-03-07 16:18:23 -0800 (Sun, 07 Mar 2010) | 1 line

Module Publish Script: fax 2.7.0.16

........

r9096 | p_lindheimer | 2010-03-08 08:16:47 -0800 (Mon, 08 Mar 2010) | 1 line

fixes #4100 use CUT() exclusively in parsing recordings, also unrelated puts Macro(user-callerid) back into pri 1 of all outbound routes which won't be executed but for custom code and maybe custom contexts out there using these routes it retains previous behavior while not affecting anything in the main dialplan

........

r9097 | p_lindheimer | 2010-03-08 08:30:21 -0800 (Mon, 08 Mar 2010) | 1 line

fixes #4099 don't put double quotes around Set() assignments. Please test patch and respond if possible before we publish

........

r9098 | p_lindheimer | 2010-03-08 09:10:21 -0800 (Mon, 08 Mar 2010) | 1 line

fixes 105 again where DEVSTATE was not made global and worked by accident from previous declarations

........

r9105 | mickecarlsson | 2010-03-09 22:57:50 -0800 (Tue, 09 Mar 2010) | 1 line

Fixed small typo in queues, updated all langauges

........

r9111 | p_lindheimer | 2010-03-10 09:53:22 -0800 (Wed, 10 Mar 2010) | 1 line

don't put faxdetect into sip configuration if no detection is enabled, part of solution but not final fix re #4117

........

r9113 | p_lindheimer | 2010-03-10 09:57:20 -0800 (Wed, 10 Mar 2010) | 1 line

Module Publish Script: queues 2.7.0.1

........

r9118 | mickecarlsson | 2010-03-10 10:47:17 -0800 (Wed, 10 Mar 2010) | 1 line

Re #4120, fixed typo

........

r9119 | p_lindheimer | 2010-03-10 10:49:32 -0800 (Wed, 10 Mar 2010) | 1 line

Module Publish Script: queues 2.7.0.2

........

r9120 | p_lindheimer | 2010-03-10 11:12:48 -0800 (Wed, 10 Mar 2010) | 1 line

fixes #4117 add faxdetect=no to all extensions

........