Ignore:
Timestamp:
Jun 6, 2006 6:40:40 PM (18 years ago)
Author:
bennylp
Message:

Another huge chunks of modifications in PJSUA API, too many things to mention!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/activex-pjsua/pjsua-structs.idl

    r487 r492  
    2121    Pj_String   data; 
    2222} Pjsip_Cred_Info; 
     23 
     24 
     25[ 
     26    uuid(7F6CFF0F-C5B3-41e8-B278-61CD584C1F34), 
     27    version(1.0), 
     28    helpstring("PJSIP SIP URI"), 
     29] 
     30typedef struct Pjsip_Sip_Uri 
     31{ 
     32    Pj_String   display; 
     33    Pj_String   user; 
     34    Pj_String   passwd; 
     35    Pj_String   host; 
     36    int         port; 
     37    Pj_String   param_user; 
     38    Pj_String   param_method; 
     39    Pj_String   param_transport; 
     40    int         param_ttl; 
     41    int         param_lr; 
     42    Pj_String   param_maddr; 
     43    Pj_String   param_other; 
     44    Pj_String   param_header; 
     45} Pjsip_Sip_Uri; 
     46 
     47 
     48typedef enum Pjsip_Uri_Context 
     49{ 
     50    PJSIPX_URI_IN_REQ_URI, 
     51    PJSIPX_URI_IN_FROMTO_HDR, 
     52    PJSIPX_URI_IN_CONTACT_HDR, 
     53    PJSIPX_URI_IN_ROUTING_HDR, 
     54    PJSIPX_URI_IN_OTHER 
     55} Pjsip_Uri_Context; 
    2356 
    2457 
     
    4578typedef struct Pjsua_Config 
    4679{ 
    47     unsigned int                udp_port; 
    48     Pj_String                   sip_host; 
    49     unsigned int                sip_port; 
    50     unsigned int                rtp_port; 
    51     unsigned int                max_calls; 
    52     unsigned int                conf_ports; 
    53     unsigned int                thread_cnt; 
    54     Pj_String                   stun_srv1; 
    55     unsigned int                stun_port1; 
    56     Pj_String                   stun_srv2; 
    57     unsigned int                stun_port2; 
    58     unsigned int                snd_player_id; 
    59     unsigned int                snd_capture_id; 
    60     unsigned int                clock_rate; 
    61     Pj_Bool                     null_audio; 
    62     unsigned int                quality; 
    63     unsigned int                complexity; 
    64     SAFEARRAY(Pj_String)        codec_arg; 
    65     unsigned int                auto_answer; 
    66     unsigned int                uas_refresh; 
    67     Pj_String                   outbound_proxy; 
     80    int                     udp_port; 
     81    Pj_String               sip_host; 
     82    int                     sip_port; 
     83    int                     rtp_port; 
     84    int                     msg_logging; 
     85    int                     max_calls; 
     86    int                     conf_ports; 
     87    int                     thread_cnt; 
     88    Pj_String               stun_srv1; 
     89    int                     stun_port1; 
     90    Pj_String               stun_srv2; 
     91    int                     stun_port2; 
     92    int                     snd_player_id; 
     93    int                     snd_capture_id; 
     94    int                     clock_rate; 
     95    Pj_Bool                 null_audio; 
     96    int                     quality; 
     97    int                     complexity; 
     98    SAFEARRAY(Pj_String)    codec_arg; 
     99    int                     auto_answer; 
     100    int                     uas_refresh; 
     101    Pj_String               outbound_proxy; 
    68102    SAFEARRAY(Pjsua_Acc_Config) acc_config; 
    69     unsigned int                log_level; 
    70     unsigned int                app_log_level; 
    71     unsigned long               log_decor; 
    72     Pj_String                   log_filename; 
    73     SAFEARRAY(Pj_String)        buddy_uri; 
     103    int                     log_level; 
     104    int                     app_log_level; 
     105    long                    log_decor; 
     106    Pj_String               log_filename; 
     107    SAFEARRAY(Pj_String)    buddy_uri; 
    74108} Pjsua_Config; 
    75109 
     
    94128typedef struct Pjsua_Call_Info 
    95129{ 
    96     unsigned int        index; 
     130    int                 index; 
    97131    Pj_Bool             active; 
    98132    Pj_Bool             is_uac; 
     
    101135    Pjsua_Call_State    state; 
    102136    Pj_String           state_text; 
    103     unsigned int        connect_duration; 
    104     unsigned int        total_duration; 
    105     unsigned int        cause; 
    106     Pj_String           cause_text; 
     137    int                 connect_duration; 
     138    int                 total_duration; 
     139    int                 last_status; 
     140    Pj_String           last_status_text; 
    107141    Pj_Bool             has_media; 
    108     unsigned int        conf_slot; 
     142    int                 conf_slot; 
    109143} Pjsua_Call_Info; 
    110144 
     
    125159typedef struct Pjsua_Buddy_Info 
    126160{ 
    127     unsigned int        index; 
     161    int index; 
    128162    Pj_Bool             is_valid; 
    129163    Pj_String           name; 
    130164    Pj_String           display; 
    131165    Pj_String           host; 
    132     unsigned int        port; 
     166    int                 port; 
    133167    Pj_URI              uri; 
    134168    Pjsua_Buddy_State   status; 
    135169    Pj_String           status_text; 
    136170    Pj_Bool             monitor; 
    137     int                 acc_index; 
    138171} Pjsua_Buddy_Info; 
    139172 
     
    146179typedef struct Pjsua_Acc_Info 
    147180{ 
    148     unsigned int        index; 
    149     Pj_URI              acc_id; 
     181    int                 index; 
     182    Pj_URI              acc_uri; 
    150183    Pj_Bool             has_registration; 
    151184    int                 expires; 
    152     unsigned int        status_code; 
     185    int                 status_code; 
    153186    Pj_String           status_text; 
    154187    Pj_Bool             online_status; 
    155188} Pjsua_Acc_Info; 
    156189 
     190 
     191 
     192[ 
     193    uuid(0D05907A-3E1F-4c92-9FD0-26CB6E1CC56A), 
     194    version(1.0), 
     195    helpstring("PJSUA Conference Port Information"), 
     196] 
     197typedef struct Pjsua_Conf_Port_Info 
     198{ 
     199    int                 slot_id; 
     200    Pj_String           name; 
     201    int                 clock_rate; 
     202    int                 channel_count; 
     203    int                 samples_per_frame; 
     204    int                 bits_per_sample; 
     205    SAFEARRAY(int)      listeners; 
     206} Pjsua_Conf_Port_Info; 
     207 
Note: See TracChangeset for help on using the changeset viewer.