- Timestamp:
- May 2, 2007 11:29:37 AM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 9 added
- 1 deleted
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/build.symbian/bld.inf
r1235 r1242 1 1 prj_mmpfiles 2 2 pjlib.mmp 3 //pjlib_util.mmp 4 //pjsip.mmp 5 //pjsip_simple.mmp 6 //pjsdp.mmp 7 //pjsip_ua.mmp 3 pjlib_util.mmp 4 pjnath.mmp 5 pjsdp.mmp 6 pjmedia.mmp 7 pjsip.mmp 8 pjsip_simple.mmp 9 pjsip_ua.mmp 8 10 //pjlib_test.mmp 9 11 //sipstateless.mmp 12 symbian_ua.mmp -
pjproject/trunk/build.symbian/pjlib.mmp
r1235 r1242 10 10 MACRO PJ_M_I386=1 11 11 MACRO PJ_SYMBIAN=1 12 MACRO PJ_EXPORTING13 12 14 13 // … … 58 57 SOURCE unicode_symbian.cpp 59 58 59 DOCUMENT os_symbian.h 60 61 DOCUMENT pj\\addr_resolv.h 62 DOCUMENT pj\\array.h 63 DOCUMENT pj\\assert.h 64 DOCUMENT pj\\config.h 65 DOCUMENT pj\\config_site.h 66 DOCUMENT pj\\config_site_sample.h 67 DOCUMENT pj\\ctype.h 68 DOCUMENT pj\\errno.h 69 DOCUMENT pj\\except.h 70 DOCUMENT pj\\file_access.h 71 DOCUMENT pj\\file_io.h 72 DOCUMENT pj\\guid.h 73 DOCUMENT pj\\hash.h 74 DOCUMENT pj\\ioqueue.h 75 DOCUMENT pj\\ip_helper.h 76 DOCUMENT pj\\list.h 77 DOCUMENT pj\\lock.h 78 DOCUMENT pj\\log.h 79 DOCUMENT pj\\os.h 80 DOCUMENT pj\\pool.h 81 DOCUMENT pj\\pool_buf.h 82 DOCUMENT pj\\rand.h 83 DOCUMENT pj\\rbtree.h 84 DOCUMENT pj\\sock.h 85 DOCUMENT pj\\sock_select.h 86 DOCUMENT pj\\string.h 87 DOCUMENT pj\\timer.h 88 DOCUMENT pj\\types.h 89 DOCUMENT pj\\unicode.h 60 90 61 91 SYSTEMINCLUDE ..\pjlib\include -
pjproject/trunk/build.symbian/pjlib_test.mmp
r1238 r1242 8 8 MACRO PJ_M_I386=1 9 9 MACRO PJ_SYMBIAN=1 10 MACRO PJ_IMPORTING11 10 12 11 OPTION CW -lang c++ -
pjproject/trunk/build.symbian/pjlib_util.mmp
r1239 r1242 8 8 MACRO PJ_M_I386=1 9 9 MACRO PJ_SYMBIAN=1 10 MACRO PJ_IMPORTING11 10 12 11 OPTION CW -lang c++ 13 12 13 // 14 14 // PJLIB-UTIL files 15 15 // 16 16 SOURCE crc32.c 17 17 SOURCE dns.c … … 31 31 SOURCE xml.c 32 32 33 // 34 // Header files 35 // 36 DOCUMENT pjlib-util\\config.h 37 DOCUMENT pjlib-util\\crc32.h 38 DOCUMENT pjlib-util\\dns.h 39 DOCUMENT pjlib-util\\errno.h 40 DOCUMENT pjlib-util\\getopt.h 41 DOCUMENT pjlib-util\\hmac_md5.h 42 DOCUMENT pjlib-util\hmac_sha1.h 43 DOCUMENT pjlib-util\md5.h 44 DOCUMENT pjlib-util\resolver.h 45 DOCUMENT pjlib-util\scanner.h 46 DOCUMENT pjlib-util\sha1.h 47 DOCUMENT pjlib-util\srv_resolver.h 48 DOCUMENT pjlib-util\string.h 49 DOCUMENT pjlib-util\stun_simple.h 50 DOCUMENT pjlib-util\types.h 51 DOCUMENT pjlib-util\xml.h 52 53 33 54 SYSTEMINCLUDE ..\pjlib\include 34 55 SYSTEMINCLUDE ..\pjlib-util\include -
pjproject/trunk/build.symbian/pjnath.mmp
r1239 r1242 8 8 MACRO PJ_M_I386=1 9 9 MACRO PJ_SYMBIAN=1 10 MACRO PJ_IMPORTING11 10 12 OPTION CW -lang c++11 //OPTION CW -lang c++ 13 12 13 // 14 14 // PJNATH files 15 15 // 16 16 SOURCE errno.c 17 17 SOURCE ice_session.c … … 22 22 SOURCE stun_session.c 23 23 SOURCE stun_transaction.c 24 25 // 26 // Include files 27 // 28 DOCUMENT pjnath\config.h 29 DOCUMENT pjnath\\errno.h 30 DOCUMENT pjnath\\ice_session.h 31 DOCUMENT pjnath\\ice_strans.h 32 DOCUMENT pjnath\\stun_auth.h 33 DOCUMENT pjnath\\stun_config.h 34 DOCUMENT pjnath\\stun_msg.h 35 DOCUMENT pjnath\\stun_session.h 36 DOCUMENT pjnath\\stun_transaction.h 37 DOCUMENT pjnath\\types.h 38 39 24 40 25 41 SYSTEMINCLUDE ..\pjlib\include -
pjproject/trunk/build.symbian/pjsdp.mmp
r1240 r1242 10 10 MACRO PJ_M_I386=1 11 11 MACRO PJ_SYMBIAN=1 12 MACRO PJ_EXPORTING13 12 14 13 // -
pjproject/trunk/build.symbian/pjsip.mmp
r1240 r1242 8 8 MACRO PJ_M_I386=1 9 9 MACRO PJ_SYMBIAN=1 10 MACRO PJ_IMPORTING11 10 12 11 OPTION CW -lang c++ -
pjproject/trunk/build.symbian/pjsip_simple.mmp
r1241 r1242 8 8 MACRO PJ_M_I386=1 9 9 MACRO PJ_SYMBIAN=1 10 MACRO PJ_IMPORTING11 10 12 11 OPTION CW -lang c++ -
pjproject/trunk/build.symbian/pjsip_ua.mmp
r1240 r1242 8 8 MACRO PJ_M_I386=1 9 9 MACRO PJ_SYMBIAN=1 10 MACRO PJ_IMPORTING11 10 12 11 //OPTION CW -lang c++ -
pjproject/trunk/build.symbian/pjstun_client.mmp
r1239 r1242 8 8 MACRO PJ_M_I386=1 9 9 MACRO PJ_SYMBIAN=1 10 MACRO PJ_IMPORTING11 10 12 11 OPTION CW -lang c++ -
pjproject/trunk/pjlib-util/include/pjlib-util.h
r1102 r1242 53 53 #include <pjlib-util/stun_simple.h> 54 54 55 /**56 * @addtogroup PJLIB_UTIL57 * @{58 */59 60 PJ_BEGIN_DECL61 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_DECL75 76 55 77 56 #endif /* __PJLIB_UTIL_H__ */ -
pjproject/trunk/pjlib-util/include/pjlib-util/types.h
r974 r1242 30 30 /** 31 31 * @defgroup PJLIB_UTIL PJLIB-UTIL Library 32 * @{ 32 33 */ 34 35 PJ_BEGIN_DECL 36 37 /** 38 * Initialize PJLIB UTIL (defined in errno.c) 39 * 40 * @return PJ_SUCCESS on success. 41 */ 42 PJ_DECL(pj_status_t) pjlib_util_init(void); 43 44 45 46 PJ_END_DECL 47 48 49 /** 50 * @} 51 */ 52 33 53 34 54 /** -
pjproject/trunk/pjlib-util/src/pjlib-util/errno.c
r1037 r1242 18 18 */ 19 19 #include <pjlib-util/errno.h> 20 #include <pjlib-util/types.h> 20 21 #include <pj/string.h> 21 22 -
pjproject/trunk/pjlib/include/pj/compat/os_symbian.h
r1235 r1242 146 146 #include <e32def.h> 147 147 148 /* 148 149 #if defined(PJ_EXPORTING) 149 150 # define PJ_EXPORT_IMPORT EXPORT_C … … 153 154 # error "Must define either PJ_EXPORTING or PJ_IMPORTING" 154 155 #endif 156 */ 155 157 156 158 #endif /* __PJ_COMPAT_OS_SYMBIAN_H__ */ -
pjproject/trunk/pjlib/include/pj/config_site_sample.h
r1240 r1242 31 31 */ 32 32 #if defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0 33 34 # undef PJ_HAS_FLOATING_POINT 35 # define PJ_HAS_FLOATING_POINT 0 36 33 37 # 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 34 46 #endif 35 47 -
pjproject/trunk/pjlib/include/pj/except.h
r1235 r1242 246 246 ****************************************************************************/ 247 247 248 /* To include this file, the source file must be compiled as 249 * C++ code! 250 */ 251 #ifdef __cplusplus 252 248 253 class TPjException 249 254 { … … 261 266 #define PJ_GET_EXCEPTION() pj_excp_.code_ 262 267 268 #endif /* __cplusplus */ 269 263 270 #else 264 271 /***************************************************************************** -
pjproject/trunk/pjlib/include/pj/pool_buf.h
r974 r1242 71 71 */ 72 72 73 PJ_BEGIN_DECL 73 74 74 75 /** … … 94 95 pj_size_t size); 95 96 97 PJ_END_DECL 98 96 99 /** 97 100 * @} -
pjproject/trunk/pjlib/src/pj/exception_symbian.cpp
r1235 r1242 35 35 #endif /* PJ_HAS_EXCEPTION_NAMES */ 36 36 37 38 //#if !defined(PJ_EXCEPTION_USE_WIN32_SEH) || PJ_EXCEPTION_USE_WIN32_SEH==039 #if 040 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 #endif75 37 76 38 #if defined(PJ_HAS_EXCEPTION_NAMES) && PJ_HAS_EXCEPTION_NAMES != 0 -
pjproject/trunk/pjlib/src/pj/os_core_symbian.cpp
r1235 r1242 271 271 PJ_DEF(pj_status_t) pj_init(void) 272 272 { 273 pj_status_t status; 274 273 275 pj_ansi_strcpy(main_thread.obj_name, "pjthread"); 274 276 … … 281 283 PJ_LOG(4,(THIS_FILE, "Initializing PJLIB for Symbian OS..")); 282 284 283 TInt err; 285 TInt err; 284 286 err = os->Initialize(); 285 287 if (err != KErrNone) 286 288 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; 287 296 288 297 PJ_LOG(5,(THIS_FILE, "PJLIB initialized.")); … … 308 317 PJ_DEF(void) pj_shutdown(void) 309 318 { 310 unsigned i;311 312 319 /* 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 } 317 324 318 325 /* Free exception ID */ -
pjproject/trunk/pjlib/src/pjlib-test/errno.c
r1238 r1242 71 71 { 72 72 enum { CUT = 6 }; 73 pj_status_t rc ;73 pj_status_t rc = 0; 74 74 char errbuf[256]; 75 75 76 76 PJ_LOG(3,(THIS_FILE, "...errno test: check the msg carefully")); 77 77 78 PJ_UNUSED_ARG(rc); 79 78 80 /* 79 81 * Windows platform error. -
pjproject/trunk/pjmedia/src/pjmedia/codec.c
r974 r1242 323 323 codec_id->slen) == 0) 324 324 { 325 mgr->codec_desc[i].prio = prio;325 mgr->codec_desc[i].prio = (pjmedia_codec_priority) prio; 326 326 ++found; 327 327 } -
pjproject/trunk/pjmedia/src/pjmedia/g711.c
r1177 r1242 373 373 { 374 374 struct g711_private *priv = codec->codec_data; 375 int i ;375 int i = 0; 376 376 377 377 PJ_ASSERT_RETURN(factory==&g711_factory.base, PJ_EINVAL); -
pjproject/trunk/pjmedia/src/pjmedia/resample_resample.c
r1177 r1242 218 218 #else /* PJMEDIA_HAS_LIBRESAMPLE */ 219 219 220 int pjmedia_resample_resample_excluded; 220 /* 221 * This is the configuration when sample rate conversion is disabled. 222 */ 223 struct pjmedia_resample 224 { 225 unsigned samples_per_frame; 226 }; 227 228 PJ_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 255 PJ_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 262 PJ_DEF(unsigned) pjmedia_resample_get_input_size(pjmedia_resample *resample) 263 { 264 return resample->samples_per_frame; 265 } 266 267 PJ_DEF(void) pjmedia_resample_destroy(pjmedia_resample *resample) 268 { 269 PJ_UNUSED_ARG(resample); 270 } 221 271 222 272 #endif /* PJMEDIA_HAS_LIBRESAMPLE */ -
pjproject/trunk/pjnath/include/pjnath/ice_session.h
r1152 r1242 17 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 #ifndef __PJNATH_ICE_S OCK_H__20 #define __PJNATH_ICE_S OCK_H__19 #ifndef __PJNATH_ICE_SESSION_H__ 20 #define __PJNATH_ICE_SESSION_H__ 21 21 22 22 /** … … 751 751 752 752 753 #endif /* __PJNATH_ICE_S OCK_H__ */754 753 #endif /* __PJNATH_ICE_SESSION_H__ */ 754 -
pjproject/trunk/pjnath/include/pjnath/ice_strans.h
r1140 r1242 17 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 #ifndef __PJNATH_ICE_STR EAM_TRANSPORT_H__20 #define __PJNATH_ICE_STR EAM_TRANSPORT_H__19 #ifndef __PJNATH_ICE_STRANS_H__ 20 #define __PJNATH_ICE_STRANS_H__ 21 21 22 22 … … 588 588 589 589 590 #endif /* __PJNATH_ICE_STR EAM_TRANSPORT_H__ */591 590 #endif /* __PJNATH_ICE_STRANS_H__ */ 591 -
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r982 r1242 170 170 { 171 171 if (cause_code > inv->cause) { 172 inv->cause = cause_code;172 inv->cause = (pjsip_status_code) cause_code; 173 173 if (cause_text) 174 174 pj_strdup(inv->pool, &inv->cause_text, cause_text); … … 462 462 inv->options = options; 463 463 inv->notify = PJ_TRUE; 464 inv->cause = 0;464 inv->cause = (pjsip_status_code) 0; 465 465 466 466 /* Object name will use the same dialog pointer. */ … … 884 884 inv->options = options; 885 885 inv->notify = PJ_TRUE; 886 inv->cause = 0;886 inv->cause = (pjsip_status_code) 0; 887 887 888 888 /* Object name will use the same dialog pointer. */ -
pjproject/trunk/pjsip/src/pjsip-ua/sip_xfer.c
r974 r1242 59 59 60 60 const pjsip_method pjsip_refer_method = { 61 PJSIP_REFER_METHOD,61 (pjsip_method_e) PJSIP_REFER_METHOD, 62 62 { "REFER", 5} 63 63 }; -
pjproject/trunk/pjsip/src/pjsip/sip_transport_udp.c
r1241 r1242 17 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 #include <pjsip/sip_transport .h>19 #include <pjsip/sip_transport_udp.h> 20 20 #include <pjsip/sip_endpoint.h> 21 21 #include <pjsip/sip_errno.h> -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r1127 r1242 683 683 684 684 if (acc->reg_last_err) { 685 info->status = acc->reg_last_err;685 info->status = (pjsip_status_code) acc->reg_last_err; 686 686 pj_strerror(acc->reg_last_err, info->buf_, sizeof(info->buf_)); 687 687 info->status_text = pj_str(info->buf_); 688 688 } else if (acc->reg_last_code) { 689 689 if (info->has_registration) { 690 info->status = acc->reg_last_code;690 info->status = (pjsip_status_code) acc->reg_last_code; 691 691 info->status_text = *pjsip_get_status_text(acc->reg_last_code); 692 692 } else { 693 info->status = 0;693 info->status = (pjsip_status_code) 0; 694 694 info->status_text = pj_str("not registered"); 695 695 } 696 696 } else if (acc->cfg.reg_uri.slen) { 697 info->status = 100;697 info->status = PJSIP_SC_TRYING; 698 698 info->status_text = pj_str("In Progress"); 699 699 } else { 700 info->status = 0;700 info->status = (pjsip_status_code) 0; 701 701 info->status_text = pj_str("does not register"); 702 702 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r1134 r1242 85 85 call->session = NULL; 86 86 call->xfer_sub = NULL; 87 call->last_code = 0;87 call->last_code = (pjsip_status_code) 0; 88 88 call->conf_slot = PJSUA_INVALID_ID; 89 89 call->last_text.ptr = call->last_text_buf_; … … 1947 1947 if (call->res_time.sec == 0) 1948 1948 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; 1950 1951 pj_strncpy(&call->last_text, 1951 1952 &e->body.tsx_state.tsx->status_text, … … 1960 1961 pj_gettimeofday(&call->res_time); 1961 1962 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; 1963 1965 pj_strncpy(&call->last_text, 1964 1966 &e->body.tsx_state.tsx->status_text, … … 1967 1969 break; 1968 1970 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; 1970 1973 pj_strncpy(&call->last_text, 1971 1974 &e->body.tsx_state.tsx->status_text, … … 2535 2538 2536 2539 if (code < 200) 2537 code = 200;2540 code = PJSIP_SC_OK; 2538 2541 if (code >= 300) { 2539 2542 /* Application rejects call transfer request */ … … 2776 2779 &im_data->body, 2777 2780 im_data->user_data, 2778 tsx->status_code, 2781 (pjsip_status_code) 2782 tsx->status_code, 2779 2783 &tsx->status_text); 2780 2784 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_im.c
r1148 r1242 36 36 const pjsip_method pjsip_message_method = 37 37 { 38 PJSIP_MESSAGE_METHOD,38 (pjsip_method_e) PJSIP_MESSAGE_METHOD, 39 39 { "MESSAGE", 7 } 40 40 }; … … 341 341 &im_data->body, 342 342 im_data->user_data, 343 tsx->status_code, 343 (pjsip_status_code) 344 tsx->status_code, 344 345 &tsx->status_text); 345 346 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r1224 r1242 39 39 pj_status_t pjsua_media_subsys_init(const pjsua_media_config *cfg) 40 40 { 41 pj_str_t codec_id ;41 pj_str_t codec_id = {NULL, 0}; 42 42 unsigned opt; 43 43 pj_status_t status;
Note: See TracChangeset
for help on using the changeset viewer.