Hi all,

I tried to make the FAX works on Asterisk 1.4.0 but nothing worked.
Then, I tried the SVN version of Asterisk and tried the pass-trough
functionality but it seamed that I worked only if I use canreinvite=yes.

So, after these tests, I come here, on the OpenPBX to solve my problems.
I try to do Mail2Fax, Fax2Mail and most important Fax2Fax.

For the moment, the only thing that work is Fax2Mail !

Do you have a idea for me ? Do you know it FAX behind NAT works ?

Here is my configuration.

My sip.conf:

[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=alaw
allow=ulaw
t38udptlsupport=yes

[1]
type=friend
secret=1
host=dynamic
canreinvite=no
nat=no
qualify=5000
t38udptlsupport=yes

[2]
type=friend
secret=2
host=dynamic
canreinvite=no
nat=yes
qualify=5000
t38udptlsupport=yes

[3]
type=friend
secret=3
host=dynamic
canreinvite=no
nat=yes
qualify=5000
t38udptlsupport=yes


My extensions.conf:

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
;
[globals]
CONSOLE=Console/dsp                             ; Console interface for
demo


[default]
exten = s,1,hangup()

exten = 1,1,Dial(SIP/${EXTEN})
exten = 2,1,Dial(SIP/${EXTEN})

exten => 800,1,Goto(faxin,s,1)


[faxin]
exten => s,1,Set(LOCALSTATIONID=Navynet.it FAX)
exten => s,n,Set(LOCALHEADERINFO=Navynet SRL is a solution provider for
business)
exten => s,n,Set(FAXFILE=/tmp/${UNIQUEID}.tif)
exten => s,n,Set(FAXFILENOEXT=/tmp/${UNIQUEID})
exten => s,n,RxFAX(${FAXFILE}|ecm)
exten => s,n,NoOp(RX: REMOTESTATIONID is ${REMOTESTATIONID})
exten => s,n,NoOp(RX: PHASEESTATUS is ${PHASEESTATUS})


[faxout]
exten => s,1,Set(LOCALSTATIONID=Navynet.it FAX)
exten => s,n,Set(LOCALHEADERINFO=Navynet SRL offre soluzioni VOIP per
call center)
exten => s,n,Set(FAXFILE=/tmp/tom.tif)
exten => s,n,TxFAX(${FAXFILE}|caller|ecm)
exten => h,1,NoOp(TX: REMOTESTATIONID is ${REMOTESTATIONID})
exten => h,n,NoOp(TX: PHASEESTATUS is ${PHASEESTATUS})


Here is my test.fax:
Channel: SIP/2
MaxRetries: 0
WaitTime: 30

; you can set variables here too!!
; Setting the file name is let as an exercise to the reader.
Set: LOCALSTATIONID=inxs2
Set: LOCALHEADERINFO=OpenPBX Fax with T38

;Please note.
;Setting the T38CALL channel variable before actually originating the
call,
;skips the RTP part and starts T38 negotiation directly. Don't use
unless
;you are dialing on a SIP channel.
; be aware that some gateway (cisco, for example) do not allow direct
T38 negotiation.
;Set: T38CALL=1
;Fax detection and switchover should be done by the receving party.
Setting
;the following variable will enable openpbx to send the invite for the
initial switchover if
;a fax CNG is detected.
;Set: T38TXDETECT=something

Context: faxout
Extension: s
priority: 1

I can give you a trace of the faxout if you want.


I use a Patton-Mata and a HT488 for the test Fax2Fax and only the HT488
for the Mail2FAX and FAX2Mail.

I follow this documentation
http://wiki.openpbx.org/tiki-index.php?page=Faxing%20with%20Openpbx.org
And so, I use G711, no VAD, and DTMF Inband.

Thanks a lot for your help,

Thomas
_______________________________________________
Openpbx-users mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-users

Reply via email to