Ticket #467: ticket467.3.patch

File ticket467.3.patch, 536 bytes (added by nanang, 17 years ago)

Fixed call_disconnect() in pjsua_call.c, put SDP only if message type is response.

  • pjsip/src/pjsua-lib/pjsua_call.c

     
    24382438        return; 
    24392439 
    24402440    /* Add SDP in 488 status */ 
    2441     if (call && call->med_tp && code==PJSIP_SC_NOT_ACCEPTABLE_HERE) { 
     2441    if (call && call->med_tp && tdata->msg->type==PJSIP_RESPONSE_MSG &&  
     2442        code==PJSIP_SC_NOT_ACCEPTABLE_HERE)  
     2443    { 
    24422444        pjmedia_sdp_session *local_sdp; 
    24432445        pjmedia_sock_info si; 
    24442446