Changeset 4306


Ignore:
Timestamp:
Dec 12, 2012 6:20:28 AM (12 years ago)
Author:
ming
Message:

Fixed #1598: Assertion when sip error code is not set (thanks Peter Koletzki for the report)

Location:
pjproject/trunk/pjsip/src/pjsua-lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r4300 r4306  
    10301030    pjsua_call *call; 
    10311031    int call_id = -1; 
    1032     int sip_err_code; 
     1032    int sip_err_code = PJSIP_SC_INTERNAL_SERVER_ERROR; 
    10331033    pjmedia_sdp_session *offer=NULL; 
    10341034    pj_status_t status; 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r4305 r4306  
    15161516     */ 
    15171517 
    1518     if (pjsua_get_state() != PJSUA_STATE_RUNNING) 
     1518    if (pjsua_get_state() != PJSUA_STATE_RUNNING) { 
     1519        if (sip_err_code) *sip_err_code = PJSIP_SC_SERVICE_UNAVAILABLE; 
    15191520        return PJ_EBUSY; 
     1521    } 
    15201522 
    15211523    if (async) { 
Note: See TracChangeset for help on using the changeset viewer.