Problem with Inbound Fax using G.711

Community-based Support for users of Free Fax For Asterisk

Problem with Inbound Fax using G.711

Postby bhebsquines » Thu Sep 13, 2012 5:36 am

Hi!, good day having problem using G.711 Codec, please refer below for the details, looking in google but can't find the solution please need help, thank you in advance.

Asterisk Version : 1.8.14.1
Fax Version : 1.8.14.1
Digium FAX Driver: 1.8.4_1.3.1


=============================================
Fax Settting

FAX For Asterisk Settings:
ECM: Enabled
Status Events: On
Minimum Bit Rate: 2400
Maximum Bit Rate: 14400
Modem Modulations Allowed: V17,V27,V29

FAX Technology Modules:

DIGIUM (Digium FAX Driver) Settings:
Maximum T.38 Packet Delay: 800
T.38 Session Packet Capture: Off
G.711 Session Audio Capture: Off

=================================================

Sip.conf

[general]
nat=yes
port=5060
bindaddr=x.x.x.x
disallow=all
;allow=g729
allow=alaw
allow=ulaw
faxdetect=no
t38pt_udptl = no

[lyn]
type = friend
userid=113
host = dynamic
context = internal
secret= 1234
disallow=all
allow=ulaw

=====================================================

Dialplan

[inboundfax]
exten => s,1,NoOp(**** FAX RECEIVED from ${CALLERID(num)} ${STRFTIME(${EPOCH},,%c)} ****)
exten => s,n,Set(FAXOPT(ecm)=yes)
exten => s,n,Set(FILENAME=fax-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERID(num)})
exten => s,n,Set(FAXFILE=${FILENAME}.tif)
exten => s,n,Set(FAXOPT(ecm)=yes)
exten => s,n,Set(FAXOPT(headerinfo)=Received by MYCOMPANY ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M)})
exten => s,n,Set(FAXOPT(localstationid)=113)
exten => s,n,Set(FAXOPT(maxrate)=14400)
exten => s,n,Set(FAXOPT(minrate)=2400)
exten => s,n,Set(FAXOPT(modem)=v17,v27,v29)
exten => s,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})
exten => s,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})
exten => s,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})
exten => s,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})
exten => s,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})
exten => s,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****)
exten => s,n,ReceiveFAX(/var/spool/asterisk/fax/${FAXFILE})
exten => s,n,Hangup()
exten => h,1,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})

=======================================================

System Log

-- Executing [500@internal:1] Goto("SIP/lyn-00000304", "inboundfax,s,1") in new stack
-- Goto (inboundfax,s,1)
-- Executing [s@inboundfax:1] NoOp("SIP/lyn-00000304", "**** FAX RECEIVED from lyn Wed Sep 12 10:50:20 2012 ****") in new stack
-- Executing [s@inboundfax:2] Set("SIP/lyn-00000304", "FAXOPT(ecm)=yes") in new stack
-- Executing [s@inboundfax:3] Set("SIP/lyn-00000304", "FILENAME=fax-20120912-105020-lyn") in new stack
-- Executing [s@inboundfax:4] Set("SIP/lyn-00000304", "FAXFILE=fax-20120912-105020-lyn.tif") in new stack
-- Executing [s@inboundfax:5] Set("SIP/lyn-00000304", "FAXOPT(ecm)=yes") in new stack
-- Executing [s@inboundfax:6] Set("SIP/lyn-00000304", "FAXOPT(headerinfo)=Received by MYCOMPANY 2012-09-12 10:50") in new stack
-- Executing [s@inboundfax:7] Set("SIP/lyn-00000304", "FAXOPT(localstationid)=113") in new stack
-- Executing [s@inboundfax:8] Set("SIP/lyn-00000304", "FAXOPT(maxrate)=14400") in new stack
-- Executing [s@inboundfax:9] Set("SIP/lyn-00000304", "FAXOPT(minrate)=2400") in new stack
-- Executing [s@inboundfax:10] Set("SIP/lyn-00000304", "FAXOPT(modem)=v17,v27,v29") in new stack
-- Executing [s@inboundfax:11] NoOp("SIP/lyn-00000304", "FAXOPT(ecm) : yes") in new stack
-- Executing [s@inboundfax:12] NoOp("SIP/lyn-00000304", "FAXOPT(headerinfo) : Received by MYCOMPANY 2012-09-12 10:50") in new stack
-- Executing [s@inboundfax:13] NoOp("SIP/lyn-00000304", "FAXOPT(localstationid) : 113") in new stack
-- Executing [s@inboundfax:14] NoOp("SIP/lyn-00000304", "FAXOPT(maxrate) : 14400") in new stack
-- Executing [s@inboundfax:15] NoOp("SIP/lyn-00000304", "FAXOPT(minrate) : 2400") in new stack
-- Executing [s@inboundfax:16] NoOp("SIP/lyn-00000304", "**** RECEIVING FAX : fax-20120912-105020-lyn.tif ****") in new stack
-- Executing [s@inboundfax:17] ReceiveFAX("SIP/lyn-00000304", "/var/spool/asterisk/fax/fax-20120912-105020-lyn.tif") in new stack
-- Channel 'SIP/lyn-00000304' receiving FAX '/var/spool/asterisk/fax/fax-20120912-105020-lyn.tif'
-- Channel 'SIP/lyn-00000304' FAX session '73' started
[Sep 12 10:50:31] ERROR[30712]: res_fax.c:1365 generic_fax_exec: channel 'SIP/lyn-00000304' FAX session '73' failure, reason: 'fax session timed-out' (TIMEOUT)
== Spawn extension (inboundfax, s, 17) exited non-zero on 'SIP/lyn-00000304'
-- Executing [h@inboundfax:1] NoOp("SIP/lyn-00000304", "FAXOPT(ecm) : yes") in new stack
bhebsquines
Newsterisk
 
Posts: 2
Joined: Thu Jul 07, 2011 12:48 am

Re: Problem with Inbound Fax using G.711

Postby bhebsquines » Wed Oct 10, 2012 9:03 am

got it, changing something my call file works fine now :D
bhebsquines
Newsterisk
 
Posts: 2
Joined: Thu Jul 07, 2011 12:48 am

Re: Problem with Inbound Fax using G.711

Postby lovelord83 » Tue Jun 04, 2013 11:44 am

can you explain what you've changed? I'm in a similar situation. Thanks.
lovelord83
Newsterisk
 
Posts: 3
Joined: Tue Jun 04, 2013 10:17 am

Re: Problem with Inbound Fax using G.711

Postby Antoine » Mon Jun 24, 2013 4:52 am

Hi,
Same problem for me !
T38 and g711 transport concerned
Antoine
Newsterisk
 
Posts: 8
Joined: Fri Oct 23, 2009 7:51 am


Return to Fax For Asterisk

Who is online

Users browsing this forum: No registered users and 4 guests