[Home]

Summary:ASTERISK-18732: T38 gateway : CSI / DSR DSI not sent in reply of remote fax CSI / DSR DSI
Reporter:Marc (rustine22)Labels:
Date Opened:2011-10-18 09:55:21Date Closed:2012-01-28 11:52:39.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_sip/T.38
Versions:10.0.0-beta2 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) t38gw_ko.pcap
Description:Hello,
In asterisk 10 beta.

Here the schema :

Fax --> SPA2102(T38 disabled) --> Asterisk 10 beta (T38gw) --> Asterisk (T38 passthrough) -- ..... --> Unkown T38 Gateway -> Remote Fax

I'm tryign to send fax using Asterisk T38 Gateway : This Not working : The remote fax send 3 times  CSI  / DSR DSI sequence, because the  CSI  / DSR DSI of the local fax isn't sent in reply. So the remote fax end with BYE. Whith same source fax and destination fax, when i use a SPA2102 with T38 enabled, it works ! See capture :

With asterisk 10 beta (T38 Gateway is 109.77.77.10) => FAIL :
Time 109.77.77.10
    109.77.77.9
35,152 INVITE SDP (g711A GSM g711U telephone-eventRTP...e-101) SIP From: "100" <sip:100@109.77.77.10 To:<sip:0411111111@109.77.77.9
  (5060) ------------------> (5060)
35,152 100 Trying   SIP Status
  (5060) <------------------ (5060)
36,540 180 Ringing SIP Status
  (5060) <------------------ (5060)
36,540 183 Session Progress SDP (g711A g711U GSM tele...ne-eventRTPType-101) SIP Status
  (5060) <------------------ (5060)
36,658 RTP (g711U) RTP Num packets:771 Duration:15.399s SSRC:0x3400AA55
  (15162) ------------------> (11708)
36,677 RTP (g711U) RTP Num packets:877 Duration:17.603s SSRC:0x2AB49D5C
  (15162) <------------------ (11708)
52,075 200 OK SDP (g711A g711U GSM telephone-eventRTP...e-101) SIP Status
  (5060) <------------------ (5060)
52,076 ACK   SIP Request
  (5060) ------------------> (5060)
52,078 RTP (g711U) RTP Num packets:246 Duration:4.898s SSRC:0x3400AA55
  (15162) ------------------> (11708)
56,981 INVITE SDP (t38) SIP Request
  (5060) <------------------ (5060)
56,981 100 Trying   SIP Status
  (5060) ------------------> (5060)
57,083 200 OK SDP (t38) SIP Status
  (5060) ------------------> (5060)
57,083 no-signal   t38:t30 Ind:no-signal
  (4191) ------------------> (4873)
57,083 ACK   SIP Request
  (5060) <------------------ (5060)
57,125 no-signal   t38:t30 Ind:no-signal
  (4191) ------------------> (4873)
59,921 no-signal   t38:t30 Ind:no-signal
  (4191) <------------------ (4873)
64,962 v21-preamble t38:t30 Ind:v21-preamble
  (4191) <------------------ (4873)
66,623 NSF   t38:v21:HDLC:Non-Standard Facilities
  (4191) <------------------ (4873)
67,343 CSI Num: 0411111111 t38:v21:HDLC:Called Subscriber Identification
  (4191) <------------------ (4873)
67,703 DIS DSR:ITU-T V.27 ter and V.29 t38:v21:HDLC:Digital Identification Signal
  (4191) <------------------ (4873)
67,763 no-signal   t38:t30 Ind:no-signal
  (4191) <------------------ (4873)
72,844 v21-preamble t38:t30 Ind:v21-preamble
  (4191) <------------------ (4873)
74,485 NSF   t38:v21:HDLC:Non-Standard Facilities
  (4191) <------------------ (4873)
75,204 CSI Num: 0411111111 t38:v21:HDLC:Called Subscriber Identification
  (4191) <------------------ (4873)
75,564 DIS DSR:ITU-T V.27 ter and V.29 t38:v21:HDLC:Digital Identification Signal
  (4191) <------------------ (4873)
75,625 no-signal   t38:t30 Ind:no-signal
  (4191) <------------------ (4873)
80,700 v21-preamble t38:t30 Ind:v21-preamble
  (4191) <------------------ (4873)
82,361 NSF   t38:v21:HDLC:Non-Standard Facilities
  (4191) <------------------ (4873)
83,081 CSI Num: 0411111111 t38:v21:HDLC:Called Subscriber Identification
  (4191) <------------------ (4873)
83,441 DIS DSR:ITU-T V.27 ter and V.29 t38:v21:HDLC:Digital Identification Signal
  (4191) <------------------ (4873)
83,501 no-signal   t38:t30 Ind:no-signal
  (4191) <------------------ (4873)
86,098 BYE   SIP Request
  (5060) ------------------> (5060)
86,099 200 OK   SIP Status
  (5060) <------------------ (5060)

With SPA2102 T38 enabled mode (asterisk 10 beta is T38 passthrough) => SUCCESS:
Time 109.77.77.10
    109.77.77.9
6,898 INVITE SDP (t38) SIP From: "100" <sip:100@109.77.77.10 To:<sip:0411111111@109.77.77.9
  (5060) ------------------> (5060)
6,898 100 Trying   SIP Status
  (5060) <------------------ (5060)
6,928 200 OK SDP (t38) SIP Status
  (5060) <------------------ (5060)
6,929 ACK   SIP Request
  (5060) ------------------> (5060)
7,034 no-signal   t38:t30 Ind:no-signal
  (4158) ------------------> (4992)
8,983 ced   t38:t30 Ind:ced
  (4158) <------------------ (4992)
11,648 v21-preamble t38:t30 Ind:v21-preamble
  (4158) <------------------ (4992)
13,068 NSF   t38:v21:HDLC:Non-Standard Facilities
  (4158) <------------------ (4992)
13,768 CSI Num: 0411111111 t38:v21:HDLC:Called Subscriber Identification
  (4158) <------------------ (4992)
14,110 DIS DSR:ITU-T V.27 ter and V.29 t38:v21:HDLC:Digital Identification Signal
  (4158) <------------------ (4992)
14,208 no-signal   t38:t30 Ind:no-signal
  (4158) <------------------ (4992)
14,957 v21-preamble t38:t30 Ind:v21-preamble
  (4158) ------------------> (4992)
16,697 TSI Num: Fax t38:v21:HDLC:Transmitting Subscriber Identification
  (4158) ------------------> (4992)
17,156 DCS DSR:9600 bit/s, ITU-T V.29 t38:v21:HDLC:Digital Command Signal
  (4158) ------------------> (4992)
17,176 no-signal   t38:t30 Ind:no-signal
  (4158) ------------------> (4992)
17,197 v29-9600-training t38:t30 Ind:v29-9600-training
  (4158) ------------------> (4992)
17,697 t4-non-ecm-data:v29-9600 t38:t4-non-ecm-data:v29-9600 Duration: 1,50s No packet lost
  (4158) ------------------> (4992)
19,214 no-signal   t38:t30 Ind:no-signal
  (4158) ------------------> (4992)
19,889 v21-preamble t38:t30 Ind:v21-preamble
  (4158) <------------------ (4992)
21,005 CFR   t38:v21:HDLC:Confirmation To Receive
  (4158) <------------------ (4992)
21,104 no-signal   t38:t30 Ind:no-signal
  (4158) <------------------ (4992)
22,077 v29-9600-training t38:t30 Ind:v29-9600-training
  (4158) ------------------> (4992)
22,097 t4-non-ecm-data:v29-9600 t38:t4-non-ecm-data:v29-9600 Duration: 49,07s No packet lost
  (4158) ------------------> (4992)
71,192 no-signal   t38:t30 Ind:no-signal
  (4158) ------------------> (4992)
71,354 v21-preamble t38:t30 Ind:v21-preamble
  (4158) ------------------> (4992)
72,455 EOP   t38:v21:HDLC:End Of Procedure
  (4158) ------------------> (4992)
72,534 no-signal   t38:t30 Ind:no-signal
  (4158) ------------------> (4992)
72,926 v21-preamble t38:t30 Ind:v21-preamble
  (4158) <------------------ (4992)
74,066 MCF   t38:v21:HDLC:Message Confirmation
  (4158) <------------------ (4992)
74,166 no-signal   t38:t30 Ind:no-signal
  (4158) <------------------ (4992)
74,754 v21-preamble t38:t30 Ind:v21-preamble
  (4158) ------------------> (4992)
75,954 DCN   t38:v21:HDLC:Disconnect
  (4158) ------------------> (4992)
76,032 no-signal   t38:t30 Ind:no-signal
  (4158) ------------------> (4992)
76,993 BYE   SIP Request
  (5060) ------------------> (5060)
76,993 200 OK   SIP Status
  (5060) <------------------ (5060)

Do you have an idea ?
Thanks.
Comments:By: Matthew Nicholson (mnicholson) 2011-11-02 08:20:25.636-0500

Please upload a pcap taken on the gateway machine of a failed fax session.

{noformat}
tcpdump -s1500 -vv -w fail-fax1.pcap
{noformat}

By: Marc (rustine22) 2011-11-02 08:46:16.479-0500

I hav had a pcap file that was captured with wireshark with filter "udp"
Thanks.

By: Matthew Nicholson (mnicholson) 2011-12-16 11:28:20.219-0600

Can you upload the full log from the asterisk process? It looks like asterisk is handling all of the T.38 signaling properly but something is wrong between asterisk and the ATA. What codec is in use between asterisk and the ATA? Only ulaw and alaw will work with an audio fax.

By: Paul Belanger (pabelanger) 2012-01-28 11:52:27.372-0600

Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.  Further information can be found at http://www.asterisk.org/developers/bug-guidelines