Today I tried to receive a fax with ReceiveFax(fax.tif, d). Unfortunately Asterisk 15.1.5 crashed:
DEBUG[2831][C-00000001]: channel.c:5551 set_format: Channel PJSIP/100-00000000 setting write format path: g722 -> g722
DEBUG[2831][C-00000001]: channel.c:3192 ast_settimeout_full: Scheduling timer at (0 requested / 0 actual) timer ticks per second
DEBUG[2831][C-00000001]: res_fax.c:1923 receivefax_t38_init: Negotiating T.38 for receive on PJSIP/100-00000000
DEBUG[2798]: res_pjsip_t38.c:273 t38_initialize_session: UDPTL initialized on session for PJSIP/100-00000000
DEBUG[2798]: res_pjsip_t38.c:143 t38_change_state: T.38 state changed to '1' from '0' on channel 'PJSIP/100-00000000'
DEBUG[2798]: res_pjsip_session.c:1577 ast_sip_session_refresh: Sending session refresh SDP via re-INVITE to 100
DEBUG[2798]: res_pjsip_session.c:3203 handle_outgoing_request: Method is INVITE
DEBUG[2798]: res_pjsip_session.c:3108 __print_debug_details: Function session_inv_on_tsx_state_changed called on event TSX_STATE
DEBUG[2798]: res_pjsip_session.c:3122 __print_debug_details: The state change pertains to the endpoint '100(PJSIP/100-00000000)'
DEBUG[2798]: res_pjsip_session.c:3127 __print_debug_details: The inv session still has an invite_tsx (0x7f....)
DEBUG[2798]: res_pjsip_session.c:3133 __print_debug_details: The UAC INVITE transaction involved in this state change is 0x7f....
DEBUG[2798]: res_pjsip_session.c:3137 __print_debug_details: The current transaction state is Calling
DEBUG[2798]: res_pjsip_session.c:3139 __print_debug_details: The transaction state change event is TX_MSG
DEBUG[2798]: res_pjsip_session.c:3144 __print_debug_details: The current inv state is CONFIRMED
DEBUG[2797]: res_pjsip/pjsip_distributor.c:502 distributor: Searching for serializer associated with dialog dlg0x7f... for Response msg 100/INVITE/cseq=2255 (rdata0x7f21ec000ae8)
DEBUG[2797]: res_pjsip/pjsip_distributor.c:510 distributor: Found serializer pjsip/distributor-00000040 associated with dialog dlg0x7f...
DEBUG[2798]: res_pjsip_session.c:3108 __print_debug_details: Function session_inv_on_tsx_state_changed called on event TSX_STATE
DEBUG[2798]: res_pjsip_session.c:3122 __print_debug_details: The state change pertains to the endpoint '100(PJSIP/100-00000000)'
DEBUG[2798]: res_pjsip_session.c:3127 __print_debug_details: The inv session still has an invite_tsx (0x7f....)
DEBUG[2798]: res_pjsip_session.c:3133 __print_debug_details: The UAC INVITE transaction involved in this state change is 0x7f....
DEBUG[2798]: res_pjsip_session.c:3137 __print_debug_details: The current transaction state is Proceeding
DEBUG[2798]: res_pjsip_session.c:3139 __print_debug_details: The transaction state change event is RX_MSG
DEBUG[2798]: res_pjsip_session.c:3144 __print_debug_details: The current inv state is CONFIRMED
DEBUG[2798]: res_pjsip_session.c:3187 handle_incoming: Received response
DEBUG[2798]: res_pjsip_session.c:3171 handle_incoming_response: Response is 100 Trying
DEBUG[2797]: res_pjsip/pjsip_distributor.c:502 distributor: Searching for serializer associated with dialog dlg0x7f... for Response msg 100/INVITE/cseq=2255 (rdata0x7f21ec000ae8)
DEBUG[2797]: res_pjsip/pjsip_distributor.c:510 distributor: Found serializer pjsip/distributor-00000040 associated with dialog dlg0x7f...
WARNING[2831][C-00000001]: res_fax.c:1951 receivefax_t38_init: error on 'PJSIP/100-00000000' while waiting for T.38 negotiation.
DEBUG[2798]: res_pjsip_session.c:3108 __print_debug_details: Function session_inv_on_tsx_state_changed called on event TSX_STATE
DEBUG[2798]: res_pjsip_session.c:3122 __print_debug_details: The state change pertains to the endpoint '100(PJSIP/100-00000000)'
DEBUG[2798]: res_pjsip_session.c:3130 __print_debug_details: The inv session does NOT have an invite_tsx
DEBUG[2798]: res_pjsip_session.c:3133 __print_debug_details: The UAC INVITE transaction involved in this state change is 0x7f....
DEBUG[2798]: res_pjsip_session.c:3137 __print_debug_details: The current transaction state is Terminated
DEBUG[2798]: res_pjsip_session.c:3139 __print_debug_details: The transaction state change event is RX_MSG
DEBUG[2798]: res_pjsip_session.c:3144 __print_debug_details: The current inv state is CONFIRMED
DEBUG[2798]: res_pjsip_session.c:3187 handle_incoming: Received response
DEBUG[2798]: res_pjsip_session.c:3171 handle_incoming_response: Response is 100 OK
ERROR[2831][C-00000001]: res_fax.c:2253 receivefax_exec: error initializing channel 'PJSIP/100-00000000' in T.38 mode
DEBUG[2831][C-00000001]: pbx.c:4390 __ast_pbx_run: Spawn extension (user,10,1) exited non-zero on 'PJSIP/100-00000000'
DEBUG[2831][C-00000001]: channel.c:2496 ast_softhangup_nolock: Soft-Hanging (0x10) up channel 'PJSIP/100-00000000'
DEBUG[2831][C-00000001]: pbx_lua.c:1485 lua_find_extension: Looking up h@user:1
DEBUG[2831][C-00000001]: channel.c:2587 ast_hangup: Channel 0x7f21b4034328 'PJSIP/100-00000000' hanging up. Refs: 2
DEBUG[2798]: res_pjsip_t38.c:143 t38_change_state: T.38 state changed to '3' from '1' on channel 'PJSIP/100-00000000'
Segmentation fault (core dumped)
What’s the problem?
Endpoint config for fax:
t38_udptl=yes
t38_udptl_ec=redundancy
t38_udptl_maxdatagram=400