Koozali.org: home of the SME Server

fax detection doesn't work or fax extension not declared [SOLVED]

Offline bbialy

  • ****
  • 105
  • +0/-0
Hi,
I've got small problem with fax detection.
 i have declared fax extension in globals and and fax detection delay also.

i've got openvox card with 2 FXO modules and 1 FXS module.
fax machine is connected to FXS port in OpenVox card.

versions
SME 7.4
kernel 2.6.9-78.0.13.ELsmp
Asterisk 1.4.25.1
sail version  sail-2.3.2-15

fax line is connected one of analogue line i OpenVox card

and it seems it doesn't work properly.

is it my mistake or is it a bug?
some logs bellow
best
Bialy

logs bellow is when i try to send fax from pstn from stand-alone fax machine.  No mail2fax service, no hylafax and iax modem solution. just typical fax machine connected to analogue line

Code: [Select]
server*CLI>
    -- Starting simple switch on 'DAHDI/1-1'
[Oct  6 09:29:23] NOTICE[4562]: chan_dahdi.c:6836 ss_thread: Got event 18 (Ring Begin)...
[Oct  6 09:29:24] NOTICE[4562]: chan_dahdi.c:6836 ss_thread: Got event 2 (Ring/Answered)...
    -- Executing [s@mainmenu:1] GotoIf("DAHDI/1-1", "1?DAHDI1-1|1") in new stack
    -- Goto (mainmenu,DAHDI1-1,1)
    -- Executing [DAHDI1-1@mainmenu:1] AGI("DAHDI/1-1", "selintra|Inbound|DAHDI1-1|DAHDI1-1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script selintra completed, returning 0
    -- Executing [300@internal:1] AGI("DAHDI/1-1", "selintra|OutCluster|300") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script selintra completed, returning 0
    -- Executing [300@default:1] MeetMe("DAHDI/1-1", "300|Mp") in new stack
  == Parsing '/etc/asterisk/meetme.conf': Found
    -- Created MeetMe conference 1023 for conference '300'
    -- <DAHDI/1-1> Playing 'conf-getpin' (language 'en')
[Oct  6 09:29:28] NOTICE[4562]: chan_dahdi.c:4053 dahdi_handle_dtmfup: Fax detected, but no fax extension
    -- <DAHDI/1-1> Playing 'conf-invalidpin' (language 'en')
    -- <DAHDI/1-1> Playing 'conf-getpin' (language 'en')

i know that i have inbound route directed to confroom it is for some testing becouse girl on the reception desk is loosing her mind becouse of "ghost" connection. when it will be solved i will configure inbound route properly.

here is some more details

Code: [Select]
server*CLI>
    -- Starting simple switch on 'DAHDI/1-1'
[Oct  6 09:29:23] NOTICE[4562]: chan_dahdi.c:6836 ss_thread: Got event 18 (Ring Begin)...
[Oct  6 09:29:24] NOTICE[4562]: chan_dahdi.c:6836 ss_thread: Got event 2 (Ring/Answered)...
    -- Executing [s@mainmenu:1] GotoIf("DAHDI/1-1", "1?DAHDI1-1|1") in new stack
    -- Goto (mainmenu,DAHDI1-1,1)
    -- Executing [DAHDI1-1@mainmenu:1] AGI("DAHDI/1-1", "selintra|Inbound|DAHDI1-1|DAHDI1-1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: DAHDI/1-1
AGI Tx >> agi_language: en
AGI Tx >> agi_type: DAHDI
AGI Tx >> agi_uniqueid: 1254814159.359
AGI Tx >> agi_callerid: unknown
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: mainmenu
AGI Tx >> agi_extension: DAHDI1-1
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >> >
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << GET VARIABLE FAXDETECT
AGI Tx >> 200 result=1 (5)
AGI Rx << GET VARIABLE RINGDELAY
AGI Tx >> 200 result=1 (2)
AGI Rx << GET VARIABLE LTERM
AGI Tx >> 200 result=1 (YES)
AGI Rx << SET VARIABLE __MOH "NO"
AGI Tx >> 200 result=1
AGI Rx << SET CALLERID unknown
AGI Tx >> 200 result=1
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << SET VARIABLE REMOTENUM "DAHDI1-1"
AGI Tx >> 200 result=1
AGI Rx << GET VARIABLE MTIME
AGI Tx >> 200 result=1 (disabled)
AGI Rx << GET VARIABLE VOICEINSTR
AGI Tx >> 200 result=1 (YES)
AGI Rx << SET VARIABLE OPEN "YES"
AGI Tx >> 200 result=1
AGI Rx << DATABASE GET "STAT" "IVRSTAT"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE SYSOP
AGI Tx >> 200 result=1 (4070)
AGI Rx << SET PRIORITY 1
AGI Tx >> 200 result=0
AGI Rx << SET EXTENSION 300
AGI Tx >> 200 result=0
AGI Rx << SET CONTEXT internal
AGI Tx >> 200 result=0
    -- AGI Script selintra completed, returning 0
    -- Executing [300@internal:1] AGI("DAHDI/1-1", "selintra|OutCluster|300") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: DAHDI/1-1
AGI Tx >> agi_language: en
AGI Tx >> agi_type: DAHDI
AGI Tx >> agi_uniqueid: 1254814159.359
AGI Tx >> agi_callerid: unknown
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: internal
AGI Tx >> agi_extension: 300
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << SET CALLERID
AGI Tx >> 200 result=1
AGI Rx << SET PRIORITY 1
AGI Tx >> 200 result=0
AGI Rx << SET EXTENSION 300
AGI Tx >> 200 result=0
AGI Rx << SET CONTEXT default
AGI Tx >> 200 result=0
    -- AGI Script selintra completed, returning 0
    -- Executing [300@default:1] MeetMe("DAHDI/1-1", "300|Mp") in new stack
  == Parsing '/etc/asterisk/meetme.conf': Found
    -- Created MeetMe conference 1023 for conference '300'
    -- <DAHDI/1-1> Playing 'conf-getpin' (language 'en')
[Oct  6 09:29:28] NOTICE[4562]: chan_dahdi.c:4053 dahdi_handle_dtmfup: Fax detected, but no fax extension
    -- <DAHDI/1-1> Playing 'conf-invalidpin' (language 'en')
    -- <DAHDI/1-1> Playing 'conf-getpin' (language 'en')
server*CLI>



and some globals

Code: [Select]
[root@server asterisk]# db selintra show global
global=globals
    ADDHEADER=NO
    AGENTSTART=1001
    ALERT=None
    ALLOWHASHXFER=disabled
    BLINDBUSY=Operator
    BOUNCEALERT=
    CALLRECORD1=None
    CALLRECORD2=None
    CAMPONQONOFF=OFF
    CAMPONQOPT=r,,,30
    CDR=YES
    CFEXTRN=ON
    COMMIT=YES
    COMPRESSION=FIDELITY
    CONFTYPE=simple
    COSSTART=OFF
    COUNTRY=pl
    DIGITS=None
    DIGIUMCARD=NO
    DISAPASSWORD=
    EDOMAIN=194.XXX.XXX.XXX
    EMAILALERT=
    EMERGENCY=911 999 112
    FAX=4081
    FAXDETECT=5
    FOPPASS=1234
    FORMAT-2.1.11=YES
    G729=
    GRPCLID=
    GRPTRANSFORM=
    HAAUTOFAILBACK=on
    HACLUSTERIP=
    HAENCRYPT=sha1
    HAPRINODE=
    HASECNODE=
    HASYNCH=LOOSE
    INTRINGDELAY=15
    LCLVOIPMAX=30
    LOCALIP=192.168.1.77
    LOGBAK=
    LOGOPTS=native
    LTERM=YES
    MAILMODE=automatic
    MEETMEDIAL=_30[0-7]
    MONITOROUT=/home/e-smith/files/primary/files/monitor
    MTIME=disabled
    NOTIFY=sail-2.3.2-15
    NUMGROUPS=1
    ONETOUCHREC=NO
    OPERATOR=0
    PCICARDS=none
    PLAYBEEP=NO
    PLAYBUSY=NO
    PLAYCONGESTED=NO
    PROXY=NO
    PROXYIGNORE=
    RINGDELAY=2
    RUNFOP=enabled
    SIPIAXSTART=4000
    SKIN=sme
    SMSALERT=
    SMSC=
    SNO=804469
    SPYPASS=4444
    SUBNET=10.0.10.0
    SUPEMAIL=admin@yourco.com
    SYSOP=4070
    SYSPASS=1111
    TFTP=enabled
    TIMEOUTD=5
    TIMEOUTR=10
    UNDO=YES
    UNDONUM=0
    USBDISK=0
    VDELAY=2
    VLIBS=/var/log /var/spool
    VMAILSERVER=
    VOICEINSTR=YES
    VOIPMAX=10


and for finish some detailed code from extension.conf

Code: [Select]
        exten => DAHDI1-1,1,agi(selintra,Inbound,${EXTEN},DAHDI1-1)
        exten => DAHDI2-1,1,agi(selintra,Inbound,${EXTEN},DAHDI2-1)

        exten => s,1,GotoIf($["${CHANNEL}" = "DAHDI/1-1"]?DAHDI1-1,1)
        exten => s,2,GotoIf($["${CHANNEL}" = "DAHDI/2-1"]?DAHDI2-1,1)
        exten => fax,1,GoToIf($["$FAX" = ""]?3:2)     ;no FAX defined - hangup
        exten => fax,2,GoTo(extensions,${FAX},1)
        exten => fax,3,Playtones(congestion)

« Last Edit: October 07, 2009, 03:50:05 PM by bbialy »
Reading with understanding is the hardest thing IN THE WORLD

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: fax detection doesn't work or fax extension not declared
« Reply #1 on: October 06, 2009, 09:52:41 AM »
Which SARK release you running? 

Looking at the changelogs, this bug was fixed in 2.2.4-13  2.3.2-15. 

Best

Jeff
« Last Edit: October 06, 2009, 10:01:40 AM by SARK devs »

Offline bbialy

  • ****
  • 105
  • +0/-0
Re: fax detection doesn't work or fax extension not declared
« Reply #2 on: October 06, 2009, 10:47:47 AM »
as wrote:
versions
Quote
SME 7.4
kernel 2.6.9-78.0.13.ELsmp
Asterisk 1.4.25.1
sail version  sail-2.3.2-15
Reading with understanding is the hardest thing IN THE WORLD

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: fax detection doesn't work or fax extension not declared
« Reply #3 on: October 06, 2009, 12:13:45 PM »
Ops,  sorry - didn't see releases in your post - reading too fast :(


have you set the fax autodetect extension in globals?

Best

Jeff
« Last Edit: October 06, 2009, 12:15:54 PM by SARK devs »

Offline frederik

  • *
  • 9
  • +0/-0
Re: fax detection doesn't work or fax extension not declared
« Reply #4 on: October 06, 2009, 12:43:08 PM »
Did you enabled 'fax' on the FXO-trunk ?

F.

Offline bbialy

  • ****
  • 105
  • +0/-0
Re: fax detection doesn't work or fax extension not declared
« Reply #5 on: October 06, 2009, 05:27:38 PM »
Jeff,
thats why i paste whole globals
    FAX=4081
    FAXDETECT=5

Frederic,
could be little more precise. i'm not sure what should i check
Reading with understanding is the hardest thing IN THE WORLD


Offline gippsweb

  • *****
  • 232
  • +0/-0
    • Wots I.T.?
Re: fax detection doesn't work or fax extension not declared
« Reply #7 on: October 07, 2009, 02:14:43 AM »
On that note, if fax is selected in the zap/dahdi trunk will that mess with calls coming in on the same line?
For those with only one line or call duet for example...

Offline frederik

  • *
  • 9
  • +0/-0
Re: fax detection doesn't work or fax extension not declared
« Reply #8 on: October 07, 2009, 09:40:12 AM »
On that note, if fax is selected in the zap/dahdi trunk will that mess with calls coming in on the same line?
For those with only one line or call duet for example...

No.

Read this : http://sarkpbx.com/twiki/bin/view/Main/DocChapter2517

Offline bbialy

  • ****
  • 105
  • +0/-0
Re: fax detection doesn't work or fax extension not declared [SOLVED]
« Reply #9 on: October 07, 2009, 03:53:54 PM »
it was so so so so simple. just check check-box!!! FAX on trunkline.
sometimes you can not find trees in the forest.

Many thanks
Bialy

Reading with understanding is the hardest thing IN THE WORLD