Ignore:
Timestamp:
Jun 20, 2007 10:03:46 AM (17 years ago)
Author:
bennylp
Message:

More on ticket #399: a)send full offer on 200/OK response when re-INVITE does not have SDP, b) added on_create_offer() callback, c) handle some error cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c

    r1266 r1379  
    986986} 
    987987 
     988/* Cancel offer */ 
     989PJ_DEF(pj_status_t) pjmedia_sdp_neg_cancel_offer(pjmedia_sdp_neg *neg) 
     990{ 
     991    PJ_ASSERT_RETURN(neg, PJ_EINVAL); 
     992 
     993    /* Must be in LOCAL_OFFER state. */ 
     994    PJ_ASSERT_RETURN(neg->state == PJMEDIA_SDP_NEG_STATE_LOCAL_OFFER, 
     995                     PJMEDIA_SDPNEG_EINSTATE); 
     996 
     997    /* Reset state to done */ 
     998    neg->state = PJMEDIA_SDP_NEG_STATE_DONE; 
     999 
     1000    /* Clear temporary SDP */ 
     1001    neg->neg_local_sdp = neg->neg_remote_sdp = NULL; 
     1002    neg->has_remote_answer = PJ_FALSE; 
     1003 
     1004    return PJ_SUCCESS; 
     1005} 
     1006 
     1007 
    9881008/* The best bit: SDP negotiation function! */ 
    9891009PJ_DEF(pj_status_t) pjmedia_sdp_neg_negotiate( pj_pool_t *pool, 
Note: See TracChangeset for help on using the changeset viewer.