Changeset 1242


Ignore:
Timestamp:
May 2, 2007 11:29:37 AM (17 years ago)
Author:
bennylp
Message:

PJSUA-LIB was ported to Symbian and added simple Symbian app. Testing follows

Location:
pjproject/trunk
Files:
9 added
1 deleted
32 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/build.symbian/bld.inf

    r1235 r1242  
    11prj_mmpfiles 
    22pjlib.mmp 
    3 //pjlib_util.mmp 
    4 //pjsip.mmp 
    5 //pjsip_simple.mmp 
    6 //pjsdp.mmp 
    7 //pjsip_ua.mmp 
     3pjlib_util.mmp 
     4pjnath.mmp 
     5pjsdp.mmp 
     6pjmedia.mmp 
     7pjsip.mmp 
     8pjsip_simple.mmp 
     9pjsip_ua.mmp 
    810//pjlib_test.mmp 
    911//sipstateless.mmp 
     12symbian_ua.mmp 
  • pjproject/trunk/build.symbian/pjlib.mmp

    r1235 r1242  
    1010MACRO           PJ_M_I386=1 
    1111MACRO           PJ_SYMBIAN=1 
    12 MACRO           PJ_EXPORTING 
    1312 
    1413// 
     
    5857SOURCE          unicode_symbian.cpp 
    5958 
     59DOCUMENT        os_symbian.h 
     60 
     61DOCUMENT        pj\\addr_resolv.h 
     62DOCUMENT        pj\\array.h 
     63DOCUMENT        pj\\assert.h 
     64DOCUMENT        pj\\config.h 
     65DOCUMENT        pj\\config_site.h 
     66DOCUMENT        pj\\config_site_sample.h 
     67DOCUMENT        pj\\ctype.h 
     68DOCUMENT        pj\\errno.h 
     69DOCUMENT        pj\\except.h 
     70DOCUMENT        pj\\file_access.h 
     71DOCUMENT        pj\\file_io.h 
     72DOCUMENT        pj\\guid.h 
     73DOCUMENT        pj\\hash.h 
     74DOCUMENT        pj\\ioqueue.h 
     75DOCUMENT        pj\\ip_helper.h 
     76DOCUMENT        pj\\list.h 
     77DOCUMENT        pj\\lock.h 
     78DOCUMENT        pj\\log.h 
     79DOCUMENT        pj\\os.h 
     80DOCUMENT        pj\\pool.h 
     81DOCUMENT        pj\\pool_buf.h 
     82DOCUMENT        pj\\rand.h 
     83DOCUMENT        pj\\rbtree.h 
     84DOCUMENT        pj\\sock.h 
     85DOCUMENT        pj\\sock_select.h 
     86DOCUMENT        pj\\string.h 
     87DOCUMENT        pj\\timer.h 
     88DOCUMENT        pj\\types.h 
     89DOCUMENT        pj\\unicode.h 
    6090 
    6191SYSTEMINCLUDE   ..\pjlib\include 
  • pjproject/trunk/build.symbian/pjlib_test.mmp

    r1238 r1242  
    88MACRO           PJ_M_I386=1 
    99MACRO           PJ_SYMBIAN=1 
    10 MACRO           PJ_IMPORTING 
    1110 
    1211OPTION          CW -lang c++ 
  • pjproject/trunk/build.symbian/pjlib_util.mmp

    r1239 r1242  
    88MACRO           PJ_M_I386=1 
    99MACRO           PJ_SYMBIAN=1 
    10 MACRO           PJ_IMPORTING 
    1110 
    1211OPTION          CW -lang c++ 
    1312 
     13// 
    1414// PJLIB-UTIL files 
    15  
     15// 
    1616SOURCE  crc32.c 
    1717SOURCE  dns.c 
     
    3131SOURCE  xml.c 
    3232 
     33// 
     34// Header files 
     35// 
     36DOCUMENT pjlib-util\\config.h 
     37DOCUMENT pjlib-util\\crc32.h 
     38DOCUMENT pjlib-util\\dns.h 
     39DOCUMENT pjlib-util\\errno.h 
     40DOCUMENT pjlib-util\\getopt.h 
     41DOCUMENT pjlib-util\\hmac_md5.h 
     42DOCUMENT pjlib-util\hmac_sha1.h 
     43DOCUMENT pjlib-util\md5.h 
     44DOCUMENT pjlib-util\resolver.h 
     45DOCUMENT pjlib-util\scanner.h 
     46DOCUMENT pjlib-util\sha1.h 
     47DOCUMENT pjlib-util\srv_resolver.h 
     48DOCUMENT pjlib-util\string.h 
     49DOCUMENT pjlib-util\stun_simple.h 
     50DOCUMENT pjlib-util\types.h 
     51DOCUMENT pjlib-util\xml.h 
     52 
     53 
    3354SYSTEMINCLUDE   ..\pjlib\include  
    3455SYSTEMINCLUDE   ..\pjlib-util\include 
  • pjproject/trunk/build.symbian/pjnath.mmp

    r1239 r1242  
    88MACRO           PJ_M_I386=1 
    99MACRO           PJ_SYMBIAN=1 
    10 MACRO           PJ_IMPORTING 
    1110 
    12 OPTION          CW -lang c++ 
     11//OPTION                CW -lang c++ 
    1312 
     13// 
    1414// PJNATH files 
    15  
     15// 
    1616SOURCE  errno.c 
    1717SOURCE  ice_session.c 
     
    2222SOURCE  stun_session.c 
    2323SOURCE  stun_transaction.c 
     24 
     25// 
     26// Include files 
     27// 
     28DOCUMENT pjnath\config.h 
     29DOCUMENT pjnath\\errno.h 
     30DOCUMENT pjnath\\ice_session.h 
     31DOCUMENT pjnath\\ice_strans.h 
     32DOCUMENT pjnath\\stun_auth.h 
     33DOCUMENT pjnath\\stun_config.h 
     34DOCUMENT pjnath\\stun_msg.h 
     35DOCUMENT pjnath\\stun_session.h 
     36DOCUMENT pjnath\\stun_transaction.h 
     37DOCUMENT pjnath\\types.h 
     38 
     39 
    2440 
    2541SYSTEMINCLUDE   ..\pjlib\include  
  • pjproject/trunk/build.symbian/pjsdp.mmp

    r1240 r1242  
    1010MACRO           PJ_M_I386=1 
    1111MACRO           PJ_SYMBIAN=1 
    12 MACRO           PJ_EXPORTING 
    1312 
    1413// 
  • pjproject/trunk/build.symbian/pjsip.mmp

    r1240 r1242  
    88MACRO           PJ_M_I386=1 
    99MACRO           PJ_SYMBIAN=1 
    10 MACRO           PJ_IMPORTING 
    1110 
    1211OPTION          CW -lang c++ 
  • pjproject/trunk/build.symbian/pjsip_simple.mmp

    r1241 r1242  
    88MACRO           PJ_M_I386=1 
    99MACRO           PJ_SYMBIAN=1 
    10 MACRO           PJ_IMPORTING 
    1110 
    1211OPTION          CW -lang c++ 
  • pjproject/trunk/build.symbian/pjsip_ua.mmp

    r1240 r1242  
    88MACRO           PJ_M_I386=1 
    99MACRO           PJ_SYMBIAN=1 
    10 MACRO           PJ_IMPORTING 
    1110 
    1211//OPTION                CW -lang c++ 
  • pjproject/trunk/build.symbian/pjstun_client.mmp

    r1239 r1242  
    88MACRO           PJ_M_I386=1 
    99MACRO           PJ_SYMBIAN=1 
    10 MACRO           PJ_IMPORTING 
    1110 
    1211OPTION          CW -lang c++ 
  • pjproject/trunk/pjlib-util/include/pjlib-util.h

    r1102 r1242  
    5353#include <pjlib-util/stun_simple.h> 
    5454 
    55 /** 
    56  * @addtogroup PJLIB_UTIL 
    57  * @{ 
    58  */ 
    59  
    60 PJ_BEGIN_DECL 
    61  
    62 /** 
    63  * Initialize PJLIB UTIL (defined in errno.c) 
    64  * 
    65  * @return PJ_SUCCESS on success. 
    66  */ 
    67 PJ_DECL(pj_status_t) pjlib_util_init(void); 
    68  
    69  
    70 /** 
    71  * @} 
    72  */ 
    73  
    74 PJ_END_DECL 
    75  
    7655 
    7756#endif  /* __PJLIB_UTIL_H__ */ 
  • pjproject/trunk/pjlib-util/include/pjlib-util/types.h

    r974 r1242  
    3030/** 
    3131 * @defgroup PJLIB_UTIL PJLIB-UTIL Library 
     32 * @{ 
    3233 */ 
     34 
     35PJ_BEGIN_DECL 
     36 
     37/** 
     38 * Initialize PJLIB UTIL (defined in errno.c) 
     39 * 
     40 * @return PJ_SUCCESS on success. 
     41 */ 
     42PJ_DECL(pj_status_t) pjlib_util_init(void); 
     43 
     44 
     45 
     46PJ_END_DECL 
     47 
     48 
     49/** 
     50 * @} 
     51 */ 
     52 
    3353 
    3454/** 
  • pjproject/trunk/pjlib-util/src/pjlib-util/errno.c

    r1037 r1242  
    1818 */ 
    1919#include <pjlib-util/errno.h> 
     20#include <pjlib-util/types.h> 
    2021#include <pj/string.h> 
    2122 
  • pjproject/trunk/pjlib/include/pj/compat/os_symbian.h

    r1235 r1242  
    146146#include <e32def.h> 
    147147 
     148/* 
    148149#if defined(PJ_EXPORTING) 
    149150#   define PJ_EXPORT_IMPORT EXPORT_C 
     
    153154#   error "Must define either PJ_EXPORTING or PJ_IMPORTING" 
    154155#endif 
     156*/ 
    155157 
    156158#endif  /* __PJ_COMPAT_OS_SYMBIAN_H__ */ 
  • pjproject/trunk/pjlib/include/pj/config_site_sample.h

    r1240 r1242  
    3131 */ 
    3232#if defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0 
     33 
     34#   undef PJ_HAS_FLOATING_POINT 
     35#   define PJ_HAS_FLOATING_POINT        0 
     36 
    3337#   define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_NULL_SOUND 
     38#   define PJMEDIA_HAS_LIBRESAMPLE      0 
     39#   define PJMEDIA_HAS_SPEEX_AEC        0 
     40 
     41#   define PJMEDIA_HAS_L16_CODEC        0 
     42#   define PJMEDIA_HAS_GSM_CODEC        0 
     43#   define PJMEDIA_HAS_ILBC_CODEC       0 
     44#   define PJMEDIA_HAS_SPEEX_CODEC      0 
     45 
    3446#endif 
    3547 
  • pjproject/trunk/pjlib/include/pj/except.h

    r1235 r1242  
    246246 ****************************************************************************/ 
    247247 
     248/* To include this file, the source file must be compiled as 
     249 * C++ code! 
     250 */ 
     251#ifdef __cplusplus 
     252 
    248253class TPjException 
    249254{ 
     
    261266#define PJ_GET_EXCEPTION()      pj_excp_.code_ 
    262267 
     268#endif  /* __cplusplus */ 
     269 
    263270#else 
    264271/***************************************************************************** 
  • pjproject/trunk/pjlib/include/pj/pool_buf.h

    r974 r1242  
    7171 */ 
    7272 
     73PJ_BEGIN_DECL 
    7374 
    7475/** 
     
    9495                                          pj_size_t size); 
    9596 
     97PJ_END_DECL 
     98 
    9699/** 
    97100 * @} 
  • pjproject/trunk/pjlib/src/pj/exception_symbian.cpp

    r1235 r1242  
    3535#endif  /* PJ_HAS_EXCEPTION_NAMES */ 
    3636 
    37  
    38 //#if !defined(PJ_EXCEPTION_USE_WIN32_SEH) || PJ_EXCEPTION_USE_WIN32_SEH==0 
    39 #if 0 
    40 PJ_DEF(void) pj_throw_exception_(int exception_id) 
    41 { 
    42     struct pj_exception_state_t *handler; 
    43  
    44     handler = (pj_exception_state_t*)pj_thread_local_get(thread_local_id); 
    45     if (handler == NULL) { 
    46         PJ_LOG(1,("except.c", "!!!FATAL: unhandled exception %d!\n", exception_id)); 
    47         pj_assert(handler != NULL); 
    48         /* This will crash the system! */ 
    49     } 
    50     pj_longjmp(handler->state, exception_id); 
    51 } 
    52  
    53 PJ_DEF(void) pj_push_exception_handler_(struct pj_exception_state_t *rec) 
    54 { 
    55     struct pj_exception_state_t *parent_handler = NULL; 
    56  
    57     if (thread_local_id == -1) { 
    58         pj_thread_local_alloc(&thread_local_id); 
    59         pj_assert(thread_local_id != -1); 
    60     } 
    61     parent_handler = (pj_exception_state_t*)pj_thread_local_get(thread_local_id); 
    62     rec->prev = parent_handler; 
    63     pj_thread_local_set(thread_local_id, rec); 
    64 } 
    65  
    66 PJ_DEF(void) pj_pop_exception_handler_(void) 
    67 { 
    68     struct pj_exception_state_t *handler; 
    69  
    70     handler = (pj_exception_state_t*)pj_thread_local_get(thread_local_id); 
    71     pj_assert(handler != NULL); 
    72     pj_thread_local_set(thread_local_id, handler->prev); 
    73 } 
    74 #endif 
    7537 
    7638#if defined(PJ_HAS_EXCEPTION_NAMES) && PJ_HAS_EXCEPTION_NAMES != 0 
  • pjproject/trunk/pjlib/src/pj/os_core_symbian.cpp

    r1235 r1242  
    271271PJ_DEF(pj_status_t) pj_init(void) 
    272272{ 
     273    pj_status_t status; 
     274     
    273275    pj_ansi_strcpy(main_thread.obj_name, "pjthread"); 
    274276 
     
    281283    PJ_LOG(4,(THIS_FILE, "Initializing PJLIB for Symbian OS..")); 
    282284 
    283     TInt err; 
     285    TInt err;  
    284286    err = os->Initialize(); 
    285287    if (err != KErrNone) 
    286288        goto on_error; 
     289     
     290    /* Initialize exception ID for the pool.  
     291     * Must do so after critical section is configured. 
     292     */  
     293    status = pj_exception_id_alloc("PJLIB/No memory", &PJ_NO_MEMORY_EXCEPTION); 
     294    if (status != PJ_SUCCESS) 
     295        return status; 
    287296 
    288297    PJ_LOG(5,(THIS_FILE, "PJLIB initialized.")); 
     
    308317PJ_DEF(void) pj_shutdown(void) 
    309318{ 
    310     unsigned i; 
    311  
    312319    /* Call atexit() functions */ 
    313     for (i=atexit_count-1; i>=0; --i) { 
    314         (*atexit_func[i])(); 
    315     } 
    316     atexit_count = 0; 
     320    while (atexit_count > 0) { 
     321        (*atexit_func[atexit_count-1])(); 
     322        --atexit_count; 
     323    } 
    317324 
    318325    /* Free exception ID */ 
  • pjproject/trunk/pjlib/src/pjlib-test/errno.c

    r1238 r1242  
    7171{ 
    7272    enum { CUT = 6 }; 
    73     pj_status_t rc; 
     73    pj_status_t rc = 0; 
    7474    char errbuf[256]; 
    7575 
    7676    PJ_LOG(3,(THIS_FILE, "...errno test: check the msg carefully")); 
    7777 
     78    PJ_UNUSED_ARG(rc); 
     79     
    7880    /*  
    7981     * Windows platform error.  
  • pjproject/trunk/pjmedia/src/pjmedia/codec.c

    r974 r1242  
    323323                         codec_id->slen) == 0)  
    324324        { 
    325             mgr->codec_desc[i].prio = prio; 
     325            mgr->codec_desc[i].prio = (pjmedia_codec_priority) prio; 
    326326            ++found; 
    327327        } 
  • pjproject/trunk/pjmedia/src/pjmedia/g711.c

    r1177 r1242  
    373373{ 
    374374    struct g711_private *priv = codec->codec_data; 
    375     int i; 
     375    int i = 0; 
    376376 
    377377    PJ_ASSERT_RETURN(factory==&g711_factory.base, PJ_EINVAL); 
  • pjproject/trunk/pjmedia/src/pjmedia/resample_resample.c

    r1177 r1242  
    218218#else /* PJMEDIA_HAS_LIBRESAMPLE */ 
    219219 
    220 int pjmedia_resample_resample_excluded; 
     220/* 
     221 * This is the configuration when sample rate conversion is disabled. 
     222 */ 
     223struct pjmedia_resample 
     224{ 
     225        unsigned samples_per_frame; 
     226}; 
     227 
     228PJ_DEF(pj_status_t) pjmedia_resample_create( pj_pool_t *pool, 
     229                                             pj_bool_t high_quality, 
     230                                             pj_bool_t large_filter, 
     231                                             unsigned channel_count, 
     232                                             unsigned rate_in, 
     233                                             unsigned rate_out, 
     234                                             unsigned samples_per_frame, 
     235                                             pjmedia_resample **p_resample)  
     236{ 
     237        pjmedia_resample *resample; 
     238         
     239        PJ_ASSERT_RETURN(rate_in == rate_out, PJ_EINVALIDOP); 
     240 
     241        PJ_UNUSED_ARG(high_quality); 
     242        PJ_UNUSED_ARG(large_filter); 
     243        PJ_UNUSED_ARG(channel_count); 
     244        PJ_UNUSED_ARG(rate_in); 
     245        PJ_UNUSED_ARG(rate_out); 
     246                 
     247        resample = PJ_POOL_ZALLOC_T(pool, pjmedia_resample); 
     248        resample->samples_per_frame = samples_per_frame; 
     249         
     250        *p_resample = resample; 
     251         
     252        return PJ_SUCCESS; 
     253} 
     254 
     255PJ_DEF(void) pjmedia_resample_run( pjmedia_resample *resample, 
     256                                   const pj_int16_t *input, 
     257                                   pj_int16_t *output )  
     258{ 
     259        pjmedia_copy_samples(output, input, resample->samples_per_frame); 
     260} 
     261 
     262PJ_DEF(unsigned) pjmedia_resample_get_input_size(pjmedia_resample *resample)  
     263{ 
     264        return resample->samples_per_frame; 
     265} 
     266 
     267PJ_DEF(void) pjmedia_resample_destroy(pjmedia_resample *resample)  
     268{ 
     269        PJ_UNUSED_ARG(resample); 
     270} 
    221271 
    222272#endif  /* PJMEDIA_HAS_LIBRESAMPLE */ 
  • pjproject/trunk/pjnath/include/pjnath/ice_session.h

    r1152 r1242  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
    19 #ifndef __PJNATH_ICE_SOCK_H__ 
    20 #define __PJNATH_ICE_SOCK_H__ 
     19#ifndef __PJNATH_ICE_SESSION_H__ 
     20#define __PJNATH_ICE_SESSION_H__ 
    2121 
    2222/** 
     
    751751 
    752752 
    753 #endif  /* __PJNATH_ICE_SOCK_H__ */ 
    754  
     753#endif  /* __PJNATH_ICE_SESSION_H__ */ 
     754 
  • pjproject/trunk/pjnath/include/pjnath/ice_strans.h

    r1140 r1242  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
    19 #ifndef __PJNATH_ICE_STREAM_TRANSPORT_H__ 
    20 #define __PJNATH_ICE_STREAM_TRANSPORT_H__ 
     19#ifndef __PJNATH_ICE_STRANS_H__ 
     20#define __PJNATH_ICE_STRANS_H__ 
    2121 
    2222 
     
    588588 
    589589 
    590 #endif  /* __PJNATH_ICE_STREAM_TRANSPORT_H__ */ 
    591  
     590#endif  /* __PJNATH_ICE_STRANS_H__ */ 
     591 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r982 r1242  
    170170{ 
    171171    if (cause_code > inv->cause) { 
    172         inv->cause = cause_code; 
     172        inv->cause = (pjsip_status_code) cause_code; 
    173173        if (cause_text) 
    174174            pj_strdup(inv->pool, &inv->cause_text, cause_text); 
     
    462462    inv->options = options; 
    463463    inv->notify = PJ_TRUE; 
    464     inv->cause = 0; 
     464    inv->cause = (pjsip_status_code) 0; 
    465465 
    466466    /* Object name will use the same dialog pointer. */ 
     
    884884    inv->options = options; 
    885885    inv->notify = PJ_TRUE; 
    886     inv->cause = 0; 
     886    inv->cause = (pjsip_status_code) 0; 
    887887 
    888888    /* Object name will use the same dialog pointer. */ 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_xfer.c

    r974 r1242  
    5959 
    6060const pjsip_method pjsip_refer_method = { 
    61     PJSIP_REFER_METHOD, 
     61    (pjsip_method_e) PJSIP_REFER_METHOD, 
    6262    { "REFER", 5} 
    6363}; 
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_udp.c

    r1241 r1242  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
    19 #include <pjsip/sip_transport.h> 
     19#include <pjsip/sip_transport_udp.h> 
    2020#include <pjsip/sip_endpoint.h> 
    2121#include <pjsip/sip_errno.h> 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r1127 r1242  
    683683     
    684684    if (acc->reg_last_err) { 
    685         info->status = acc->reg_last_err; 
     685        info->status = (pjsip_status_code) acc->reg_last_err; 
    686686        pj_strerror(acc->reg_last_err, info->buf_, sizeof(info->buf_)); 
    687687        info->status_text = pj_str(info->buf_); 
    688688    } else if (acc->reg_last_code) { 
    689689        if (info->has_registration) { 
    690             info->status = acc->reg_last_code; 
     690            info->status = (pjsip_status_code) acc->reg_last_code; 
    691691            info->status_text = *pjsip_get_status_text(acc->reg_last_code); 
    692692        } else { 
    693             info->status = 0; 
     693            info->status = (pjsip_status_code) 0; 
    694694            info->status_text = pj_str("not registered"); 
    695695        } 
    696696    } else if (acc->cfg.reg_uri.slen) { 
    697         info->status = 100; 
     697        info->status = PJSIP_SC_TRYING; 
    698698        info->status_text = pj_str("In Progress"); 
    699699    } else { 
    700         info->status = 0; 
     700        info->status = (pjsip_status_code) 0; 
    701701        info->status_text = pj_str("does not register"); 
    702702    } 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r1134 r1242  
    8585    call->session = NULL; 
    8686    call->xfer_sub = NULL; 
    87     call->last_code = 0; 
     87    call->last_code = (pjsip_status_code) 0; 
    8888    call->conf_slot = PJSUA_INVALID_ID; 
    8989    call->last_text.ptr = call->last_text_buf_; 
     
    19471947            if (call->res_time.sec == 0) 
    19481948                pj_gettimeofday(&call->res_time); 
    1949             call->last_code = e->body.tsx_state.tsx->status_code; 
     1949            call->last_code = (pjsip_status_code)  
     1950                              e->body.tsx_state.tsx->status_code; 
    19501951            pj_strncpy(&call->last_text,  
    19511952                       &e->body.tsx_state.tsx->status_text, 
     
    19601961                pj_gettimeofday(&call->res_time); 
    19611962            if (e->body.tsx_state.tsx->status_code > call->last_code) { 
    1962                 call->last_code = e->body.tsx_state.tsx->status_code; 
     1963                call->last_code = (pjsip_status_code)  
     1964                                  e->body.tsx_state.tsx->status_code; 
    19631965                pj_strncpy(&call->last_text,  
    19641966                           &e->body.tsx_state.tsx->status_text, 
     
    19671969            break; 
    19681970        default: 
    1969             call->last_code = e->body.tsx_state.tsx->status_code; 
     1971            call->last_code = (pjsip_status_code)  
     1972                              e->body.tsx_state.tsx->status_code; 
    19701973            pj_strncpy(&call->last_text,  
    19711974                       &e->body.tsx_state.tsx->status_text, 
     
    25352538 
    25362539    if (code < 200) 
    2537         code = 200; 
     2540        code = PJSIP_SC_OK; 
    25382541    if (code >= 300) { 
    25392542        /* Application rejects call transfer request */ 
     
    27762779                                                    &im_data->body, 
    27772780                                                    im_data->user_data, 
    2778                                                     tsx->status_code, 
     2781                                                    (pjsip_status_code) 
     2782                                                        tsx->status_code, 
    27792783                                                    &tsx->status_text); 
    27802784            } 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_im.c

    r1148 r1242  
    3636const pjsip_method pjsip_message_method = 
    3737{ 
    38     PJSIP_MESSAGE_METHOD, 
     38    (pjsip_method_e) PJSIP_MESSAGE_METHOD, 
    3939    { "MESSAGE", 7 } 
    4040}; 
     
    341341                                                &im_data->body, 
    342342                                                im_data->user_data, 
    343                                                 tsx->status_code, 
     343                                                (pjsip_status_code)  
     344                                                    tsx->status_code, 
    344345                                                &tsx->status_text); 
    345346    } 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r1224 r1242  
    3939pj_status_t pjsua_media_subsys_init(const pjsua_media_config *cfg) 
    4040{ 
    41     pj_str_t codec_id; 
     41    pj_str_t codec_id = {NULL, 0}; 
    4242    unsigned opt; 
    4343    pj_status_t status; 
Note: See TracChangeset for help on using the changeset viewer.