we are trying to switch from the legacy SIP-stack to PJSIP. We need to provide a gateway between G.711 and T.38 for faxes. This used to work (more or less) with the legacy SIP-stack, however it doesn’t seem to work with PJSIP any more.
Some older sources claim, that the gateway feature is not present with PJSIP, so we’d need to know if it actually exists in current versions.
The chan_pjsip module supports T.38, and the fax gateway requires nothing special in the channel driver to operate. You’d need to show configuration and state how it doesn’t work as well as what version of Asterisk is in use.
Thank you for your quick reply. In the wireshark.png file you can see the call flow of the second leg of the call. We are using Asterisk as a B2B user agent.
From the market packet, a re-invite to T.38 Asterisk stops sending any voice frames to the B-side. This causes the fax to fail.
We can replicate this issue with both Asterisk 13.32.0 as well as 16.11.1 with no obvious difference.
Thank you very much for your time and consideration.
I’ve adapted and tried that patch, and it doesn’t seem to change anything. It seems to go into t38_fallback_response_cb instead of t38_reinvite_response_cb
What I’ve noticed is that somehow when the “488 Not Acceptable Here” arives from the B-side, Asterisk logs this: [Jul 3 17:37:06] DEBUG[29529] res_pjsip_t38.c: channel PJSIP/sgw-00000001 refused audio fallback... don't know what to do...[Jul 3 17:37:06] DEBUG[29557][C-00000000] res_fax.c: PJSIP/sgw-00000000 attempted to negotiate T.38 but PJSIP/sgw-00000001 refused the request