Changes between Version 1 and Version 2 of 0.9/Media_Interface_Change


Ignore:
Timestamp:
Jun 9, 2008 3:20:37 PM (11 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 0.9/Media_Interface_Change

    v1 v2  
    7070= New Design Specification = 
    7171 
     72== Create Media Transport On-Demand == 
     73 
     74Media transport (including SRTP) will be created before call. 
     75 
     76== Distinguish Between Fresh Call and UPDATE/re-INVITE == 
     77 
     78{{{ 
     79pjsua_call_make_call(): 
     80pjsua_call_on_incoming(): 
     81{ 
     82        pjsua_media_channel_init(); 
     83        pjsua_media_channel_create_sdp(); 
     84} 
     85 
     86pjsua_call_update(): 
     87pjsua_call_reinvite(): 
     88pjsua_call_on_rx_offer(): 
     89pjsua_call_on_create_offer(): 
     90{ 
     91        if (media==NULL) 
     92           pjsua_media_channel_init(); 
     93        pjsua_media_channel_create_sdp(); 
     94} 
     95 
     96pjsua_call_on_media_update(): 
     97{ 
     98        pjsua_media_channel_update(); 
     99} 
     100 
     101pjsua_call_on_state_changed(DISCONNECTED): 
     102pjsua_call_on_media_update(HOLD): 
     103{ 
     104        pjsua_media_channel_deinit(); 
     105} 
     106}}} 
    72107 
    73108 
    74