Ignore:
Timestamp:
Jun 22, 2012 8:53:11 AM (12 years ago)
Author:
nanang
Message:

Fix #1526:

  • Fix incoming call without SDP by delaying media init in on_incoming_call() until call setting is set i.e: via call answer. Note that there is no need to delay the media init in the case of call replace request, the call setting is already set in the incoming call callback, i.e: via on_call_replace_request2() callback or just the current setting of the replaced call.
  • Fix processing call replace request when the media init is performed asynchronously.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h

    r4173 r4175  
    109109    pj_str_t        *reason;        /**< Answer's reason phrase.      */ 
    110110    unsigned         code;          /**< Answer's status code.        */ 
     111    pjsua_call_setting *opt;        /**< Answer's call setting.       */ 
    111112} call_answer; 
    112113 
     
    121122    unsigned             index;     /**< Index in pjsua array.              */ 
    122123    pjsua_call_setting   opt;       /**< Call setting.                      */ 
     124    pj_bool_t            opt_inited;/**< Initial call setting has been set, 
     125                                         to avoid different opt in answer.  */ 
    123126    pjsip_inv_session   *inv;       /**< The invite session.                */ 
    124127    void                *user_data; /**< User/application data.             */ 
     
    171174            struct { 
    172175                call_answer      answers;/**< A list of call answers.       */ 
     176                pjsip_dialog    *replaced_dlg; /**< Replaced dialog.        */ 
    173177            } inc_call; 
    174178        } call_var; 
Note: See TracChangeset for help on using the changeset viewer.