Skip to content
Snippets Groups Projects
  • George Joseph's avatar
    41f3a7da
    res_fax: Don't start a gateway if either channel is hung up · 41f3a7da
    George Joseph authored
    When fax_gateway_framehook is called and a gateway hasn't already
    been started, the framehook gets the t38 state for both the current
    channel and the peer.  That call trickles down to the channel
    driver which determines the state.  If either channel is hung up
    (or in the process of being hung up), the channel driver's tech_pvt
    is going to be NULL which, in the case of chan_pjsip, will cause a
    segfault.
    
    * Added a hangup check for both the channel and peer channel
      before starting a fax gateway.
    
    * Added a check for NULL tech_pvt to chan_pjsip_queryoption
      so we don't attempt to reference a tech_pvt that's already
      gone.
    
    ASTERISK-28923
    Reported by: Yury Kirsanov
    
    Change-Id: I4e10e63b667bbb68c1c8623f977488f5d807897c
    41f3a7da
    History
    res_fax: Don't start a gateway if either channel is hung up
    George Joseph authored
    When fax_gateway_framehook is called and a gateway hasn't already
    been started, the framehook gets the t38 state for both the current
    channel and the peer.  That call trickles down to the channel
    driver which determines the state.  If either channel is hung up
    (or in the process of being hung up), the channel driver's tech_pvt
    is going to be NULL which, in the case of chan_pjsip, will cause a
    segfault.
    
    * Added a hangup check for both the channel and peer channel
      before starting a fax gateway.
    
    * Added a check for NULL tech_pvt to chan_pjsip_queryoption
      so we don't attempt to reference a tech_pvt that's already
      gone.
    
    ASTERISK-28923
    Reported by: Yury Kirsanov
    
    Change-Id: I4e10e63b667bbb68c1c8623f977488f5d807897c