Changeset 1566 for pjproject/trunk


Ignore:
Timestamp:
Nov 9, 2007 2:56:29 AM (17 years ago)
Author:
bennylp
Message:

Deregister PJSIP_SYN_ERR_EXCEPTION upon destroying SIP endpoint to allow restarting SIP endpoint without shutting down pjlib (thanks Phil Torre)

File:
1 edited

Legend:

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

    r1540 r1566  
    8686 * Global vars (also extern). 
    8787 */ 
    88 int PJSIP_SYN_ERR_EXCEPTION; 
     88int PJSIP_SYN_ERR_EXCEPTION = -1; 
    8989 
    9090/* Parser constants */ 
     
    277277     * Syntax error exception number. 
    278278     */ 
     279    pj_assert (PJSIP_SYN_ERR_EXCEPTION == -1); 
    279280    status = pj_exception_id_alloc("PJSIP syntax error",  
    280281                                   &PJSIP_SYN_ERR_EXCEPTION); 
     
    483484        pj_bzero(uri_handler, sizeof(uri_handler)); 
    484485        uri_handler_count = 0; 
     486 
     487        /* Deregister exception ID */ 
     488        pj_exception_id_free(PJSIP_SYN_ERR_EXCEPTION); 
     489        PJSIP_SYN_ERR_EXCEPTION = -1; 
    485490    } 
    486491    pj_leave_critical_section(); 
Note: See TracChangeset for help on using the changeset viewer.