- Timestamp:
- Feb 19, 2006 2:24:27 AM (19 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 1 added
- 11 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/compat/string.h
r182 r198 25 25 */ 26 26 27 /**28 * Native char type, which will be equal to wchar_t for Unicode29 * and char for ANSI.30 */31 #if defined(PJ_NATIVE_STRING_IS_UNICODE) && PJ_NATIVE_STRING_IS_UNICODE!=032 typedef wchar_t pj_char_t;33 #else34 typedef char pj_char_t;35 #endif36 27 37 28 #if defined(PJ_HAS_STRING_H) && PJ_HAS_STRING_H != 0 -
pjproject/trunk/pjmedia/build/Makefile
r171 r198 7 7 8 8 export PJMEDIA_LIB:=../lib/libpjmedia-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 9 export PJMEDIA_CODEC_LIB:=../lib/libpjmedia-codec-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 9 10 10 11 ############################################################################### … … 46 47 47 48 ############################################################################### 49 # Defines for building PJMEDIA-Codec library 50 # 51 export PJMEDIA_CODEC_SRCDIR = ../src/pjmedia-codec 52 export PJMEDIA_CODEC_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 53 gsm.o pjmedia-codec-lib.o \ 54 gsm/add.o gsm/code.o gsm/debug.o gsm/decode.o \ 55 gsm/gsm_create.o gsm/gsm_decode.o gsm/gsm_destroy.o \ 56 gsm/gsm_encode.o gsm/gsm_explode.o gsm/gsm_implode.o \ 57 gsm/gsm_option.o gsm/gsm_print.o gsm/long_term.o \ 58 gsm/lpc.o gsm/preprocess.o gsm/rpe.o gsm/short_term.o \ 59 gsm/table.o 60 export PJMEDIA_CODEC_CFLAGS += $(_CFLAGS) 61 62 63 ############################################################################### 48 64 # Defines for building test application 49 65 # … … 61 77 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 62 78 # 63 TARGETS := pjmedia 79 TARGETS := pjmedia pjmedia-codec 64 80 #pjmedia-test 65 81 … … 72 88 distclean: realclean 73 89 74 .PHONY: dep depend pjmedia pjmedia- test clean realclean distclean90 .PHONY: dep depend pjmedia pjmedia-codec pjmedia-test clean realclean distclean 75 91 76 92 pjmedia: 77 93 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $(PJMEDIA_LIB) 94 95 pjmedia-codec: 96 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $(PJMEDIA_CODEC_LIB) 78 97 79 98 pjmedia-test: $(PJMEDIA_LIB) … … 85 104 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $@ 86 105 106 .PHONY: ../lib/pjmedia-codec.ko 107 ../lib/pjmedia-codec.ko: 108 echo Making $@ 109 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ 110 87 111 .PHONY: ../lib/pjmedia-test.ko 88 112 ../lib/pjmedia-test.ko: … … 91 115 clean depend realclean: 92 116 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $@ 117 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ 93 118 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_TEST app=pjmedia-test $@ 119 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ 94 120 @if test "$@" == "depend"; then \ 95 121 echo '$(PJMEDIA_TEST_EXE): $(PJMEDIA_LIB)' >> .pjmedia-test-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ -
pjproject/trunk/pjmedia/build/os-win32.mak
r171 r198 9 9 # 10 10 export PJMEDIA_OBJS += $(PA_DIR)/pa_win_hostapis.o $(PA_DIR)/pa_win_util.o \ 11 $(PA_DIR)/pa_win_ ds.o11 $(PA_DIR)/pa_win_wmme.o 12 12 13 export OS_CFLAGS += -DPA_NO_ASIO 13 export OS_CFLAGS += -DPA_NO_ASIO -DPA_NO_DS -
pjproject/trunk/pjmedia/build/pjmedia.dsp
r188 r198 33 33 # PROP BASE Use_MFC 0 34 34 # PROP BASE Use_Debug_Libraries 0 35 # PROP BASE Output_Dir ".\output\pjmedia _i386_win32_vc6_release"36 # PROP BASE Intermediate_Dir ".\output\pjmedia _i386_win32_vc6_release"35 # PROP BASE Output_Dir ".\output\pjmedia-i386-win32-vc6-release" 36 # PROP BASE Intermediate_Dir ".\output\pjmedia-i386-win32-vc6-release" 37 37 # PROP BASE Target_Dir "" 38 38 # PROP Use_MFC 0 39 39 # PROP Use_Debug_Libraries 0 40 # PROP Output_Dir ".\output\pjmedia _i386_win32_vc6_release"41 # PROP Intermediate_Dir ".\output\pjmedia _i386_win32_vc6_release"40 # PROP Output_Dir ".\output\pjmedia-i386-win32-vc6-release" 41 # PROP Intermediate_Dir ".\output\pjmedia-i386-win32-vc6-release" 42 42 # PROP Target_Dir "" 43 43 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c … … 51 51 LIB32=link.exe -lib 52 52 # ADD BASE LIB32 /nologo 53 # ADD LIB32 /nologo /out:"../lib/pjmedia _vc6s.lib"53 # ADD LIB32 /nologo /out:"../lib/pjmedia-i386-win32-vc6-release.lib" 54 54 55 55 !ELSEIF "$(CFG)" == "pjmedia - Win32 Debug" … … 57 57 # PROP BASE Use_MFC 0 58 58 # PROP BASE Use_Debug_Libraries 1 59 # PROP BASE Output_Dir ".\output\pjmedia _i386_win32_vc6_debug"60 # PROP BASE Intermediate_Dir ".\output\pjmedia _i386_win32_vc6_debug"59 # PROP BASE Output_Dir ".\output\pjmedia-i386-win32-vc6-debug" 60 # PROP BASE Intermediate_Dir ".\output\pjmedia-i386-win32-vc6-debug" 61 61 # PROP BASE Target_Dir "" 62 62 # PROP Use_MFC 0 63 63 # PROP Use_Debug_Libraries 1 64 # PROP Output_Dir ".\output\pjmedia _i386_win32_vc6_debug"65 # PROP Intermediate_Dir ".\output\pjmedia _i386_win32_vc6_debug"64 # PROP Output_Dir ".\output\pjmedia-i386-win32-vc6-debug" 65 # PROP Intermediate_Dir ".\output\pjmedia-i386-win32-vc6-debug" 66 66 # PROP Target_Dir "" 67 67 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c … … 75 75 LIB32=link.exe -lib 76 76 # ADD BASE LIB32 /nologo 77 # ADD LIB32 /nologo /out:"../lib/pjmedia _vc6sd.lib"77 # ADD LIB32 /nologo /out:"../lib/pjmedia-i386-win32-vc6-debug.lib" 78 78 79 79 !ENDIF -
pjproject/trunk/pjmedia/build/pjmedia_codec.dsp
r183 r198 50 50 LIB32=link.exe -lib 51 51 # ADD BASE LIB32 /nologo 52 # ADD LIB32 /nologo /out:"..\lib\pjmedia-codec- vc6.lib"52 # ADD LIB32 /nologo /out:"..\lib\pjmedia-codec-i386-vc6-release.lib" 53 53 54 54 !ELSEIF "$(CFG)" == "pjmedia_codec - Win32 Debug" … … 73 73 LIB32=link.exe -lib 74 74 # ADD BASE LIB32 /nologo 75 # ADD LIB32 /nologo /out:"..\lib\pjmedia-codec- vc6d.lib"75 # ADD LIB32 /nologo /out:"..\lib\pjmedia-codec-i386-win32-vc6-debug.lib" 76 76 77 77 !ENDIF … … 90 90 # Begin Source File 91 91 92 SOURCE="..\src\pjmedia-codec\pjmedia-codec .c"92 SOURCE="..\src\pjmedia-codec\pjmedia-codec-lib.c" 93 93 # End Source File 94 94 # End Group -
pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c
r176 r198 281 281 sizeof(pjmedia_codec)); 282 282 PJ_ASSERT_RETURN(codec != NULL, PJ_ENOMEM); 283 codec->op = &gsm_op; 284 codec->factory = factory; 283 285 } 284 286 … … 414 416 return PJMEDIA_CODEC_EPCMTOOSHORT; 415 417 416 gsm_encode(codec->codec_data, ( constshort*)input->buf,418 gsm_encode(codec->codec_data, (short*)input->buf, 417 419 (unsigned char*)output->buf); 418 420 … … 441 443 442 444 gsm_decode(codec->codec_data, 443 ( constunsigned char*)input->buf,445 (unsigned char*)input->buf, 444 446 (short*)output->buf); 445 447 -
pjproject/trunk/pjmedia/src/pjmedia-codec/gsm/config.h
r176 r198 10 10 #define CONFIG_H 11 11 12 /*efine SIGHANDLER_T int / * signal handlers are void */13 /*efine HAS_SYSV_SIGNAL 1 / * sigs not blocked/reset? */12 /*efine SIGHANDLER_T int //* signal handlers are void */ 13 /*efine HAS_SYSV_SIGNAL 1 //* sigs not blocked/reset? */ 14 14 15 15 #define HAS_STDLIB_H 1 /* /usr/include/stdlib.h */ 16 /*efine HAS_LIMITS_H 1 / * /usr/include/limits.h */16 /*efine HAS_LIMITS_H 1 //* /usr/include/limits.h */ 17 17 #define HAS_FCNTL_H 1 /* /usr/include/fcntl.h */ 18 /*efine HAS_ERRNO_DECL 1 / * errno.h declares errno */18 /*efine HAS_ERRNO_DECL 1 //* errno.h declares errno */ 19 19 20 20 #define HAS_FSTAT 1 /* fstat syscall */ … … 23 23 #define HAS_FCHOWN 1 /* fchown syscall */ 24 24 #define HAS_CHOWN 1 /* chown syscall */ 25 /*efine HAS__FSETMODE 1 / * _fsetmode -- set file mode */25 /*efine HAS__FSETMODE 1 //* _fsetmode -- set file mode */ 26 26 27 27 #define HAS_STRING_H 1 /* /usr/include/string.h */ 28 /*efine HAS_STRINGS_H 1 / * /usr/include/strings.h */28 /*efine HAS_STRINGS_H 1 //* /usr/include/strings.h */ 29 29 30 30 #define HAS_UNISTD_H 1 /* /usr/include/unistd.h */ 31 31 #define HAS_UTIME 1 /* POSIX utime(path, times) */ 32 /*efine HAS_UTIMES 1 / * use utimes() syscall instead */32 /*efine HAS_UTIMES 1 //* use utimes() syscall instead */ 33 33 #define HAS_UTIME_H 1 /* UTIME header file */ 34 /*efine HAS_UTIMBUF 1 / * struct utimbuf */35 /*efine HAS_UTIMEUSEC 1 / * microseconds in utimbuf? */34 /*efine HAS_UTIMBUF 1 //* struct utimbuf */ 35 /*efine HAS_UTIMEUSEC 1 //* microseconds in utimbuf? */ 36 36 37 37 -
pjproject/trunk/pjsip/build/Makefile
r173 r198 6 6 PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 7 7 PJMEDIA_LIB:=../../pjmedia/lib/libpjmedia-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 8 PJMEDIA_CODEC_LIB:=../../pjmedia/lib/libpjmedia-codec-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 8 9 9 10 export PJSIP_LIB:=../lib/libpjsip-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 10 11 export PJSIP_UA_LIB:=../lib/libpjsip-ua-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 12 export PJSIP_SIMPLE_LIB:=../lib/libpjsip-simple-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 11 13 12 14 … … 20 22 $(HOST_CXXFLAGS) $(CXXFLAGS) 21 23 export _LDFLAGS := $(subst /,$(HOST_PSEP),$(PJSIP_UA_LIB)) \ 24 $(subst /,$(HOST_PSEP),$(PJSIP_SIMPLE_LIB)) \ 22 25 $(subst /,$(HOST_PSEP),$(PJSIP_LIB)) \ 26 $(subst /,$(HOST_PSEP),$(PJMEDIA_CODEC_LIB)) \ 23 27 $(subst /,$(HOST_PSEP),$(PJMEDIA_LIB)) \ 24 28 $(subst /,$(HOST_PSEP),$(PJLIB_UTIL_LIB)) \ 25 29 $(subst /,$(HOST_PSEP),$(PJLIB_LIB)) \ 26 30 $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 27 $(LDFLAGS) -lm 31 $(LDFLAGS) -lm -lwinmm 28 32 29 33 … … 51 55 52 56 ############################################################################### 57 # Defines for building PJSIP SIMPLE library 58 # 59 export PJSIP_SIMPLE_SRCDIR = ../src/pjsip-simple 60 export PJSIP_SIMPLE_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 61 errno.o evsub.o evsub_msg.o pidf.o presence.o xpidf.o 62 export PJSIP_SIMPLE_CFLAGS += $(_CFLAGS) 63 64 65 ############################################################################### 53 66 # Defines for building PJSUA 54 67 # 55 68 export PJSUA_SRCDIR = ../src/pjsua 56 69 export PJSUA_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 57 main.o pjsua_reg.o pjsua_inv.o pjsua_core.o 70 main.o pjsua_reg.o pjsua_inv.o pjsua_pres.o pjsua_opt.o \ 71 pjsua_core.o 58 72 export PJSUA_CFLAGS += $(_CFLAGS) 59 73 export PJSUA_LDFLAGS += $(_LDFLAGS) … … 67 81 # 68 82 # 69 TARGETS := pjsip pjsip-ua pjs ua83 TARGETS := pjsip pjsip-ua pjsip-simple pjsua 70 84 71 85 all: $(TARGETS) … … 85 99 $(MAKE) -f $(RULES_MAK) APP=PJSIP_UA app=pjsip-ua $(PJSIP_UA_LIB) 86 100 87 pjsua: $(PJSIP_LIB) $(PJSIP_UA_LIB) 101 pjsip-simple: 102 $(MAKE) -f $(RULES_MAK) APP=PJSIP_SIMPLE app=pjsip-simple $(PJSIP_SIMPLE_LIB) 103 104 pjsua: $(PJSIP_LIB) $(PJSIP_UA_LIB) $(PJSIP_SIMPLE_LIB) 88 105 $(MAKE) -f $(RULES_MAK) APP=PJSUA app=pjsua $(PJSUA_EXE) 89 106 … … 98 115 $(MAKE) -f $(RULES_MAK) APP=PJSIP_UA app=pjsip-ua $@ 99 116 117 .PHONY: ../lib/pjsip-simple.ko 118 ../lib/pjsip-simple.ko: 119 echo Making $@ 120 $(MAKE) -f $(RULES_MAK) APP=PJSIP_SIMPLE app=pjsip-simple $@ 121 100 122 .PHONY: ../lib/pjsua.ko 101 123 ../lib/pjsua.ko: … … 105 127 $(MAKE) -f $(RULES_MAK) APP=PJSIP app=pjsip $@ 106 128 $(MAKE) -f $(RULES_MAK) APP=PJSIP_UA app=pjsip-ua $@ 129 $(MAKE) -f $(RULES_MAK) APP=PJSIP_SIMPLE app=pjsip-simple $@ 107 130 $(MAKE) -f $(RULES_MAK) APP=PJSUA app=pjsua $@ 108 131 @if test "$@" == "depend"; then \ -
pjproject/trunk/pjsip/build/pjsip_simple.dsp
r197 r198 86 86 # Begin Source File 87 87 88 SOURCE="..\src\pjsip-simple\errno.c" 89 # End Source File 90 # Begin Source File 91 88 92 SOURCE="..\src\pjsip-simple\evsub.c" 89 93 # End Source File -
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r197 r198 569 569 case TIMER_TYPE_UAC_TERMINATE: 570 570 { 571 pjsip_event event;572 pj_str_t reason = { "unsubscribing", 13};573 574 PJSIP_EVENT_INIT_TIMER(event, entry);575 571 PJ_LOG(5,(sub->obj_name, "Timeout waiting for final NOTIFY. " 576 572 "Terminating..")); 577 set_state(sub, PJSIP_EVSUB_STATE_TERMINATED, NULL, &event);573 set_state(sub, PJSIP_EVSUB_STATE_TERMINATED, NULL, NULL); 578 574 } 579 575 break; … … 965 961 /* Fill up the header */ 966 962 switch (state) { 963 case PJSIP_EVSUB_STATE_NULL: 967 964 case PJSIP_EVSUB_STATE_SENT: 968 965 case PJSIP_EVSUB_STATE_ACCEPTED: -
pjproject/trunk/pjsip/src/pjsip-simple/presence.c
r197 r198 833 833 pj_stricmp(&ctype_hdr->media.subtype, &STR_XPIDF_XML)==0) 834 834 { 835 status = pres_parse_ pidf( pres, rdata, &pres->tmp_status);835 status = pres_parse_xpidf( pres, rdata, &pres->tmp_status); 836 836 } 837 837 else
Note: See TracChangeset
for help on using the changeset viewer.