Ignore:
Timestamp:
Mar 30, 2010 11:13:59 AM (14 years ago)
Author:
nanang
Message:

Ticket #1044:

  • Added initial version of automatic re-registration after registration failure and automatic call disconnection after re-registration attempt fails.
  • Published auto re-registration setting to pjsua app.
  • Updated pjsip_regc_send() to retrieve the transport earlier (was only in tsx_callback()).
  • Fixed TCP and TLS transport to prevent transport deletion in transport disconnection callback.
  • Fixed wrong keep-alive settings used by TLS transport (was using TCP keep-alive settings).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c

    r3119 r3128  
    178178        return; 
    179179 
     180    /* Prevent immediate transport destroy by application, as transport 
     181     * state notification callback may be stacked and transport instance 
     182     * must remain valid at any point in the callback. 
     183     */ 
     184    pjsip_transport_add_ref(&tcp->base); 
     185 
    180186    /* Notify application of transport disconnected state */ 
    181187    state_cb = pjsip_tpmgr_get_status_cb(tcp->base.tpmgr); 
     
    194200     */ 
    195201    pjsip_transport_shutdown(&tcp->base); 
     202 
     203    /* Now, it is ok to destroy the transport. */ 
     204    pjsip_transport_dec_ref(&tcp->base); 
    196205} 
    197206 
Note: See TracChangeset for help on using the changeset viewer.