VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
jakob at j-mb.de Guest
|
Posted: Mon Feb 03, 2014 2:33 am Post subject: [asterisk-users] Incoming Fax Issue with Asterisk 11.7 and D |
|
|
Hi, im using a Asterisk Server which is not behind NAT.
First i had problems with the fax detection. But this is now solved
after adding a wait(2) at the correct place. But i'm still unable to
receive a fax due to res_rtp_asterisk.c:3548 ast_rtp_read: RTP Read too
short after the Fax session has started.
My sip.conf includes
[general]
allowguest=no
alwaysauthreject=yes
sendrpid=rpid
trustrpid=yes
language=de
videosupport=yes
callevents=yes
qualify=yes
nat=force_rport,comedia
faxdetect=yes
t38pt_udptl=yes,redundancy,maxdatagram=400
directrtpsetup=yes
disallow=all
allow=ulaw
allow=alaw
and the corresponding Peer
[sipcall.ch]
type=peer
insecure=invite
defaultuser=123456789
fromuser=123456789
fromdomain=voipdomain.com
secret=gueswhat
host=voipdomain.com
qualify=yes
context=from-sip
dtmfmode=rfc2833
callbackextension=123456789
the Dialplan
[inbound]
exten => _X.,1,Answer()
exten => _X.,n,Set(DB(lastcaller/number)=${CALLERID(num)})
exten => _X.,n,GotoIf(${BLACKLIST()}?black,1)
exten => _X.,n,Wait(2)
exten => _X.,n,Dial(SIP/200&SIP/201,60,tToxX)
exten => _X.,n,Goto(ausser-zeit,_X.,3)
exten => _X.,n,Hangup()
exten => fax,1,NoOp(**** FAX DETECTED ****)
exten => fax,n,Goto(fax-rx,receive,1)
[fax-rx]
exten => receive,1,NoOp(**** FAX RECEIVE ****)
exten => receive,n,Set(GLOBAL(FAXCOUNT)=$["${GLOBAL(FAXCOUNT)}" + "1"])
exten => receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})
exten => receive,n,Set(FAXFILE=fax-${FAXCOUNT}-rx.tif)
exten => receive,n,Set(GLOBAL(LASTFAXCALLERoNUM)=${CALLERID(num)})
exten => receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)})
exten => receive,n,NoOp(**** SETTING FAXOPT ****)
exten => receive,n,Set(FAXOPT(ecm)=yes)
exten => receive,n,Set(FAXOPT(headerinfo)=MYFAX RX)
exten => receive,n,Set(FAXOPT(localstationid)=1234567890)
exten => receive,n,Set(FAXOPT(maxrate)=14400)
exten => receive,n,Set(FAXOPT(minrate)=2400)
exten => receive,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})
exten => receive,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})
exten => receive,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})
exten => receive,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})
exten => receive,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})
exten => receive,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****)
exten => receive,n,ReceiveFAX(/var/spool/asterisk/faxin/${FAXFILE},dfs)
exten => h,1,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})
exten => h,n,NoOp(FAXOPT(filename) : ${FAXOPT(filename)})
exten => h,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})
exten => h,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})
exten => h,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})
exten => h,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})
exten => h,n,NoOp(FAXOPT(pages) : ${FAXOPT(pages)})
exten => h,n,NoOp(FAXOPT(rate) : ${FAXOPT(rate)})
exten => h,n,NoOp(FAXOPT(remotestationid) : ${FAXOPT(remotestationid)})
exten => h,n,NoOp(FAXOPT(resolution) : ${FAXOPT(resolution)})
exten => h,n,NoOp(FAXOPT(status) : ${FAXOPT(status)})
exten => h,n,NoOp(FAXOPT(statusstr) : ${FAXOPT(statusstr)})
exten => h,n,NoOp(FAXOPT(error) : ${FAXOPT(error)})
udptl.conf
[general]
udptlstart=4000
udptlend=4999
udptlfecentries = 3
udptlfecspan = 3
use_even_ports = no
rtp.conf
[general]
rtpstart=10000
rtpend=20000
res_fax.conf
[general]
maxrate=14400
minrate=2400
statusevents=yes
modems=v17,v27,v29
ecm=yes
mail*CLI> core set verbose 6
Set remote console verbosity to 6
== Using SIP RTP CoS mark 5
-- Executing [41325122774@from-sip:1]
Answer("SIP/sipcall.ch-0000008d", "") in new stack
Quote: | 0x7f3964080f30 -- Probation passed - setting RTP source
| address to 123.456.789.123:20600
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042281, ts
1387619622, len 000160)
-- Executing [41325122774@from-sip:2]
Set("SIP/sipcall.ch-0000008d", "DB(lastcaller/number)=987654321") in new
stack
-- Executing [41325122774@from-sip:3]
GotoIf("SIP/sipcall.ch-0000008d", "0?black,1") in new stack
-- Executing [41325122774@from-sip:4]
Wait("SIP/sipcall.ch-0000008d", "2") in new stack
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042282, ts
1387619782, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042283, ts
1387619942, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042284, ts
1387620102, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042285, ts
1387620262, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042286, ts
1387620422, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042287, ts
1387620582, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042288, ts
1387620742, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042289, ts
1387620902, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042290, ts
1387621062, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042291, ts
1387621222, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042292, ts
1387621382, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042293, ts
1387621542, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042294, ts
1387621702, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042295, ts
1387621862, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042296, ts
1387622022, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042297, ts
1387622182, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042298, ts
1387622342, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042299, ts
1387622502, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042300, ts
1387622662, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042301, ts
1387622822, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042302, ts
1387622982, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042303, ts
1387623142, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042304, ts
1387623302, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042305, ts
1387623462, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042306, ts
1387623622, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042307, ts
1387623782, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042308, ts
1387623942, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042309, ts
1387624102, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042310, ts
1387624262, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042311, ts
1387624422, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042312, ts
1387624582, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042313, ts
1387624742, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042314, ts
1387624902, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042315, ts
1387625062, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042316, ts
1387625222, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042317, ts
1387625382, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042318, ts
1387625542, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042319, ts
1387625702, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042320, ts
1387625862, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042321, ts
1387626022, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042322, ts
1387626182, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042323, ts
1387626342, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042324, ts
1387626502, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042325, ts
1387626662, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042326, ts
1387626822, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042327, ts
1387626982, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042328, ts
1387627142, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042329, ts
1387627302, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042330, ts
1387627462, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042331, ts
1387627622, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042332, ts
1387627782, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042333, ts
1387627942, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042334, ts
1387628102, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042335, ts
1387628262, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042336, ts
1387628422, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042337, ts
1387628582, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042338, ts
1387628742, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042339, ts
1387628902, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042340, ts
1387629062, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042341, ts
1387629222, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042342, ts
1387629382, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042343, ts
1387629542, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042344, ts
1387629702, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042345, ts
1387629862, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042346, ts
1387630022, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042347, ts
1387630182, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042348, ts
1387630342, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042349, ts
1387630502, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042350, ts
1387630662, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042351, ts
1387630822, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042352, ts
1387630982, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042353, ts
1387631142, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042354, ts
1387631302, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042355, ts
1387631462, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042356, ts
1387631622, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042357, ts
1387631782, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042358, ts
1387631942, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042359, ts
1387632102, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042360, ts
1387632262, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042361, ts
1387632422, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042362, ts
1387632582, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042363, ts
1387632742, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042364, ts
1387632902, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042365, ts
1387633062, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042366, ts
1387633222, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042367, ts
1387633382, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042368, ts
1387633542, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042369, ts
1387633702, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042370, ts
1387633862, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042371, ts
1387634022, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042372, ts
1387634182, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042373, ts
1387634342, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042374, ts
1387634502, len 000160)
== Redirecting 'SIP/sipcall.ch-0000008d' to fax extension due to CNG
detection
== Spawn extension (from-sip, fax, 1) exited non-zero on
'SIP/sipcall.ch-0000008d'
-- Executing [fax@from-sip:1] NoOp("SIP/sipcall.ch-0000008d", "****
FAX DETECTED ****") in new stack
-- Executing [fax@from-sip:2] Goto("SIP/sipcall.ch-0000008d",
"fax-rx,receive,1") in new stack
-- Goto (fax-rx,receive,1)
-- Executing [receive@fax-rx:1] NoOp("SIP/sipcall.ch-0000008d",
"**** FAX RECEIVE ****") in new stack
[Feb 3 08:14:43] WARNING[22186][C-0000006b]: ast_expr2.y:1298 op_plus:
non-numeric argument
-- Executing [receive@fax-rx:2] Set("SIP/sipcall.ch-0000008d",
"GLOBAL(FAXCOUNT)=0") in new stack
== Setting global variable 'FAXCOUNT' to '0'
-- Executing [receive@fax-rx:3] Set("SIP/sipcall.ch-0000008d",
"FAXCOUNT=0") in new stack
-- Executing [receive@fax-rx:4] Set("SIP/sipcall.ch-0000008d",
"FAXFILE=fax-0-rx.tif") in new stack
-- Executing [receive@fax-rx:5] Set("SIP/sipcall.ch-0000008d",
"GLOBAL(LASTFAXCALLERoNUM)=987654321") in new stack
== Setting global variable 'LASTFAXCALLERoNUM' to '987654321'
-- Executing [receive@fax-rx:6] Set("SIP/sipcall.ch-0000008d",
"GLOBAL(LASTFAXCALLERNAME)=987654321") in new stack
== Setting global variable 'LASTFAXCALLERNAME' to '987654321'
-- Executing [receive@fax-rx:7] NoOp("SIP/sipcall.ch-0000008d",
"**** SETTING FAXOPT ****") in new stack
-- Executing [receive@fax-rx:8] Set("SIP/sipcall.ch-0000008d",
"FAXOPT(ecm)=yes") in new stack
-- Executing [receive@fax-rx:9] Set("SIP/sipcall.ch-0000008d",
"FAXOPT(headerinfo)=MYFAX RX") in new stack
-- Executing [receive@fax-rx:10] Set("SIP/sipcall.ch-0000008d",
"FAXOPT(localstationid)=1234567890") in new stack
-- Executing [receive@fax-rx:11] Set("SIP/sipcall.ch-0000008d",
"FAXOPT(maxrate)=14400") in new stack
-- Executing [receive@fax-rx:12] Set("SIP/sipcall.ch-0000008d",
"FAXOPT(minrate)=2400") in new stack
-- Executing [receive@fax-rx:13] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(ecm) : yes") in new stack
-- Executing [receive@fax-rx:14] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(headerinfo) : MYFAX RX") in new stack
-- Executing [receive@fax-rx:15] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(localstationid) : 1234567890") in new stack
-- Executing [receive@fax-rx:16] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(maxrate) : 14400") in new stack
-- Executing [receive@fax-rx:17] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(minrate) : 2400") in new stack
-- Executing [receive@fax-rx:18] NoOp("SIP/sipcall.ch-0000008d",
"**** RECEIVING FAX : fax-0-rx.tif ****") in new stack
-- Executing [receive@fax-rx:19]
ReceiveFAX("SIP/sipcall.ch-0000008d",
"/var/spool/asterisk/faxin/fax-0-rx.tif,dfs") in new stack
-- Channel 'SIP/sipcall.ch-0000008d' receiving FAX
'/var/spool/asterisk/faxin/fax-0-rx.tif'
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042375, ts
1387634662, len 000160)
Sent RTP packet to 123.456.789.123:20600 (type 00, seq 048078, ts
000160, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042376, ts
1387634822, len 000160)
Sent RTP packet to 123.456.789.123:20600 (type 00, seq 048079, ts
000320, len 000160)
.......
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042377, ts
1387634982, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042521, ts
1387658022, len 000160)
Sent RTP packet to 123.456.789.123:20600 (type 00, seq 048225, ts
023680, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042522, ts
1387658182, len 000160)
Sent RTP packet to 123.456.789.123:20600 (type 00, seq 048226, ts
023840, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042523, ts
1387658342, len 000160)
Sent RTP packet to 123.456.789.123:20600 (type 00, seq 048227, ts
024000, len 000160)
== Using UDPTL CoS mark 5
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042524, ts
1387658502, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042525, ts
1387658662, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042526, ts
1387658822, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042527, ts
1387658982, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042528, ts
1387659142, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042529, ts
1387659302, len 000160)
Got RTP packet from 123.456.789.123:20600 (type 00, seq 042530, ts
1387659462, len 000160)
-- Channel 'SIP/sipcall.ch-0000008d' FAX session '9' started
[Feb 3 08:14:54] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:14:54] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:14:54] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:14:54] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:14:54] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:14:54] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:14:56] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:14:56] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:15:12] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:15:12] WARNING[22186][C-0000006b]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
[Feb 3 08:15:25] WARNING[20125]: chan_sip.c:4409 __sip_autodestruct:
Autodestruct on dialog
'7b359fdd-5b230171-45551f95-1983@sip.iforb.com~1o' with owner
SIP/sipcall.ch-0000008d in place (Method: BYE). Rescheduling destruction
for 10000 ms
[Feb 3 08:15:28] ERROR[22186][C-0000006b]: res_fax.c:1535
generic_fax_exec: channel 'SIP/sipcall.ch-0000008d' FAX session '9'
failure, reason: 'fax session timed-out' (TIMEOUT)
== Spawn extension (fax-rx, receive, 19) exited non-zero on
'SIP/sipcall.ch-0000008d'
-- Executing [h@fax-rx:1] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(ecm) : yes") in new stack
-- Executing [h@fax-rx:2] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(filename) : /var/spool/asterisk/faxin/fax-0-rx.tif") in new stack
-- Executing [h@fax-rx:3] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(headerinfo) : FAX RX") in new stack
-- Executing [h@fax-rx:4] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(localstationid) : 1234567890") in new stack
-- Executing [h@fax-rx:5] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(maxrate) : 14400") in new stack
-- Executing [h@fax-rx:6] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(minrate) : 2400") in new stack
-- Executing [h@fax-rx:7] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(pages) : 0") in new stack
-- Executing [h@fax-rx:8] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(rate) : ") in new stack
-- Executing [h@fax-rx:9] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(remotestationid) : ") in new stack
-- Executing [h@fax-rx:10] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(resolution) : ") in new stack
-- Executing [h@fax-rx:11] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(status) : FAILED") in new stack
-- Executing [h@fax-rx:12] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(statusstr) : remote channel hungup") in new stack
-- Executing [h@fax-rx:13] NoOp("SIP/sipcall.ch-0000008d",
"FAXOPT(error) : HANGUP") in new stack
any hints?
Best Regards Jakob
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
lmoore at omninet.net.au Guest
|
Posted: Mon Feb 03, 2014 5:56 am Post subject: [asterisk-users] Incoming Fax Issue with Asterisk 11.7 and D |
|
|
On 3/02/2014 3:34 PM, Jakob-Matthias Böttger wrote:
.
.
.
Quote: |
[sipcall.ch]
type=peer
insecure=invite
defaultuser=123456789
fromuser=123456789
fromdomain=voipdomain.com
secret=gueswhat
host=voipdomain.com
qualify=yes
context=from-sip
dtmfmode=rfc2833
callbackextension=123456789
|
add
directmedia=no
setvar=FAXOPT(gateway)=no
change
insecure=port,invite
Quote: |
[fax-rx]
exten => receive,1,NoOp(**** FAX RECEIVE ****)
exten => receive,n,Set(GLOBAL(FAXCOUNT)=$["${GLOBAL(FAXCOUNT)}" + "1"])
exten => receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})
|
Do you want to keep your received faxes or is it OK to overwrite them
the next time asterisk is re-started!?
Quote: |
udptl.conf
[general]
udptlstart=4000
udptlend=4999
udptlfecentries = 3
udptlfecspan = 3
use_even_ports = no
|
You may want to change
use_even_ports=yes
You will need to restart Asterisk for this change.
Some other suggestion if the above doesn't help are;
faxdetect=cng
t38pt_udptl=no
Larry.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
jakob at j-mb.de Guest
|
Posted: Mon Feb 03, 2014 6:13 am Post subject: [asterisk-users] Incoming Fax Issue with Asterisk 11.7 and D |
|
|
Hi, changing
faxdetect=cng
and
t38pt_udptl=no
helped making it work.
Thanks
Am 03.02.2014 11:57, schrieb Larry Moore:
Quote: | On 3/02/2014 3:34 PM, Jakob-Matthias Böttger wrote:
.
.
.
Quote: |
[sipcall.ch]
type=peer
insecure=invite
defaultuser=123456789
fromuser=123456789
fromdomain=voipdomain.com
secret=gueswhat
host=voipdomain.com
qualify=yes
context=from-sip
dtmfmode=rfc2833
callbackextension=123456789
|
add
directmedia=no
setvar=FAXOPT(gateway)=no
change
insecure=port,invite
Quote: |
[fax-rx]
exten => receive,1,NoOp(**** FAX RECEIVE ****)
exten => receive,n,Set(GLOBAL(FAXCOUNT)=$["${GLOBAL(FAXCOUNT)}" + "1"])
exten => receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})
|
Do you want to keep your received faxes or is it OK to overwrite them
the next time asterisk is re-started!?
Quote: |
udptl.conf
[general]
udptlstart=4000
udptlend=4999
udptlfecentries = 3
udptlfecspan = 3
use_even_ports = no
|
You may want to change
use_even_ports=yes
You will need to restart Asterisk for this change.
Some other suggestion if the above doesn't help are;
faxdetect=cng
t38pt_udptl=no
Larry.
|
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
lmoore at omninet.net.au Guest
|
Posted: Mon Feb 03, 2014 6:33 am Post subject: [asterisk-users] Incoming Fax Issue with Asterisk 11.7 and D |
|
|
On 3/02/2014 7:15 PM, Jakob-Matthias Böttger wrote:
Quote: | Hi, changing
faxdetect=cng
and
t38pt_udptl=no
helped making it work.
|
Hmm, the fax will be received as an audio call rather than T.38, setting
t38pt_udptl=no has turned off T.38.
Do you know if your upstream provider supports T.38?
Larry.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
jakob at j-mb.de Guest
|
Posted: Mon Feb 03, 2014 6:37 am Post subject: [asterisk-users] Incoming Fax Issue with Asterisk 11.7 and D |
|
|
as He is describing it he should actually provide t.38. but i don't know
why it is not working thus im now getting
Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10353
process_sdp: Failed to initialize UDPTL, declining image stream
[Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10497
process_sdp: Insufficient information in SDP (c=)...
and then the fax session starts recording data
Am 03.02.2014 12:34, schrieb Larry Moore:
Quote: | On 3/02/2014 7:15 PM, Jakob-Matthias Böttger wrote:
Quote: | Hi, changing
faxdetect=cng
and
t38pt_udptl=no
helped making it work.
|
Hmm, the fax will be received as an audio call rather than T.38,
setting t38pt_udptl=no has turned off T.38.
Do you know if your upstream provider supports T.38?
Larry.
|
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
lmoore at omninet.net.au Guest
|
Posted: Mon Feb 03, 2014 6:54 am Post subject: [asterisk-users] Incoming Fax Issue with Asterisk 11.7 and D |
|
|
On 3/02/2014 7:38 PM, Jakob-Matthias Böttger wrote:
Quote: | as He is describing it he should actually provide t.38. but i don't know
why it is not working thus im now getting
Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10353 process_sdp:
Failed to initialize UDPTL, declining image stream
[Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10497
process_sdp: Insufficient information in SDP (c=)...
and then the fax session starts recording data
|
In udptl.conf set use_even_ports=yes and then issue a reload.
You can confirm the settings have been applied by performing udptl show
config.
Change the the t38 line to read as;
t38pt_udptl=yes,redundancy,maxdatagram=400
Reload sip and test.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
jakob at j-mb.de Guest
|
Posted: Mon Feb 03, 2014 7:20 am Post subject: [asterisk-users] Incoming Fax Issue with Asterisk 11.7 and D |
|
|
Am 03.02.2014 12:56, schrieb Larry Moore:
Quote: | On 3/02/2014 7:38 PM, Jakob-Matthias Böttger wrote:
Quote: | as He is describing it he should actually provide t.38. but i don't know
why it is not working thus im now getting
Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10353 process_sdp:
Failed to initialize UDPTL, declining image stream
[Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10497
process_sdp: Insufficient information in SDP (c=)...
and then the fax session starts recording data
|
In udptl.conf set use_even_ports=yes and then issue a reload.
You can confirm the settings have been applied by performing udptl
show config.
Change the the t38 line to read as;
t38pt_udptl=yes,redundancy,maxdatagram=400
Reload sip and test.
| after that i started udptl debug as well and now i'm getting lots of
UDPTL (SIP/sipcall.ch-00000007): packet to 212.117.203.76:24492 (seq
152, len 11)
and in between
[Feb 3 13:18:30] WARNING[26313][C-00000007]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
and in the end
[Feb 3 13:18:37] WARNING[9942]: chan_sip.c:4409 __sip_autodestruct:
Autodestruct on dialog '24d15e0d-28df847a-9fae13c-7ace@sip.iforb.com~1o'
with owner SIP/sipcall.ch-00000007 in place (Method: BYE). Rescheduling
destruction for 10000 ms
[Feb 3 13:18:41] ERROR[26313][C-00000007]: res_fax.c:1535
generic_fax_exec: channel 'SIP/sipcall.ch-00000007' FAX session '7'
failure, reason: 'fax session timed-out' (TIMEOUT)
== Spawn extension (fax-rx, receive, 11) exited non-zero on
'SIP/sipcall.ch-00000007'
Thx, Jakob
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
jakob at j-mb.de Guest
|
Posted: Mon Feb 03, 2014 7:41 am Post subject: [asterisk-users] Incoming Fax Issue with Asterisk 11.7 and D |
|
|
Am 03.02.2014 13:20, schrieb Jakob-Matthias Böttger:
Quote: | Am 03.02.2014 12:56, schrieb Larry Moore:
Quote: | On 3/02/2014 7:38 PM, Jakob-Matthias Böttger wrote:
Quote: | as He is describing it he should actually provide t.38. but i don't
know
why it is not working thus im now getting
Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10353
process_sdp:
Failed to initialize UDPTL, declining image stream
[Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10497
process_sdp: Insufficient information in SDP (c=)...
and then the fax session starts recording data
|
In udptl.conf set use_even_ports=yes and then issue a reload.
You can confirm the settings have been applied by performing udptl
show config.
Change the the t38 line to read as;
t38pt_udptl=yes,redundancy,maxdatagram=400
Reload sip and test.
| after that i started udptl debug as well and now i'm getting lots of
UDPTL (SIP/sipcall.ch-00000007): packet to 212.117.203.76:24492 (seq
152, len 11)
and in between
[Feb 3 13:18:30] WARNING[26313][C-00000007]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
and in the end
[Feb 3 13:18:37] WARNING[9942]: chan_sip.c:4409 __sip_autodestruct:
Autodestruct on dialog
'24d15e0d-28df847a-9fae13c-7ace@sip.iforb.com~1o' with owner
SIP/sipcall.ch-00000007 in place (Method: BYE). Rescheduling
destruction for 10000 ms
[Feb 3 13:18:41] ERROR[26313][C-00000007]: res_fax.c:1535
generic_fax_exec: channel 'SIP/sipcall.ch-00000007' FAX session '7'
failure, reason: 'fax session timed-out' (TIMEOUT)
== Spawn extension (fax-rx, receive, 11) exited non-zero on
'SIP/sipcall.ch-00000007'
Thx, Jakob
| may do i have to open more ports then udp 10000:20000 (RTP), udp
4000:4999 (UDPTL) and tcp 5060,5061(SIP/TLS)
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
lmoore at omninet.net.au Guest
|
Posted: Mon Feb 03, 2014 8:47 am Post subject: [asterisk-users] Incoming Fax Issue with Asterisk 11.7 and D |
|
|
On 3/02/2014 8:42 PM, Jakob-Matthias Böttger wrote:
Quote: | Am 03.02.2014 13:20, schrieb Jakob-Matthias Böttger:
Quote: | Am 03.02.2014 12:56, schrieb Larry Moore:
Quote: | On 3/02/2014 7:38 PM, Jakob-Matthias Böttger wrote:
Quote: | as He is describing it he should actually provide t.38. but i don't
know
why it is not working thus im now getting
Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10353
process_sdp:
Failed to initialize UDPTL, declining image stream
[Feb 3 12:32:55] WARNING[9942][C-00000004]: chan_sip.c:10497
process_sdp: Insufficient information in SDP (c=)...
and then the fax session starts recording data
|
In udptl.conf set use_even_ports=yes and then issue a reload.
You can confirm the settings have been applied by performing udptl
show config.
Change the the t38 line to read as;
t38pt_udptl=yes,redundancy,maxdatagram=400
Reload sip and test.
| after that i started udptl debug as well and now i'm getting lots of
UDPTL (SIP/sipcall.ch-00000007): packet to 212.117.203.76:24492 (seq
152, len 11)
and in between
[Feb 3 13:18:30] WARNING[26313][C-00000007]: res_rtp_asterisk.c:3548
ast_rtp_read: RTP Read too short
and in the end
[Feb 3 13:18:37] WARNING[9942]: chan_sip.c:4409 __sip_autodestruct:
Autodestruct on dialog
'24d15e0d-28df847a-9fae13c-7ace@sip.iforb.com~1o' with owner
SIP/sipcall.ch-00000007 in place (Method: BYE). Rescheduling
destruction for 10000 ms
[Feb 3 13:18:41] ERROR[26313][C-00000007]: res_fax.c:1535
generic_fax_exec: channel 'SIP/sipcall.ch-00000007' FAX session '7'
failure, reason: 'fax session timed-out' (TIMEOUT)
== Spawn extension (fax-rx, receive, 11) exited non-zero on
'SIP/sipcall.ch-00000007'
Thx, Jakob
| may do i have to open more ports then udp 10000:20000 (RTP), udp
4000:4999 (UDPTL) and tcp 5060,5061(SIP/TLS)
|
The T.38 connection will be attempted when ReceiveFax is called.
The port number to use should be in the SDP information, yes, allow udp
ports 4000-4999 in and out. If your firewall can be so configured you
could set it to allow traffic in and out based upon the user ID Asterisk
is running as, assuming it is using a unique unprivileged id.
You may like to try the following to see if your SIP provider will
initiate a T.38 re-invite.
sip.conf
[general]
faxdetect=t38
[sipcall.ch]
directmedia=no
In extensions.conf change Wait(2) to Wait(5), if your VSP sends you a
T.38 re-invite this will trigger the switch to the Fax extension.
If this proves successful you can work on removing the Wait() from your
dialplan as Asterisk will remain in the audio path and should
successfully switch to the fax extension if extension 200 or 201 answer
a call that happens to be a fax.
Larry.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|