[asterisk-dev] Asterisk 1.4.35 and T38 pass-through in chan_sip.c

Bernard Merindol(F) Bernard.Merindol at free.fr
Sun Aug 22 06:50:36 CDT 2010


Good morning,

I have upgraded my asterisk from 1.4.26 to 1.4.35 (for resolve T38 issue) but after this upgrade the T38 pass-through not works with My FAX Ricoh (User-Agent: RicohIAF Version 2.0 (32)).

Before this upgrade my Fax works in reception but not in emission. After upgrade not works in reception (I have not tested in emision).

With debug on Asterisk when the Richoh send the RE-INVITE with T38 session asterisk send error 480 
_________
[Aug 21 18:08:06] WARNING[31204] chan_sip.c: Insufficient information in SDP (c=)...
[Aug 21 18:08:06] VERBOSE[31204] logger.c:
<--- Reliably Transmitting (no NAT) to 172.21.35.122:5060 --->
SIP/2.0 488 Not acceptable here^M


_________

If see the chan_sip.c in process_sdp function I see:

       /* Sanity checks */
       if (!hp && !vhp) {
               ast_log(LOG_WARNING, "Insufficient information in SDP (c=)...\n");
               return -1;
       }

and:

	                case 'c':
                               if (audio) {
	                                if (process_sdp_c(value, &audiohp)) {
                                               processed = TRUE;
		                                hp = &audiohp.hp;
	                                }
				}
                               else if (video) {
                                       if (process_sdp_c(value, &videohp)) {
		                                processed = TRUE;
                                               vhp = &videohp.hp;
	                                }
				}
                               break;



But in this case the Richoh send INVITE with just m=image part, is normal  the hp and vhp pointer is null. 

This problem is known or I open a bug ?

Best regards
Bernard

the all trace in my full:

[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 0: INVITE sip:00958839975 at 172.20.2.16;user=phone SIP/2.0 (53)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 1: Via: SIP/2.0/UDP 172.21.35.122;branch=z9hG4bK'2H04OB4SAzR* (58)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 2: Max-Forwards: 70 (16)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 3: From: <sip:44390 at 172.21.35.122;user=phone>;tag=W7CAcr-`37 (57)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 4: To: "00958839975" <sip:00958839975 at 172.20.2.16>;tag=as02b1ea8d (62)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 5: Call-ID: 26217888437fddcf10b4625e585a2687 at 172.20.2.16 (53)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 6: User-Agent: RicohIAF Version 2.0 (32)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 7: CSeq: 1 INVITE (14)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 8: Contact: <sip:44390 at 172.21.35.122;user=phone> (45)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 9: Content-Type: application/sdp (29)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 10: Content-Length: 413 (19)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Header 11:  (0)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: v=0 (3)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: o=RICOH-SIP-IPFAX 1282406883 1282406883 IN IP4 172.21.35.122 (60)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: s=Session SDP (13)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: t=0 0 (5)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: m=image 49152 udptl t38 (23)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: c=IN IP4 172.21.35.122 (22)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: a=T38FaxVersion:0 (17)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: a=T38MaxBitRate:0 (17)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: a=T38FaxRateManagement:transferredTCF (37)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: a=T38FaxUdpEC:t38UDPRedundancy (30)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: a=T38VendorInfo:0 0 37 (22)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: m=image 49152 tcp t38 (21)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: c=IN IP4 172.21.35.122 (22)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: a=T38FaxVersion:0 (17)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: a=T38MaxBitRate:0 (17)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: a=T38FaxRateManagement:localTCF (31)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Line: a=T38VendorInfo:0 0 37 (22)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: = Found Their Call ID: 26217888437fddcf10b4625e585a2687 at 172.20.2.16 Their Tag W7CAcr-`37 Our tag: as02b1ea8d
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE
[Aug 21 18:08:06] VERBOSE[31204] logger.c: Sending to 172.21.35.122 : 5060 (no NAT)
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing session-level SDP v=0... UNSUPPORTED.
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing session-level SDP o=RICOH-SIP-IPFAX 1282406883 1282406883 IN IP4 172.21.35.122... UNSUPPORTED.
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing session-level SDP s=Session SDP... UNSUPPORTED.
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing session-level SDP t=0 0... UNSUPPORTED.
[Aug 21 18:08:06] VERBOSE[31204] logger.c: Got T.38 offer in SDP in dialog 26217888437fddcf10b4625e585a2687 at 172.20.2.16
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: T38 state changed to 3 on channel SIP/44390-00000003
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing media-level (image) SDP c=IN IP4 172.21.35.122... UNSUPPORTED.
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: FaxVersion: 0
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing media-level (image) SDP a=T38FaxVersion:0... OK.
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: T38MaxBitRate: 0
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing media-level (image) SDP a=T38MaxBitRate:0... OK.
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: RateManagement: transferredTCF
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing media-level (image) SDP a=T38FaxRateManagement:transferredTCF... OK.
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: UDP EC: t38UDPRedundancy
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing media-level (image) SDP a=T38FaxUdpEC:t38UDPRedundancy... OK.
[Aug 21 18:08:06] DEBUG[31204] chan_sip.c: Processing media-level (image) SDP a=T38VendorInfo:0 0 37... UNSUPPORTED.
[Aug 21 18:08:06] WARNING[31204] chan_sip.c: Unsupported SDP media type in offer: image 49152 tcp t38
[Aug 21 18:08:06] WARNING[31204] chan_sip.c: Insufficient information in SDP (c=)...
[Aug 21 18:08:06] VERBOSE[31204] logger.c: 
<--- Reliably Transmitting (no NAT) to 172.21.35.122:5060 --->
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/UDP 172.21.35.122;branch=z9hG4bK'2H04OB4SAzR*;received=172.21.35.122
From: <sip:44390 at 172.21.35.122;user=phone>;tag=W7CAcr-`37
To: "00958839975" <sip:00958839975 at 172.20.2.16>;tag=as02b1ea8d
Call-ID: 26217888437fddcf10b4625e585a2687 at 172.20.2.16
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0





More information about the asterisk-dev mailing list