Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (7 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjsip/include/pjsua-lib/pjsua_internal.h

    r5128 r5513  
    173173                pj_bool_t        hangup;  /**< Call is hangup?              */ 
    174174            } out_call; 
    175             struct { 
     175            struct {             
    176176                call_answer      answers;/**< A list of call answers.       */ 
     177                pj_bool_t        hangup;/**< Call is hangup?                */ 
    177178                pjsip_dialog    *replaced_dlg; /**< Replaced dialog.        */ 
    178179            } inc_call; 
     
    190191    pj_bool_t            reinv_pending;/**< Pending until CONFIRMED state.  */ 
    191192    pj_bool_t            reinv_ice_sent;/**< Has reinvite for ICE upd sent? */ 
     193    pjsip_rx_data       *incoming_data;/**< Cloned incoming call rdata. 
     194                                            On pjsua2, when handling incoming  
     195                                            call, onCreateMediaTransport() will 
     196                                            not be called since the call isn't 
     197                                            created yet. This temporary  
     198                                            variable is used to handle such  
     199                                            case, see ticket #1916.         */ 
    192200}; 
    193201 
     
    276284 
    277285    pj_uint16_t      next_rtp_port; /**< Next RTP port to be used.      */ 
     286    pjsip_transport_type_e tp_type; /**< Transport type (for local acc or 
     287                                         transport binding)             */ 
    278288} pjsua_acc; 
    279289 
     
    360370    pj_stun_resolve_cb   cb;        /**< App callback       */ 
    361371    pj_bool_t            blocking;  /**< Blocking?          */ 
     372    pj_thread_t         *waiter;    /**< Waiting thread     */ 
     373    pj_timer_entry       timer;     /**< Destroy timer      */ 
    362374    pj_status_t          status;    /**< Session status     */ 
    363375    pj_sockaddr          addr;      /**< Result             */ 
    364376    pj_stun_sock        *stun_sock; /**< Testing STUN sock  */ 
     377    pj_bool_t            async_wait;/**< Async resolution  
     378                                         of STUN entry      */ 
    365379} pjsua_stun_resolve; 
    366380 
     
    429443    pj_status_t          stun_status; /**< STUN server status.          */ 
    430444    pjsua_stun_resolve   stun_res;  /**< List of pending STUN resolution*/ 
    431     pj_dns_resolver     *resolver;  /**< DNS resolver.                  */ 
     445    unsigned             stun_srv_idx; /**< Resolved STUN server index  */ 
     446    pj_dns_resolver     *resolver;  /**< DNS resolver.                  */    
    432447 
    433448    /* Detected NAT type */ 
     
    479494    pjmedia_port        *null_port; /**< Null port.                     */ 
    480495    pj_bool_t            snd_is_on; /**< Media flow is currently active */ 
     496    unsigned             snd_mode;  /**< Sound device mode.             */ 
    481497 
    482498    /* Video device */ 
     
    599615 */ 
    600616/* Resolve the STUN server */ 
    601 pj_status_t resolve_stun_server(pj_bool_t wait); 
     617pj_status_t resolve_stun_server(pj_bool_t wait, pj_bool_t retry_if_cur_error); 
    602618 
    603619/**  
     
    609625/* acc use stun? */ 
    610626pj_bool_t pjsua_sip_acc_is_using_stun(pjsua_acc_id acc_id); 
     627pj_bool_t pjsua_media_acc_is_using_stun(pjsua_acc_id acc_id); 
     628 
     629/* acc use IPv6? */ 
     630pj_bool_t pjsua_sip_acc_is_using_ipv6(pjsua_acc_id acc_id); 
    611631 
    612632/* Get local transport address suitable to be used for Via or Contact address 
Note: See TracChangeset for help on using the changeset viewer.