Summary:ASTERISK-21955: [patch] Asterisk responds 488 to session timers re-Invite in an active T.38 dialog after exactly 5 seconds
Reporter:i2045 (i2045)Labels:patch
Date Opened:2013-06-25 09:26:35Date Closed:
Versions: 13.18.4 Frequency of
is related toASTERISK-15596 T.38 session fails with '488 Not acceptable here' if within 5 seconds there is no "SIP 100 Trying" REINVITE reply from remote
Environment:Attachments:( 0) Asterisk_1.8.22.0_T.38_488_sip-conf_relevant.txt
( 1) Asterisk_1.8.22.0_T.38_488.txt
( 2) t38_session_timer.patch
Description: LAN IP address of client A WAN IP address of client A SIP proxy server Asterisk server SIP server of client B Media gateway of client B

- A call (G.711 alaw) is initiated by client A to client B.
- Client A re-Invites to T.38, Asterisk relays this re-Invite, client B accepts.
- Client B re-Invites (line #502). The only difference with the 200 OK that client B sent earlier (line #404) is the Session-Expires header. Asterisk responds immediately with "100 Trying" and "488 Not acceptable here" after exactly 5 seconds.
- The call is then re-Invited back to G.711 alaw and the fax fails.

Seems a similar problem as reported in 2010:

Does someone know why the second re-Invite is answered with a 488?
Comments:By: Matt Jordan (mjordan) 2013-07-07 18:26:44.060-0500

This looks to be a bug in the T.38 state machine in {{chan_sip}}. Due to the state it's in, it doesn't expect another re-INVITE when the remote session timer fires and so it rejects it with a 488 (which is typically the default "nope, I don't want this" that {{chan_sip}} responds with in the T.38 state machine).

By: Torrey Searle (tsearle) 2015-06-16 07:35:51.715-0500

this bug also exists in asterisk 11...

By: Torrey Searle (tsearle) 2015-06-17 10:02:37.013-0500

here is a patch fix this issue in asterisk 11

By: Rusty Newton (rnewton) 2015-06-25 08:20:05.743-0500

Torrey do you want to put that patch on Gerrit? Maybe it will simply work in 13 as well, and if not maybe someone else will port it once it is on there.