Ignore:
Timestamp:
Sep 15, 2007 8:30:16 AM (17 years ago)
Author:
bennylp
Message:

Ticket #370: Implemented callback notification to application when ICE negotiation fails (via on_call_media_state callback)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r1426 r1435  
    16761676                  "Media for call %d is suspended (hold) by remote", 
    16771677                  call_id)); 
     1678    } else if (call_info.media_status == PJSUA_CALL_MEDIA_ERROR) { 
     1679        pj_str_t reason = pj_str("ICE negotiation failed"); 
     1680 
     1681        PJ_LOG(1,(THIS_FILE, 
     1682                  "Media has reported error, disconnecting call")); 
     1683 
     1684        pjsua_call_hangup(call_id, 500, &reason, NULL); 
     1685 
    16781686    } else { 
    16791687        PJ_LOG(3,(THIS_FILE,  
Note: See TracChangeset for help on using the changeset viewer.