signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.65k stars 1.44k forks source link

Freeswitch 1.10.7 faxing with mod_spandsp not hanging up. #1640

Open JonathanAldridge opened 2 years ago

JonathanAldridge commented 2 years ago

I'm setting up a Freeswitch 1.10.7 server on Debian Buster, and when sending faxes using "originate" the fax goes through, but the call is never hung up. The last few lines in the log are: 2022-04-22 18:44:38.495611 95.90% [DEBUG] mod_spandsp_fax.c:302 FLOW T.38T FAX exchange complete 2022-04-22 18:44:38.495611 95.90% [DEBUG] mod_spandsp_fax.c:302 FLOW T.30 Call completed

Now I have a working copy of this under Freeswitch 1.6, and that works fine with the same lines in the log being: 2022-04-22 18:18:41.387086 [DEBUG] mod_spandsp_fax.c:276 FLOW FAX FAX exchange complete 2022-04-22 18:18:41.387086 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30 Call completed 2022-04-22 18:18:41.387086 [DEBUG] switch_core_codec.c:248 sofia/external/61xxxxxxxxx Restore previous codec PCMA:8. 2022-04-22 18:18:41.407127 [NOTICE] switch_core_state_machine.c:385 sofia/external/61xxxxxxxxx has executed the last dialplan instruction, hanging up. 2022-04-22 18:18:41.407127 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/external/61xxxxxxxxx [CS_EXECUTE] [NORMAL_CLEARING] …

So for some reason it's just not proceeding to the hangup stage.

The originate command was: originate {origination_caller_id_number=61280768078,fax_header='To: Spare inbound From: Tarsier Computing - ',fax_ident='61280768078',fax_disable_v17=false,fax_enable_t38=true,fax_enable_t38_request=true,ignore_early_media=true,absolute_codec_string='PCMA,PCMU',fax_verbose=true,fax_use_ecm=true,data_jobref='45848464',data_intid=17}sofia/gateway/simtex_sip.com/61291996515 &txfax(/var/www/freeswitchbackend/Data/temp_convert/1650536104.6437853/output_tif.tif)

I'm using the default config files and dialplans, with the only change the SIP profile and RTP port config.

The log of the Fax is attached: Freeswitch_fax_log.txt

Is there any other info needed from me?

Regards, Jonathan A.

jigsp26 commented 2 years ago

@JonathanAldridge @briankwest I have the same issue with the same config same version Can anyone please help us?

00Asgaroth00 commented 2 years ago

Original JIRA ticket: FS-10824 Mentioned for tracking

Brettk80 commented 1 year ago

Same issue in some t38 cases.

Brettk80 commented 7 months ago

This issue appears to still be lingering in 1.10.11. Any solution?