Changeset 4136


Ignore:
Timestamp:
May 22, 2012 4:09:53 AM (12 years ago)
Author:
bennylp
Message:

Re #1514: fixed the incoming call scenario, and changed disconnection code from Precondition Failure to Temporarily Unavailable

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

Legend:

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

    r4135 r4136  
    376376        int title_len; 
    377377 
    378         call->last_code = PJSIP_SC_PRECONDITION_FAILURE; 
     378        call->last_code = PJSIP_SC_TEMPORARILY_UNAVAILABLE; 
    379379        pj_strcpy2(&call->last_text, "Media init error: "); 
    380380 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r4134 r4136  
    13141314 
    13151315    if (status != PJ_SUCCESS) { 
    1316         if (call->med_ch_info.status == PJ_SUCCESS) 
     1316        if (call->med_ch_info.status == PJ_SUCCESS) { 
    13171317            call->med_ch_info.status = status; 
     1318            call->med_ch_info.sip_err_code = PJSIP_SC_TEMPORARILY_UNAVAILABLE; 
     1319        } 
    13181320        pjsua_media_prov_clean_up(call_id); 
    13191321        goto on_return; 
     
    13431345                if (!call_med->tp) { 
    13441346                    status = 
    1345                         PJSIP_ERRNO_FROM_SIP_STATUS(PJSIP_SC_NOT_ACCEPTABLE); 
     1347                        PJSIP_ERRNO_FROM_SIP_STATUS(PJSIP_SC_TEMPORARILY_UNAVAILABLE); 
    13461348                } 
    13471349            } 
     
    13561358                call->med_ch_info.med_idx = mi; 
    13571359                call->med_ch_info.state = call_med->tp_st; 
    1358                 call->med_ch_info.sip_err_code = PJSIP_SC_NOT_ACCEPTABLE; 
     1360                call->med_ch_info.sip_err_code = PJSIP_SC_TEMPORARILY_UNAVAILABLE; 
    13591361                pjsua_media_prov_clean_up(call_id); 
    13601362                goto on_return; 
Note: See TracChangeset for help on using the changeset viewer.