[asterisk-users] Detected digit 'f'

Kingsley Tart kingsley at skymarket.co.uk
Mon Jan 25 11:37:37 CST 2010


On Mon, 2010-01-25 at 05:49 -0500, Doug Lytle wrote:
> Kingsley Tart wrote:
> > Hi,
> >
> > Does anyone know what it means when I've got an incoming fax routed
> > through to iaxmodem+hylafax and then I see this in the asterisk log:
> >
> > DEBUG[18902] chan_dahdi.c: Detected digit 'f'
> >    
> 
> 
> This may be related:
> 
> http://www.trixbox.org/forums/trixbox-forums/help/fax-detected-no-fax-extension-0
> 
> My Google search:
> 
> asterisk Detected digit 'f'

Hi,

Thanks for the link. I looked at that page but couldn't see how it
helped with my specific issue, unfortunately, though I admit I'm fairly
new to asterisk so I don't fully understand what's going on.

In our application it's the dialled number that decides whether to jump
to the recvfax priority, hence all numeric extensions starting with zero
being allowed.

This is what I've got in extensions.conf for receiving faxes (as a test
I added a few specific extensions "f" and "fax" to the end of the
recvfax context but those lines never get executed):

[recvfax]
exten => _0.,1,SET(__channel2=${UNIQUEID})
exten => _0.,2,AGI(service_nts_nextgen|answered|${channel1}|${channel2}|7)
exten => _0.,3,Set(INIT_EXTEN=${EXTEN})
exten => _0.,4,Set(__FAXFILE=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)}-${CALLERID(num)}-${INIT_EXTEN})
exten => _0.,5,SET(CALLERID(name)=${FAXFILE})
exten => _0.,6,Dial(IAX2/iaxmodem0/${INIT_EXTEN})
exten => _0.,7,Dial(IAX2/iaxmodem1/${INIT_EXTEN})
exten => _0.,8,Dial(IAX2/iaxmodem2/${INIT_EXTEN})
exten => _0.,106,NoOp("test2")
exten => h,1,System('/var/lib/asterisk/agi-bin/fax2email.pl --source-file "${FAXFILE}.tif" --format "${fax2email_format}" --paper-size "${fax2email_paper_size}" --email-to "${fax2email_to_addr}" --email-from "${fax2email_from_addr}" --email-from-name "$
{fax2email_from_name}" --cli "${fax2email_cli}" --dni "${fax2email_dni}"')
exten => h,2,deadAGI(service_nts_nextgen|completed|${channel1}|ANSWER|${UNIQUEID}|0)

exten => fax,1,NoOp(fax extension)
exten => fax,2,Hangup

exten => f,1,NoOp(f extension)
exten => f,2,Hangup


This is what I get in the asterisk log (I've just extracted what I
thought was the relevant bit to keep this email short):

[Jan 25 16:41:58] VERBOSE[3567] logger.c:     -- Executing [08454632501 at recvfax:6] Dial("DAHDI/59-1", "IAX2/iaxmodem0/08454632501") in new stack
[Jan 25 16:41:58] DEBUG[3567] chan_iax2.c: prepending 8 to prefs
[Jan 25 16:41:58] VERBOSE[3567] logger.c:     -- Called iaxmodem0/08454632501
[Jan 25 16:41:58] VERBOSE[3470] logger.c:     -- Call accepted by 127.0.0.1 (format alaw)
[Jan 25 16:41:58] VERBOSE[3470] logger.c:     -- Format for call is alaw
[Jan 25 16:41:58] VERBOSE[3567] logger.c:     -- IAX2/iaxmodem0-4643 is ringing
[Jan 25 16:41:58] VERBOSE[3567] logger.c:     -- IAX2/iaxmodem0-4643 answered DAHDI/59-1
[Jan 25 16:41:58] DEBUG[3567] chan_dahdi.c: Detected digit 'f'
[Jan 25 16:42:31] VERBOSE[3493] logger.c:     -- Channel 0/28, span 2 got hangup request, cause 16


When my friend sends a fax that works, I don't get the "Detected digit
'f'" line in the log. Not sure whether that suggest anything?

-- 
Cheers,
Kingsley.




More information about the asterisk-users mailing list