Changeset 1417
- Timestamp:
- Aug 16, 2007 10:11:44 AM (17 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 8 added
- 76 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/build.symbian/bld.inf
r1405 r1417 2 2 winscw 3 3 //armv5 4 gcce4 //gcce 5 5 6 6 prj_mmpfiles … … 14 14 pjsip_simple.mmp 15 15 pjsip_ua.mmp 16 pjlib_test.mmp17 sipstateless.mmp18 16 pjsua_lib.mmp 19 17 null_audio.mmp -
pjproject/trunk/build.symbian/makedef.sh
r1410 r1417 14 14 fi 15 15 16 TARGET=`grep -w TARGET$MMP | awk '{print $2}' | awk -F '.' '{print $1}' | head -1`16 TARGET=`grep -w '^TARGET' $MMP | awk '{print $2}' | awk -F '.' '{print $1}' | head -1` 17 17 DEFFILE="${TARGET}U.def" 18 SOURCES=`grep -w SOURCE$MMP | awk '{print $2}' | tr '\\\\' '/'`19 SOURCEPATH=`grep -w SOURCEPATH$MMP | tr '\\\\' '/' | awk '{print $2}'`20 INCPATH=`grep INCLUDE$MMP | awk '{print $2}' | grep pj | tr '\\\\' '/'`18 SOURCES=`grep -w '^SOURCE' $MMP | awk '{print $2}' | tr '\\\\' '/'` 19 SOURCEPATH=`grep -w '^SOURCEPATH' $MMP | tr '\\\\' '/' | awk '{print $2}'` 20 INCPATH=`grep 'INCLUDE' $MMP | awk '{print $2}' | grep pj | tr '\\\\' '/'` 21 21 INCLUDE="" 22 22 for INC in $INCPATH; do 23 23 INCLUDE=`echo $INCLUDE -I$INC` 24 24 done 25 26 #-- debug -- 27 #echo TARGET=$TARGET 28 #echo SOURCES=$SOURCES 29 #echo SOURCEPATH=$SOURCEPATH 30 #echo INCLUDE=$INCLUDE 31 #-- end -- 25 32 26 33 echo > tmpnames.def -
pjproject/trunk/build.symbian/null_audio.mmp
r1253 r1417 1 #if defined(EKA2) 2 3 TARGET null_audio.dll 4 TARGETTYPE dll 5 UID 0x1000008d 0xA0004294 6 7 CAPABILITY None 8 LIBRARY pjlib.lib charconv.lib euser.lib estlib.lib 9 MACRO PJ_DLL 10 MACRO PJ_EXPORTING 11 12 DEFFILE .\null_audio.def 13 14 #else 15 1 16 TARGET null_audio.lib 2 17 TARGETTYPE lib 3 18 UID 0x100039CE 0x10004299 4 19 VENDORID 0x70000001 20 21 #endif 5 22 6 23 SOURCEPATH ..\pjmedia\src\pjmedia -
pjproject/trunk/build.symbian/pjlibU.def
r1410 r1417 5 5 PJ_FD_SET @ 4 NONAME 6 6 PJ_FD_ZERO @ 5 NONAME 7 PJ_VERSION @ 6 NONAME 8 pj_AF_INET @ 7 NONAME 9 pj_AF_INET6 @ 8 NONAME 10 pj_AF_IRDA @ 9 NONAME 11 pj_AF_PACKET @ 10 NONAME 12 pj_AF_UNIX @ 11 NONAME 13 pj_IPTOS_LOWDELAY @ 12 NONAME 14 pj_IPTOS_MINCOST @ 13 NONAME 15 pj_IPTOS_RELIABILITY @ 14 NONAME 16 pj_IPTOS_THROUGHPUT @ 15 NONAME 17 pj_IP_TOS @ 16 NONAME 18 pj_MSG_DONTROUTE @ 17 NONAME 19 pj_MSG_OOB @ 18 NONAME 20 pj_MSG_PEEK @ 19 NONAME 21 pj_SOCK_DGRAM @ 20 NONAME 22 pj_SOCK_RAW @ 21 NONAME 23 pj_SOCK_RDM @ 22 NONAME 24 pj_SOCK_STREAM @ 23 NONAME 25 pj_SOL_IP @ 24 NONAME 26 pj_SOL_IPV6 @ 25 NONAME 27 pj_SOL_SOCKET @ 26 NONAME 28 pj_SOL_TCP @ 27 NONAME 29 pj_SOL_UDP @ 28 NONAME 30 pj_SO_RCVBUF @ 29 NONAME 31 pj_SO_SNDBUF @ 30 NONAME 32 pj_SO_TYPE @ 31 NONAME 33 pj_ansi_to_unicode @ 32 NONAME 34 pj_array_erase @ 33 NONAME 35 pj_array_find @ 34 NONAME 36 pj_array_insert @ 35 NONAME 37 pj_atexit @ 36 NONAME 38 pj_atomic_add @ 37 NONAME 39 pj_atomic_add_and_get @ 38 NONAME 40 pj_atomic_create @ 39 NONAME 41 pj_atomic_dec @ 40 NONAME 42 pj_atomic_dec_and_get @ 41 NONAME 43 pj_atomic_destroy @ 42 NONAME 44 pj_atomic_get @ 43 NONAME 45 pj_atomic_inc @ 44 NONAME 46 pj_atomic_inc_and_get @ 45 NONAME 47 pj_atomic_set @ 46 NONAME 48 pj_caching_pool_destroy @ 47 NONAME 49 pj_caching_pool_init @ 48 NONAME 50 pj_create_random_string @ 49 NONAME 51 pj_create_unique_string @ 50 NONAME 52 pj_dump_config @ 51 NONAME 53 pj_elapsed_cycle @ 52 NONAME 54 pj_elapsed_msec @ 53 NONAME 55 pj_elapsed_nanosec @ 54 NONAME 56 pj_elapsed_time @ 55 NONAME 57 pj_elapsed_usec @ 56 NONAME 58 pj_enter_critical_section @ 57 NONAME 59 pj_enum_ip_interface @ 58 NONAME 60 pj_enum_ip_route @ 59 NONAME 61 pj_exception_id_alloc @ 60 NONAME 62 pj_exception_id_free @ 61 NONAME 63 pj_exception_id_name @ 62 NONAME 64 pj_fifobuf_alloc @ 63 NONAME 65 pj_fifobuf_free @ 64 NONAME 66 pj_fifobuf_init @ 65 NONAME 67 pj_fifobuf_max_size @ 66 NONAME 68 pj_fifobuf_unalloc @ 67 NONAME 69 pj_file_close @ 68 NONAME 70 pj_file_delete @ 69 NONAME 71 pj_file_exists @ 70 NONAME 72 pj_file_flush @ 71 NONAME 73 pj_file_getpos @ 72 NONAME 74 pj_file_getstat @ 73 NONAME 75 pj_file_move @ 74 NONAME 76 pj_file_open @ 75 NONAME 77 pj_file_read @ 76 NONAME 78 pj_file_setpos @ 77 NONAME 79 pj_file_size @ 78 NONAME 80 pj_file_write @ 79 NONAME 81 pj_generate_unique_string @ 80 NONAME 82 pj_get_netos_error @ 81 NONAME 83 pj_get_os_error @ 82 NONAME 84 pj_get_timestamp @ 83 NONAME 85 pj_get_timestamp_freq @ 84 NONAME 86 pj_get_version @ 85 NONAME 87 pj_gethostaddr @ 86 NONAME 88 pj_gethostbyname @ 87 NONAME 89 pj_gethostip @ 88 NONAME 90 pj_gethostname @ 89 NONAME 91 pj_getpid @ 90 NONAME 92 pj_gettimeofday @ 91 NONAME 93 pj_hash_calc @ 92 NONAME 94 pj_hash_calc_tolower @ 93 NONAME 95 pj_hash_count @ 94 NONAME 96 pj_hash_create @ 95 NONAME 97 pj_hash_first @ 96 NONAME 98 pj_hash_get @ 97 NONAME 99 pj_hash_next @ 98 NONAME 100 pj_hash_set @ 99 NONAME 101 pj_hash_set_np @ 100 NONAME 102 pj_hash_this @ 101 NONAME 103 pj_htonl @ 102 NONAME 104 pj_htons @ 103 NONAME 105 pj_inet_addr @ 104 NONAME 106 pj_inet_addr2 @ 105 NONAME 107 pj_inet_aton @ 106 NONAME 108 pj_inet_ntoa @ 107 NONAME 109 pj_init @ 108 NONAME 110 pj_ioqueue_accept @ 109 NONAME 111 pj_ioqueue_connect @ 110 NONAME 112 pj_ioqueue_create @ 111 NONAME 113 pj_ioqueue_destroy @ 112 NONAME 114 pj_ioqueue_get_user_data @ 113 NONAME 115 pj_ioqueue_is_pending @ 114 NONAME 116 pj_ioqueue_name @ 115 NONAME 117 pj_ioqueue_op_key_init @ 116 NONAME 118 pj_ioqueue_poll @ 117 NONAME 119 pj_ioqueue_post_completion @ 118 NONAME 120 pj_ioqueue_recv @ 119 NONAME 121 pj_ioqueue_recvfrom @ 120 NONAME 122 pj_ioqueue_register_sock @ 121 NONAME 123 pj_ioqueue_send @ 122 NONAME 124 pj_ioqueue_sendto @ 123 NONAME 125 pj_ioqueue_set_lock @ 124 NONAME 126 pj_ioqueue_set_user_data @ 125 NONAME 127 pj_ioqueue_unregister @ 126 NONAME 128 pj_leave_critical_section @ 127 NONAME 129 pj_list_erase @ 128 NONAME 130 pj_list_find_node @ 129 NONAME 131 pj_list_insert_after @ 130 NONAME 132 pj_list_insert_before @ 131 NONAME 133 pj_list_insert_nodes_after @ 132 NONAME 134 pj_list_insert_nodes_before @ 133 NONAME 135 pj_list_merge_first @ 134 NONAME 136 pj_list_merge_last @ 135 NONAME 137 pj_list_search @ 136 NONAME 138 pj_list_size @ 137 NONAME 139 pj_lock_acquire @ 138 NONAME 140 pj_lock_create_null_mutex @ 139 NONAME 141 pj_lock_create_recursive_mutex @ 140 NONAME 142 pj_lock_create_semaphore @ 141 NONAME 143 pj_lock_create_simple_mutex @ 142 NONAME 144 pj_lock_destroy @ 143 NONAME 145 pj_lock_release @ 144 NONAME 146 pj_lock_tryacquire @ 145 NONAME 147 pj_log @ 146 NONAME 148 pj_log_1 @ 147 NONAME 149 pj_log_2 @ 148 NONAME 150 pj_log_3 @ 149 NONAME 151 pj_log_4 @ 150 NONAME 152 pj_log_5 @ 151 NONAME 153 pj_log_get_decor @ 152 NONAME 154 pj_log_get_level @ 153 NONAME 155 pj_log_get_log_func @ 154 NONAME 156 pj_log_set_decor @ 155 NONAME 157 pj_log_set_level @ 156 NONAME 158 pj_log_set_log_func @ 157 NONAME 159 pj_log_write @ 158 NONAME 160 pj_mutex_create @ 159 NONAME 161 pj_mutex_create_recursive @ 160 NONAME 162 pj_mutex_create_simple @ 161 NONAME 163 pj_mutex_destroy @ 162 NONAME 164 pj_mutex_lock @ 163 NONAME 165 pj_mutex_trylock @ 164 NONAME 166 pj_mutex_unlock @ 165 NONAME 167 pj_ntohl @ 166 NONAME 168 pj_ntohs @ 167 NONAME 169 pj_pool_alloc @ 168 NONAME 170 pj_pool_alloc_from_block @ 169 NONAME 171 pj_pool_allocate_find @ 170 NONAME 172 pj_pool_calloc @ 171 NONAME 173 pj_pool_create @ 172 NONAME 174 pj_pool_create_int @ 173 NONAME 175 pj_pool_create_on_buf @ 174 NONAME 176 pj_pool_destroy_int @ 175 NONAME 177 pj_pool_factory_default_policy @ 176 NONAME 178 pj_pool_factory_get_default_policy @ 177 NONAME 179 pj_pool_get_capacity @ 178 NONAME 180 pj_pool_get_used_size @ 179 NONAME 181 pj_pool_getobjname @ 180 NONAME 182 pj_pool_init_int @ 181 NONAME 183 pj_pool_release @ 182 NONAME 184 pj_pool_reset @ 183 NONAME 185 pj_rand @ 184 NONAME 186 pj_rbtree_erase @ 185 NONAME 187 pj_rbtree_find @ 186 NONAME 188 pj_rbtree_first @ 187 NONAME 189 pj_rbtree_init @ 188 NONAME 190 pj_rbtree_insert @ 189 NONAME 191 pj_rbtree_last @ 190 NONAME 192 pj_rbtree_max_height @ 191 NONAME 193 pj_rbtree_min_height @ 192 NONAME 194 pj_rbtree_next @ 193 NONAME 195 pj_rbtree_prev @ 194 NONAME 196 pj_register_strerror @ 195 NONAME 197 pj_rwmutex_create @ 196 NONAME 198 pj_rwmutex_destroy @ 197 NONAME 199 pj_rwmutex_lock_read @ 198 NONAME 200 pj_rwmutex_lock_write @ 199 NONAME 201 pj_rwmutex_unlock_read @ 200 NONAME 202 pj_rwmutex_unlock_write @ 201 NONAME 203 pj_sem_create @ 202 NONAME 204 pj_sem_destroy @ 203 NONAME 205 pj_sem_post @ 204 NONAME 206 pj_sem_trywait @ 205 NONAME 207 pj_sem_wait @ 206 NONAME 208 pj_set_netos_error @ 207 NONAME 209 pj_set_os_error @ 208 NONAME 210 pj_shutdown @ 209 NONAME 211 pj_sock_accept @ 210 NONAME 212 pj_sock_bind @ 211 NONAME 213 pj_sock_bind_in @ 212 NONAME 214 pj_sock_close @ 213 NONAME 215 pj_sock_connect @ 214 NONAME 216 pj_sock_getpeername @ 215 NONAME 217 pj_sock_getsockname @ 216 NONAME 218 pj_sock_getsockopt @ 217 NONAME 219 pj_sock_listen @ 218 NONAME 220 pj_sock_recv @ 219 NONAME 221 pj_sock_recvfrom @ 220 NONAME 222 pj_sock_select @ 221 NONAME 223 pj_sock_send @ 222 NONAME 224 pj_sock_sendto @ 223 NONAME 225 pj_sock_setsockopt @ 224 NONAME 226 pj_sock_shutdown @ 225 NONAME 227 pj_sock_socket @ 226 NONAME 228 pj_sockaddr_in_init @ 227 NONAME 229 pj_sockaddr_in_set_str_addr @ 228 NONAME 230 pj_srand @ 229 NONAME 231 pj_str @ 230 NONAME 232 pj_strassign @ 231 NONAME 233 pj_strcat @ 232 NONAME 234 pj_strcat2 @ 233 NONAME 235 pj_strcmp @ 234 NONAME 236 pj_strcmp2 @ 235 NONAME 237 pj_strcpy @ 236 NONAME 238 pj_strcpy2 @ 237 NONAME 239 pj_strdup @ 238 NONAME 240 pj_strdup2 @ 239 NONAME 241 pj_strdup2_with_null @ 240 NONAME 242 pj_strdup3 @ 241 NONAME 243 pj_strdup_with_null @ 242 NONAME 244 pj_strerror @ 243 NONAME 245 pj_stricmp @ 244 NONAME 246 pj_stricmp2 @ 245 NONAME 247 pj_strltrim @ 246 NONAME 248 pj_strncmp @ 247 NONAME 249 pj_strncmp2 @ 248 NONAME 250 pj_strncpy @ 249 NONAME 251 pj_strncpy_with_null @ 250 NONAME 252 pj_strnicmp @ 251 NONAME 253 pj_strnicmp2 @ 252 NONAME 254 pj_strrtrim @ 253 NONAME 255 pj_strtoul @ 254 NONAME 256 pj_strtoul2 @ 255 NONAME 257 pj_strtrim @ 256 NONAME 258 pj_symbianos_poll @ 257 NONAME 259 pj_thread_create @ 258 NONAME 260 pj_thread_destroy @ 259 NONAME 261 pj_thread_get_name @ 260 NONAME 262 pj_thread_join @ 261 NONAME 263 pj_thread_local_alloc @ 262 NONAME 264 pj_thread_local_free @ 263 NONAME 265 pj_thread_local_get @ 264 NONAME 266 pj_thread_local_set @ 265 NONAME 267 pj_thread_register @ 266 NONAME 268 pj_thread_resume @ 267 NONAME 269 pj_thread_sleep @ 268 NONAME 270 pj_thread_this @ 269 NONAME 271 pj_time_decode @ 270 NONAME 272 pj_time_encode @ 271 NONAME 273 pj_time_gmt_to_local @ 272 NONAME 274 pj_time_local_to_gmt @ 273 NONAME 275 pj_time_val_normalize @ 274 NONAME 276 pj_timer_entry_init @ 275 NONAME 277 pj_timer_heap_cancel @ 276 NONAME 278 pj_timer_heap_count @ 277 NONAME 279 pj_timer_heap_create @ 278 NONAME 280 pj_timer_heap_destroy @ 279 NONAME 281 pj_timer_heap_earliest_time @ 280 NONAME 282 pj_timer_heap_mem_size @ 281 NONAME 283 pj_timer_heap_poll @ 282 NONAME 284 pj_timer_heap_schedule @ 283 NONAME 285 pj_timer_heap_set_lock @ 284 NONAME 286 pj_timer_heap_set_max_timed_out_per_poll @ 285 NONAME 287 pj_unicode_to_ansi @ 286 NONAME 288 pj_utoa @ 287 NONAME 289 pj_utoa_pad @ 288 NONAME 290 platform_strerror @ 289 NONAME 291 snprintf @ 290 NONAME 292 vsnprintf @ 291 NONAME 7 PJ_GUID_STRING_LENGTH @ 6 NONAME 8 PJ_NO_MEMORY_EXCEPTION @ 7 NONAME 9 PJ_VERSION @ 8 NONAME 10 pj_AF_INET @ 9 NONAME 11 pj_AF_INET6 @ 10 NONAME 12 pj_AF_IRDA @ 11 NONAME 13 pj_AF_PACKET @ 12 NONAME 14 pj_AF_UNIX @ 13 NONAME 15 pj_GUID_STRING_LENGTH @ 14 NONAME 16 pj_IPTOS_LOWDELAY @ 15 NONAME 17 pj_IPTOS_MINCOST @ 16 NONAME 18 pj_IPTOS_RELIABILITY @ 17 NONAME 19 pj_IPTOS_THROUGHPUT @ 18 NONAME 20 pj_IP_TOS @ 19 NONAME 21 pj_MSG_DONTROUTE @ 20 NONAME 22 pj_MSG_OOB @ 21 NONAME 23 pj_MSG_PEEK @ 22 NONAME 24 pj_NO_MEMORY_EXCEPTION @ 23 NONAME 25 pj_SOCK_DGRAM @ 24 NONAME 26 pj_SOCK_RAW @ 25 NONAME 27 pj_SOCK_RDM @ 26 NONAME 28 pj_SOCK_STREAM @ 27 NONAME 29 pj_SOL_IP @ 28 NONAME 30 pj_SOL_IPV6 @ 29 NONAME 31 pj_SOL_SOCKET @ 30 NONAME 32 pj_SOL_TCP @ 31 NONAME 33 pj_SOL_UDP @ 32 NONAME 34 pj_SO_RCVBUF @ 33 NONAME 35 pj_SO_SNDBUF @ 34 NONAME 36 pj_SO_TYPE @ 35 NONAME 37 pj_ansi_to_unicode @ 36 NONAME 38 pj_array_erase @ 37 NONAME 39 pj_array_find @ 38 NONAME 40 pj_array_insert @ 39 NONAME 41 pj_atexit @ 40 NONAME 42 pj_atomic_add @ 41 NONAME 43 pj_atomic_add_and_get @ 42 NONAME 44 pj_atomic_create @ 43 NONAME 45 pj_atomic_dec @ 44 NONAME 46 pj_atomic_dec_and_get @ 45 NONAME 47 pj_atomic_destroy @ 46 NONAME 48 pj_atomic_get @ 47 NONAME 49 pj_atomic_inc @ 48 NONAME 50 pj_atomic_inc_and_get @ 49 NONAME 51 pj_atomic_set @ 50 NONAME 52 pj_caching_pool_destroy @ 51 NONAME 53 pj_caching_pool_init @ 52 NONAME 54 pj_create_random_string @ 53 NONAME 55 pj_create_unique_string @ 54 NONAME 56 pj_dump_config @ 55 NONAME 57 pj_elapsed_cycle @ 56 NONAME 58 pj_elapsed_msec @ 57 NONAME 59 pj_elapsed_nanosec @ 58 NONAME 60 pj_elapsed_time @ 59 NONAME 61 pj_elapsed_usec @ 60 NONAME 62 pj_enter_critical_section @ 61 NONAME 63 pj_enum_ip_interface @ 62 NONAME 64 pj_enum_ip_route @ 63 NONAME 65 pj_exception_id_alloc @ 64 NONAME 66 pj_exception_id_free @ 65 NONAME 67 pj_exception_id_name @ 66 NONAME 68 pj_fifobuf_alloc @ 67 NONAME 69 pj_fifobuf_free @ 68 NONAME 70 pj_fifobuf_init @ 69 NONAME 71 pj_fifobuf_max_size @ 70 NONAME 72 pj_fifobuf_unalloc @ 71 NONAME 73 pj_file_close @ 72 NONAME 74 pj_file_delete @ 73 NONAME 75 pj_file_exists @ 74 NONAME 76 pj_file_flush @ 75 NONAME 77 pj_file_getpos @ 76 NONAME 78 pj_file_getstat @ 77 NONAME 79 pj_file_move @ 78 NONAME 80 pj_file_open @ 79 NONAME 81 pj_file_read @ 80 NONAME 82 pj_file_setpos @ 81 NONAME 83 pj_file_size @ 82 NONAME 84 pj_file_write @ 83 NONAME 85 pj_generate_unique_string @ 84 NONAME 86 pj_get_netos_error @ 85 NONAME 87 pj_get_os_error @ 86 NONAME 88 pj_get_timestamp @ 87 NONAME 89 pj_get_timestamp_freq @ 88 NONAME 90 pj_get_version @ 89 NONAME 91 pj_gethostaddr @ 90 NONAME 92 pj_gethostbyname @ 91 NONAME 93 pj_gethostip @ 92 NONAME 94 pj_gethostname @ 93 NONAME 95 pj_getpid @ 94 NONAME 96 pj_gettimeofday @ 95 NONAME 97 pj_hash_calc @ 96 NONAME 98 pj_hash_calc_tolower @ 97 NONAME 99 pj_hash_count @ 98 NONAME 100 pj_hash_create @ 99 NONAME 101 pj_hash_first @ 100 NONAME 102 pj_hash_get @ 101 NONAME 103 pj_hash_next @ 102 NONAME 104 pj_hash_set @ 103 NONAME 105 pj_hash_set_np @ 104 NONAME 106 pj_hash_this @ 105 NONAME 107 pj_htonl @ 106 NONAME 108 pj_htons @ 107 NONAME 109 pj_inet_addr @ 108 NONAME 110 pj_inet_addr2 @ 109 NONAME 111 pj_inet_aton @ 110 NONAME 112 pj_inet_ntoa @ 111 NONAME 113 pj_init @ 112 NONAME 114 pj_ioqueue_accept @ 113 NONAME 115 pj_ioqueue_connect @ 114 NONAME 116 pj_ioqueue_create @ 115 NONAME 117 pj_ioqueue_destroy @ 116 NONAME 118 pj_ioqueue_get_user_data @ 117 NONAME 119 pj_ioqueue_is_pending @ 118 NONAME 120 pj_ioqueue_name @ 119 NONAME 121 pj_ioqueue_op_key_init @ 120 NONAME 122 pj_ioqueue_poll @ 121 NONAME 123 pj_ioqueue_post_completion @ 122 NONAME 124 pj_ioqueue_recv @ 123 NONAME 125 pj_ioqueue_recvfrom @ 124 NONAME 126 pj_ioqueue_register_sock @ 125 NONAME 127 pj_ioqueue_send @ 126 NONAME 128 pj_ioqueue_sendto @ 127 NONAME 129 pj_ioqueue_set_lock @ 128 NONAME 130 pj_ioqueue_set_user_data @ 129 NONAME 131 pj_ioqueue_unregister @ 130 NONAME 132 pj_leave_critical_section @ 131 NONAME 133 pj_list_erase @ 132 NONAME 134 pj_list_find_node @ 133 NONAME 135 pj_list_insert_after @ 134 NONAME 136 pj_list_insert_before @ 135 NONAME 137 pj_list_insert_nodes_after @ 136 NONAME 138 pj_list_insert_nodes_before @ 137 NONAME 139 pj_list_merge_first @ 138 NONAME 140 pj_list_merge_last @ 139 NONAME 141 pj_list_search @ 140 NONAME 142 pj_list_size @ 141 NONAME 143 pj_lock_acquire @ 142 NONAME 144 pj_lock_create_null_mutex @ 143 NONAME 145 pj_lock_create_recursive_mutex @ 144 NONAME 146 pj_lock_create_semaphore @ 145 NONAME 147 pj_lock_create_simple_mutex @ 146 NONAME 148 pj_lock_destroy @ 147 NONAME 149 pj_lock_release @ 148 NONAME 150 pj_lock_tryacquire @ 149 NONAME 151 pj_log @ 150 NONAME 152 pj_log_1 @ 151 NONAME 153 pj_log_2 @ 152 NONAME 154 pj_log_3 @ 153 NONAME 155 pj_log_4 @ 154 NONAME 156 pj_log_5 @ 155 NONAME 157 pj_log_get_decor @ 156 NONAME 158 pj_log_get_level @ 157 NONAME 159 pj_log_get_log_func @ 158 NONAME 160 pj_log_set_decor @ 159 NONAME 161 pj_log_set_level @ 160 NONAME 162 pj_log_set_log_func @ 161 NONAME 163 pj_log_write @ 162 NONAME 164 pj_mutex_create @ 163 NONAME 165 pj_mutex_create_recursive @ 164 NONAME 166 pj_mutex_create_simple @ 165 NONAME 167 pj_mutex_destroy @ 166 NONAME 168 pj_mutex_lock @ 167 NONAME 169 pj_mutex_trylock @ 168 NONAME 170 pj_mutex_unlock @ 169 NONAME 171 pj_ntohl @ 170 NONAME 172 pj_ntohs @ 171 NONAME 173 pj_pool_alloc @ 172 NONAME 174 pj_pool_alloc_from_block @ 173 NONAME 175 pj_pool_allocate_find @ 174 NONAME 176 pj_pool_calloc @ 175 NONAME 177 pj_pool_create @ 176 NONAME 178 pj_pool_create_int @ 177 NONAME 179 pj_pool_create_on_buf @ 178 NONAME 180 pj_pool_destroy_int @ 179 NONAME 181 pj_pool_factory_default_policy @ 180 NONAME 182 pj_pool_factory_get_default_policy @ 181 NONAME 183 pj_pool_get_capacity @ 182 NONAME 184 pj_pool_get_used_size @ 183 NONAME 185 pj_pool_getobjname @ 184 NONAME 186 pj_pool_init_int @ 185 NONAME 187 pj_pool_release @ 186 NONAME 188 pj_pool_reset @ 187 NONAME 189 pj_rand @ 188 NONAME 190 pj_rbtree_erase @ 189 NONAME 191 pj_rbtree_find @ 190 NONAME 192 pj_rbtree_first @ 191 NONAME 193 pj_rbtree_init @ 192 NONAME 194 pj_rbtree_insert @ 193 NONAME 195 pj_rbtree_last @ 194 NONAME 196 pj_rbtree_max_height @ 195 NONAME 197 pj_rbtree_min_height @ 196 NONAME 198 pj_rbtree_next @ 197 NONAME 199 pj_rbtree_prev @ 198 NONAME 200 pj_register_strerror @ 199 NONAME 201 pj_rwmutex_create @ 200 NONAME 202 pj_rwmutex_destroy @ 201 NONAME 203 pj_rwmutex_lock_read @ 202 NONAME 204 pj_rwmutex_lock_write @ 203 NONAME 205 pj_rwmutex_unlock_read @ 204 NONAME 206 pj_rwmutex_unlock_write @ 205 NONAME 207 pj_sem_create @ 206 NONAME 208 pj_sem_destroy @ 207 NONAME 209 pj_sem_post @ 208 NONAME 210 pj_sem_trywait @ 209 NONAME 211 pj_sem_wait @ 210 NONAME 212 pj_set_netos_error @ 211 NONAME 213 pj_set_os_error @ 212 NONAME 214 pj_shutdown @ 213 NONAME 215 pj_sock_accept @ 214 NONAME 216 pj_sock_bind @ 215 NONAME 217 pj_sock_bind_in @ 216 NONAME 218 pj_sock_close @ 217 NONAME 219 pj_sock_connect @ 218 NONAME 220 pj_sock_getpeername @ 219 NONAME 221 pj_sock_getsockname @ 220 NONAME 222 pj_sock_getsockopt @ 221 NONAME 223 pj_sock_listen @ 222 NONAME 224 pj_sock_recv @ 223 NONAME 225 pj_sock_recvfrom @ 224 NONAME 226 pj_sock_select @ 225 NONAME 227 pj_sock_send @ 226 NONAME 228 pj_sock_sendto @ 227 NONAME 229 pj_sock_setsockopt @ 228 NONAME 230 pj_sock_shutdown @ 229 NONAME 231 pj_sock_socket @ 230 NONAME 232 pj_sockaddr_in_init @ 231 NONAME 233 pj_sockaddr_in_set_str_addr @ 232 NONAME 234 pj_srand @ 233 NONAME 235 pj_str @ 234 NONAME 236 pj_strassign @ 235 NONAME 237 pj_strcat @ 236 NONAME 238 pj_strcat2 @ 237 NONAME 239 pj_strcmp @ 238 NONAME 240 pj_strcmp2 @ 239 NONAME 241 pj_strcpy @ 240 NONAME 242 pj_strcpy2 @ 241 NONAME 243 pj_strdup @ 242 NONAME 244 pj_strdup2 @ 243 NONAME 245 pj_strdup2_with_null @ 244 NONAME 246 pj_strdup3 @ 245 NONAME 247 pj_strdup_with_null @ 246 NONAME 248 pj_strerror @ 247 NONAME 249 pj_stricmp @ 248 NONAME 250 pj_stricmp2 @ 249 NONAME 251 pj_strltrim @ 250 NONAME 252 pj_strncmp @ 251 NONAME 253 pj_strncmp2 @ 252 NONAME 254 pj_strncpy @ 253 NONAME 255 pj_strncpy_with_null @ 254 NONAME 256 pj_strnicmp @ 255 NONAME 257 pj_strnicmp2 @ 256 NONAME 258 pj_strrtrim @ 257 NONAME 259 pj_strtoul @ 258 NONAME 260 pj_strtoul2 @ 259 NONAME 261 pj_strtrim @ 260 NONAME 262 pj_symbianos_poll @ 261 NONAME 263 pj_thread_create @ 262 NONAME 264 pj_thread_destroy @ 263 NONAME 265 pj_thread_get_name @ 264 NONAME 266 pj_thread_join @ 265 NONAME 267 pj_thread_local_alloc @ 266 NONAME 268 pj_thread_local_free @ 267 NONAME 269 pj_thread_local_get @ 268 NONAME 270 pj_thread_local_set @ 269 NONAME 271 pj_thread_register @ 270 NONAME 272 pj_thread_resume @ 271 NONAME 273 pj_thread_sleep @ 272 NONAME 274 pj_thread_this @ 273 NONAME 275 pj_time_decode @ 274 NONAME 276 pj_time_encode @ 275 NONAME 277 pj_time_gmt_to_local @ 276 NONAME 278 pj_time_local_to_gmt @ 277 NONAME 279 pj_time_val_normalize @ 278 NONAME 280 pj_timer_entry_init @ 279 NONAME 281 pj_timer_heap_cancel @ 280 NONAME 282 pj_timer_heap_count @ 281 NONAME 283 pj_timer_heap_create @ 282 NONAME 284 pj_timer_heap_destroy @ 283 NONAME 285 pj_timer_heap_earliest_time @ 284 NONAME 286 pj_timer_heap_mem_size @ 285 NONAME 287 pj_timer_heap_poll @ 286 NONAME 288 pj_timer_heap_schedule @ 287 NONAME 289 pj_timer_heap_set_lock @ 288 NONAME 290 pj_timer_heap_set_max_timed_out_per_poll @ 289 NONAME 291 pj_unicode_to_ansi @ 290 NONAME 292 pj_utoa @ 291 NONAME 293 pj_utoa_pad @ 292 NONAME 294 platform_strerror @ 293 NONAME 295 snprintf @ 294 NONAME 296 vsnprintf @ 295 NONAME -
pjproject/trunk/build.symbian/pjmedia.mmp
r1269 r1417 1 #if defined(EKA2) 2 3 TARGET pjmedia.dll 4 TARGETTYPE dll 5 UID 0x1000008d 0xA0004295 6 CAPABILITY None 7 LIBRARY null_audio.lib pjsdp.lib pjnath.lib pjlib_util.lib pjlib.lib esock.lib insock.lib charconv.lib euser.lib estlib.lib 8 MACRO PJ_DLL 9 MACRO PJ_EXPORTING 10 11 DEFFILE .\pjmedia.def 12 13 #else 14 1 15 TARGET pjmedia.lib 2 16 TARGETTYPE lib 3 17 UID 0x100039CE 0x10004299 4 18 VENDORID 0x70000001 19 20 #endif 5 21 6 22 SOURCEPATH ..\pjmedia\src\pjmedia … … 38 54 SOURCE rtcp.c 39 55 SOURCE rtp.c 40 //SDP files are in pjsdp.mmp 41 //SOURCE sdp.c 42 //SOURCE sdp_cmp.c 43 //SOURCE sdp_neg.c 56 //SDP files are in pjsdp.mmp: sdp.c, sdp_cmp.c, sdp_neg.c 44 57 SOURCE session.c 45 58 SOURCE silencedet.c … … 77 90 //SYSTEMINCLUDE \epoc32\include\mmf\plugin 78 91 79 CAPABILITY None80 92 -
pjproject/trunk/build.symbian/pjproject.cww
r1253 r1417 55 55 <DOCKBARID>59420</DOCKBARID> 56 56 <PCTWIDTH>1.000000</PCTWIDTH> 57 <HGT>2 94</HGT>57 <HGT>274</HGT> 58 58 <GROUPID> 59 59 <GIDHIGHPART>4294967294</GIDHIGHPART> … … 80 80 <DOCKBARID>59420</DOCKBARID> 81 81 <PCTWIDTH>1.000000</PCTWIDTH> 82 <HGT>2 94</HGT>82 <HGT>274</HGT> 83 83 <GROUPID> 84 84 <GIDHIGHPART>4294967294</GIDHIGHPART> … … 105 105 <DOCKBARID>59420</DOCKBARID> 106 106 <PCTWIDTH>1.000000</PCTWIDTH> 107 <HGT>294</HGT> 107 <HGT>274</HGT> 108 <GROUPID> 109 <GIDHIGHPART>4294967294</GIDHIGHPART> 110 <GIDLOWPART>4294967294</GIDLOWPART> 111 </GROUPID> 112 </DOCKINFO> 113 </WINDOW> 114 <WINDOW> 115 <SESSION>-1</SESSION> 116 <EDOCTYPE>0</EDOCTYPE> 117 <PATH USERELATIVEPATHS = "true">null_audio.mcp</PATH> 118 <FRAMELOC> 119 <X>0</X> 120 <Y>0</Y> 121 </FRAMELOC> 122 <FRAMESIZE> 123 <W>347</W> 124 <H>128</H> 125 </FRAMESIZE> 126 <DOCKINFO> 127 <STATUS>1</STATUS> 128 <ROW>0</ROW> 129 <COLUMN>0</COLUMN> 130 <DOCKBARID>59420</DOCKBARID> 131 <PCTWIDTH>1.000000</PCTWIDTH> 132 <HGT>274</HGT> 108 133 <GROUPID> 109 134 <GIDHIGHPART>4294967294</GIDHIGHPART> … … 130 155 <DOCKBARID>59420</DOCKBARID> 131 156 <PCTWIDTH>1.000000</PCTWIDTH> 132 <HGT>294</HGT> 157 <HGT>274</HGT> 158 <GROUPID> 159 <GIDHIGHPART>4294967294</GIDHIGHPART> 160 <GIDLOWPART>4294967294</GIDLOWPART> 161 </GROUPID> 162 </DOCKINFO> 163 </WINDOW> 164 <WINDOW> 165 <SESSION>-1</SESSION> 166 <EDOCTYPE>0</EDOCTYPE> 167 <PATH USERELATIVEPATHS = "true">pjsdp.mcp</PATH> 168 <FRAMELOC> 169 <X>0</X> 170 <Y>0</Y> 171 </FRAMELOC> 172 <FRAMESIZE> 173 <W>347</W> 174 <H>128</H> 175 </FRAMESIZE> 176 <DOCKINFO> 177 <STATUS>1</STATUS> 178 <ROW>0</ROW> 179 <COLUMN>0</COLUMN> 180 <DOCKBARID>59420</DOCKBARID> 181 <PCTWIDTH>1.000000</PCTWIDTH> 182 <HGT>274</HGT> 133 183 <GROUPID> 134 184 <GIDHIGHPART>4294967294</GIDHIGHPART> … … 155 205 <DOCKBARID>59420</DOCKBARID> 156 206 <PCTWIDTH>1.000000</PCTWIDTH> 157 <HGT>294</HGT> 207 <HGT>274</HGT> 208 <GROUPID> 209 <GIDHIGHPART>4294967294</GIDHIGHPART> 210 <GIDLOWPART>4294967294</GIDLOWPART> 211 </GROUPID> 212 </DOCKINFO> 213 </WINDOW> 214 <WINDOW> 215 <SESSION>-1</SESSION> 216 <EDOCTYPE>0</EDOCTYPE> 217 <PATH USERELATIVEPATHS = "true">pjsip_simple.mcp</PATH> 218 <FRAMELOC> 219 <X>0</X> 220 <Y>0</Y> 221 </FRAMELOC> 222 <FRAMESIZE> 223 <W>347</W> 224 <H>128</H> 225 </FRAMESIZE> 226 <DOCKINFO> 227 <STATUS>1</STATUS> 228 <ROW>0</ROW> 229 <COLUMN>0</COLUMN> 230 <DOCKBARID>59420</DOCKBARID> 231 <PCTWIDTH>1.000000</PCTWIDTH> 232 <HGT>274</HGT> 158 233 <GROUPID> 159 234 <GIDHIGHPART>4294967294</GIDHIGHPART> … … 180 255 <DOCKBARID>59420</DOCKBARID> 181 256 <PCTWIDTH>1.000000</PCTWIDTH> 182 <HGT>294</HGT> 183 <GROUPID> 184 <GIDHIGHPART>4294967294</GIDHIGHPART> 185 <GIDLOWPART>4294967294</GIDLOWPART> 186 </GROUPID> 187 </DOCKINFO> 188 </WINDOW> 189 <WINDOW> 190 <SESSION>-1</SESSION> 191 <EDOCTYPE>0</EDOCTYPE> 192 <PATH USERELATIVEPATHS = "true">pjsip_simple.mcp</PATH> 193 <FRAMELOC> 194 <X>0</X> 195 <Y>0</Y> 196 </FRAMELOC> 197 <FRAMESIZE> 198 <W>347</W> 199 <H>128</H> 200 </FRAMESIZE> 201 <DOCKINFO> 202 <STATUS>1</STATUS> 203 <ROW>0</ROW> 204 <COLUMN>0</COLUMN> 205 <DOCKBARID>59420</DOCKBARID> 206 <PCTWIDTH>1.000000</PCTWIDTH> 207 <HGT>294</HGT> 257 <HGT>274</HGT> 208 258 <GROUPID> 209 259 <GIDHIGHPART>4294967294</GIDHIGHPART> … … 230 280 <DOCKBARID>59420</DOCKBARID> 231 281 <PCTWIDTH>1.000000</PCTWIDTH> 232 <HGT>294</HGT> 233 <GROUPID> 234 <GIDHIGHPART>4294967294</GIDHIGHPART> 235 <GIDLOWPART>4294967294</GIDLOWPART> 236 </GROUPID> 237 </DOCKINFO> 238 </WINDOW> 239 <WINDOW> 240 <SESSION>-1</SESSION> 241 <EDOCTYPE>0</EDOCTYPE> 242 <PATH USERELATIVEPATHS = "true">null_audio.mcp</PATH> 243 <FRAMELOC> 244 <X>0</X> 245 <Y>0</Y> 246 </FRAMELOC> 247 <FRAMESIZE> 248 <W>347</W> 249 <H>128</H> 250 </FRAMESIZE> 251 <DOCKINFO> 252 <STATUS>1</STATUS> 253 <ROW>0</ROW> 254 <COLUMN>0</COLUMN> 255 <DOCKBARID>59420</DOCKBARID> 256 <PCTWIDTH>1.000000</PCTWIDTH> 257 <HGT>294</HGT> 282 <HGT>274</HGT> 258 283 <GROUPID> 259 284 <GIDHIGHPART>4294967294</GIDHIGHPART> … … 280 305 <DOCKBARID>59420</DOCKBARID> 281 306 <PCTWIDTH>1.000000</PCTWIDTH> 282 <HGT>294</HGT> 283 <GROUPID> 284 <GIDHIGHPART>4294967294</GIDHIGHPART> 285 <GIDLOWPART>4294967294</GIDLOWPART> 286 </GROUPID> 287 </DOCKINFO> 288 </WINDOW> 289 <WINDOW> 290 <SESSION>-2147483648</SESSION> 291 <EDOCTYPE>36</EDOCTYPE> 292 <FRAMELOC> 293 <X>4</X> 294 <Y>23</Y> 295 </FRAMELOC> 296 <FRAMESIZE> 297 <W>534</W> 298 <H>921</H> 299 </FRAMESIZE> 300 <DOCKINFO> 301 <STATUS>0</STATUS> 302 <ROW></ROW> 303 <COLUMN></COLUMN> 304 <DOCKBARID></DOCKBARID> 305 <PCTWIDTH></PCTWIDTH> 306 <HGT></HGT> 307 <GROUPID> 308 <GIDHIGHPART></GIDHIGHPART> 309 <GIDLOWPART></GIDLOWPART> 310 </GROUPID> 311 </DOCKINFO> 312 </WINDOW> 313 <WINDOW> 314 <SESSION>-2147483648</SESSION> 315 <EDOCTYPE>20</EDOCTYPE> 316 <FRAMELOC> 317 <X>4</X> 318 <Y>23</Y> 319 </FRAMELOC> 320 <FRAMESIZE> 321 <W>1008</W> 322 <H>2142</H> 323 </FRAMESIZE> 324 <DOCKINFO> 325 <STATUS>0</STATUS> 326 <ROW></ROW> 327 <COLUMN></COLUMN> 328 <DOCKBARID></DOCKBARID> 329 <PCTWIDTH></PCTWIDTH> 330 <HGT></HGT> 331 <GROUPID> 332 <GIDHIGHPART></GIDHIGHPART> 333 <GIDLOWPART></GIDLOWPART> 334 </GROUPID> 335 </DOCKINFO> 336 </WINDOW> 337 <WINDOW> 338 <SESSION>-2147483648</SESSION> 339 <EDOCTYPE>23</EDOCTYPE> 340 <FRAMELOC> 341 <X>6</X> 342 <Y>81</Y> 343 </FRAMELOC> 344 <FRAMESIZE> 345 <W>566</W> 346 <H>477</H> 347 </FRAMESIZE> 348 <DOCKINFO> 349 <STATUS>0</STATUS> 350 <ROW></ROW> 351 <COLUMN></COLUMN> 352 <DOCKBARID></DOCKBARID> 353 <PCTWIDTH></PCTWIDTH> 354 <HGT></HGT> 355 <GROUPID> 356 <GIDHIGHPART></GIDHIGHPART> 357 <GIDLOWPART></GIDLOWPART> 307 <HGT>274</HGT> 308 <GROUPID> 309 <GIDHIGHPART>4294967294</GIDHIGHPART> 310 <GIDLOWPART>4294967294</GIDLOWPART> 358 311 </GROUPID> 359 312 </DOCKINFO> -
pjproject/trunk/build.symbian/pjsdp.mmp
r1269 r1417 1 #if defined(EKA2) 2 TARGET pjsdp.dll 3 TARGETTYPE dll 4 UID 0x1000008d 0xA0004296 5 CAPABILITY None 6 LIBRARY pjlib_util.lib pjlib.lib charconv.lib euser.lib estlib.lib 7 MACRO PJ_DLL 8 MACRO PJ_EXPORTING 9 10 DEFFILE .\pjsdp.def 11 12 #else 13 1 14 TARGET pjsdp.lib 2 15 TARGETTYPE lib 3 16 UID 0x100039CE 0x10004299 4 17 VENDORID 0x70000001 18 19 #endif 5 20 6 21 SOURCEPATH ..\pjmedia\src\pjmedia -
pjproject/trunk/build.symbian/pjsip.mmp
r1269 r1417 1 #if defined(EKA2) 2 3 TARGET pjsip.dll 4 TARGETTYPE dll 5 6 UID 0x1000008d 0xA0004293 7 8 CAPABILITY None 9 LIBRARY pjsdp.lib pjlib_util.lib pjlib.lib esock.lib insock.lib charconv.lib euser.lib estlib.lib 10 MACRO PJ_DLL 11 MACRO PJ_EXPORTING 12 13 DEFFILE .\pjsip.def 14 15 #else 16 1 17 TARGET pjsip.lib 2 18 TARGETTYPE lib 3 19 UID 0x100039CE 0x10004299 4 20 VENDORID 0x70000001 21 22 #endif 5 23 6 24 SOURCEPATH ..\pjsip\src\pjsip … … 44 62 SYSTEMINCLUDE \epoc32\include\libc 45 63 46 CAPABILITY None47 64 -
pjproject/trunk/build.symbian/pjsip_simple.mmp
r1269 r1417 1 #if defined(EKA2) 2 3 TARGET pjsip_simple.dll 4 TARGETTYPE dll 5 6 UID 0x1000008d 0xA0004292 7 8 CAPABILITY None 9 LIBRARY pjsip.lib pjsdp.lib pjlib_util.lib pjlib.lib esock.lib insock.lib charconv.lib euser.lib estlib.lib 10 MACRO PJ_DLL 11 MACRO PJ_EXPORTING 12 13 DEFFILE .\pjsip_simple.def 14 15 #else 16 1 17 TARGET pjsip_simple.lib 2 18 TARGETTYPE lib 3 19 UID 0x100039CE 0x10004299 4 20 VENDORID 0x70000001 21 22 #endif 5 23 6 24 SOURCEPATH ..\pjsip\src\pjsip-simple … … 33 51 SYSTEMINCLUDE \epoc32\include\libc 34 52 35 CAPABILITY None36 -
pjproject/trunk/build.symbian/pjsip_ua.mmp
r1269 r1417 1 #if defined(EKA2) 2 3 TARGET pjsip_ua.dll 4 TARGETTYPE dll 5 6 UID 0x1000008d 0xA0004291 7 8 CAPABILITY None 9 LIBRARY pjsip_simple.lib pjsip.lib pjsdp.lib pjlib_util.lib pjlib.lib esock.lib insock.lib charconv.lib euser.lib estlib.lib 10 MACRO PJ_DLL 11 MACRO PJ_EXPORTING 12 13 DEFFILE .\pjsip_ua.def 14 15 #else 16 1 17 TARGET pjsip_ua.lib 2 18 TARGETTYPE lib 3 19 UID 0x100039CE 0x10004299 4 20 VENDORID 0x70000001 21 22 #endif 5 23 6 24 SOURCEPATH ..\pjsip\src\pjsip-ua … … 27 45 SYSTEMINCLUDE \epoc32\include\libc 28 46 29 CAPABILITY None30 47 -
pjproject/trunk/build.symbian/pjsua_lib.mmp
r1242 r1417 1 #if defined(EKA2) 2 3 TARGET pjsua_lib.dll 4 TARGETTYPE dll 5 6 UID 0x1000008d 0xA0004290 7 8 CAPABILITY None 9 LIBRARY pjsip_ua.lib pjsip_simple.lib pjsip.lib pjmedia.lib null_audio.lib pjsdp.lib pjnath.lib pjlib_util.lib pjlib.lib esock.lib insock.lib charconv.lib euser.lib estlib.lib 10 MACRO PJ_DLL 11 MACRO PJ_EXPORTING 12 13 DEFFILE .\pjsua_lib.def 14 15 #else 16 1 17 TARGET pjsua_lib.lib 2 18 TARGETTYPE lib 3 19 UID 0x100039CE 0x10004299 4 20 VENDORID 0x70000001 21 22 #endif 5 23 6 24 SOURCEPATH ..\pjsip\src\pjsua-lib … … 29 47 SYSTEMINCLUDE \epoc32\include\libc 30 48 31 CAPABILITY None32 49 -
pjproject/trunk/build.symbian/symbian_ua.mmp
r1253 r1417 8 8 MACRO PJ_M_I386=1 9 9 MACRO PJ_SYMBIAN=1 10 MACRO PJ_DLL=1 10 11 11 12 // Test files … … 26 27 27 28 LIBRARY esock.lib insock.lib charconv.lib euser.lib estlib.lib eexe.lib 28 STATICLIBRARYnull_audio.lib pjsua_lib.lib pjsip_ua.lib pjsip_simple.lib pjsip.lib pjsdp.lib pjmedia.lib pjnath.lib pjlib_util.lib pjlib.lib ecrt0.lib29 LIBRARY null_audio.lib pjsua_lib.lib pjsip_ua.lib pjsip_simple.lib pjsip.lib pjsdp.lib pjmedia.lib pjnath.lib pjlib_util.lib pjlib.lib ecrt0.lib 29 30 CAPABILITY None 30 31 -
pjproject/trunk/pjlib/include/pj/guid.h
r1282 r1417 56 56 * Regardless of the actual length of the GUID, it will not exceed 57 57 * PJ_GUID_MAX_LENGTH characters. 58 * 59 * @see pj_GUID_STRING_LENGTH() 60 * @see PJ_GUID_MAX_LENGTH 58 61 */ 59 extern const unsigned PJ_GUID_STRING_LENGTH; 62 PJ_DECL_DATA(const unsigned) PJ_GUID_STRING_LENGTH; 63 64 /** 65 * Get #PJ_GUID_STRING_LENGTH constant. 66 */ 67 PJ_DECL(unsigned) pj_GUID_STRING_LENGTH(); 60 68 61 69 /** -
pjproject/trunk/pjlib/include/pj/pool.h
r1405 r1417 615 615 * This constant denotes the exception number that will be thrown by default 616 616 * memory factory policy when memory allocation fails. 617 */ 618 extern int PJ_NO_MEMORY_EXCEPTION; 617 * 618 * @see pj_NO_MEMORY_EXCEPTION() 619 */ 620 PJ_DECL_DATA(int) PJ_NO_MEMORY_EXCEPTION; 621 622 /** 623 * Get #PJ_NO_MEMORY_EXCEPTION constant. 624 */ 625 PJ_DECL(int) pj_NO_MEMORY_EXCEPTION(); 619 626 620 627 /** -
pjproject/trunk/pjlib/src/pj/guid_simple.c
r1246 r1417 22 22 #include <pj/string.h> 23 23 24 const unsigned PJ_GUID_STRING_LENGTH=20; 24 PJ_DEF_DATA(const unsigned) PJ_GUID_STRING_LENGTH=20; 25 26 PJ_DEF(unsigned) pj_GUID_STRING_LENGTH() 27 { 28 return PJ_GUID_STRING_LENGTH; 29 } 25 30 26 31 static void init_mac_address(unsigned char mac_addr[16]) -
pjproject/trunk/pjlib/src/pj/guid_uuid.c
r1282 r1417 25 25 #include <uuid/uuid.h> 26 26 27 const unsigned PJ_GUID_STRING_LENGTH=36; 27 PJ_DEF_DATA(const unsigned) PJ_GUID_STRING_LENGTH=36; 28 29 PJ_DEF(unsigned) pj_GUID_STRING_LENGTH() 30 { 31 return PJ_GUID_STRING_LENGTH; 32 } 28 33 29 34 PJ_DEF(pj_str_t*) pj_generate_unique_string(pj_str_t *str) -
pjproject/trunk/pjlib/src/pj/guid_win32.c
r974 r1417 25 25 26 26 27 const unsigned PJ_GUID_STRING_LENGTH=32; 27 PJ_DEF_DATA(const unsigned) PJ_GUID_STRING_LENGTH=32; 28 29 PJ_DEF(unsigned) pj_GUID_STRING_LENGTH() 30 { 31 return PJ_GUID_STRING_LENGTH; 32 } 28 33 29 34 PJ_INLINE(void) hex2digit(unsigned value, char *p) -
pjproject/trunk/pjlib/src/pj/os_symbian.h
r1405 r1417 26 26 #include <e32cmn.h> 27 27 #include <e32std.h> 28 #include < ES_SOCK.H>28 #include <es_sock.h> 29 29 #include <in_sock.h> 30 #include < CHARCONV.H>30 #include <charconf.h> 31 31 #include <utf.h> 32 32 #include <e32cons.h> -
pjproject/trunk/pjlib/src/pj/pool.c
r1235 r1417 33 33 #define LOG(expr) PJ_LOG(6,expr) 34 34 35 int PJ_NO_MEMORY_EXCEPTION; 35 PJ_DEF_DATA(int) PJ_NO_MEMORY_EXCEPTION; 36 37 PJ_DEF(int) pj_NO_MEMORY_EXCEPTION() 38 { 39 return PJ_NO_MEMORY_EXCEPTION; 40 } 36 41 37 42 /* -
pjproject/trunk/pjmedia/include/pjmedia/errno.h
r974 r1417 522 522 523 523 524 /** 525 * Get error message for the specified error code. Note that this 526 * function is only able to decode PJMEDIA specific error code. 527 * Application should use pj_strerror(), which should be able to 528 * decode all error codes belonging to all subsystems (e.g. pjlib, 529 * pjmedia, pjsip, etc). 530 * 531 * @param status The error code. 532 * @param buffer The buffer where to put the error message. 533 * @param bufsize Size of the buffer. 534 * 535 * @return The error message as NULL terminated string, 536 * wrapped with pj_str_t. 537 */ 538 PJ_DECL(pj_str_t) pjmedia_strerror( pj_status_t status, char *buffer, 539 pj_size_t bufsize); 540 524 541 525 542 PJ_END_DECL -
pjproject/trunk/pjmedia/include/pjmedia/rtcp.h
r974 r1417 310 310 * @return PJ_SUCCESS on success. 311 311 */ 312 PJ_DE F(pj_status_t) pjmedia_rtcp_get_ntp_time(const pjmedia_rtcp_session *sess,313 pjmedia_rtcp_ntp_rec *ntp);312 PJ_DECL(pj_status_t) pjmedia_rtcp_get_ntp_time(const pjmedia_rtcp_session *sess, 313 pjmedia_rtcp_ntp_rec *ntp); 314 314 315 315 -
pjproject/trunk/pjmedia/src/pjmedia/alaw_ulaw.c
r1210 r1417 117 117 * John Wiley & Sons, pps 98-111 and 472-476. 118 118 */ 119 PJ_DEF(pj_uint8_t) 120 pjmedia_linear2alaw( 119 PJ_DEF(pj_uint8_t) pjmedia_linear2alaw( 121 120 int pcm_val) /* 2's complement (16-bit range) */ 122 121 { … … 153 152 * 154 153 */ 155 PJ_DEF(int) 156 pjmedia_alaw2linear( 154 PJ_DEF(int) pjmedia_alaw2linear( 157 155 unsigned a_val) 158 156 { … … 209 207 * John Wiley & Sons, pps 98-111 and 472-476. 210 208 */ 211 PJ_DECL(unsigned char) 212 pjmedia_linear2ulaw( 209 PJ_DEF(unsigned char) pjmedia_linear2ulaw( 213 210 int pcm_val) /* 2's complement (16-bit range) */ 214 211 { … … 251 248 * original code word. This is in keeping with ISDN conventions. 252 249 */ 253 PJ_DEF(int) 254 pjmedia_ulaw2linear( 250 PJ_DEF(int) pjmedia_ulaw2linear( 255 251 unsigned char u_val) 256 252 { … … 277 273 278 274 /* A-law to u-law conversion */ 279 PJ_DEF(unsigned char) 280 pjmedia_alaw2ulaw( 275 PJ_DEF(unsigned char) pjmedia_alaw2ulaw( 281 276 unsigned char aval) 282 277 { … … 287 282 288 283 /* u-law to A-law conversion */ 289 PJ_DEF(unsigned char) 290 pjmedia_ulaw2alaw( 284 PJ_DEF(unsigned char) pjmedia_ulaw2alaw( 291 285 unsigned char uval) 292 286 { -
pjproject/trunk/pjmedia/src/pjmedia/codec.c
r1242 r1417 51 51 * Register a codec factory. 52 52 */ 53 PJ_DEF(pj_status_t) 54 pjmedia_codec_mgr_register_factory( pjmedia_codec_mgr *mgr, 53 PJ_DEF(pj_status_t) pjmedia_codec_mgr_register_factory( pjmedia_codec_mgr *mgr, 55 54 pjmedia_codec_factory *factory) 56 55 { … … 101 100 * Unregister a codec factory. 102 101 */ 103 PJ_DEF(pj_status_t) 104 pjmedia_codec_mgr_unregister_factory(pjmedia_codec_mgr *mgr,105 102 PJ_DEF(pj_status_t) pjmedia_codec_mgr_unregister_factory( 103 pjmedia_codec_mgr *mgr, 104 pjmedia_codec_factory *factory) 106 105 { 107 106 unsigned i; … … 140 139 * Enum all codecs. 141 140 */ 142 PJ_DEF(pj_status_t) 143 pjmedia_codec_mgr_enum_codecs(pjmedia_codec_mgr *mgr, 141 PJ_DEF(pj_status_t) pjmedia_codec_mgr_enum_codecs(pjmedia_codec_mgr *mgr, 144 142 unsigned *count, 145 143 pjmedia_codec_info codecs[], … … 171 169 * Get codec info for static payload type. 172 170 */ 173 PJ_DEF(pj_status_t) 174 pjmedia_codec_mgr_get_codec_info( pjmedia_codec_mgr *mgr, 171 PJ_DEF(pj_status_t) pjmedia_codec_mgr_get_codec_info( pjmedia_codec_mgr *mgr, 175 172 unsigned pt, 176 173 const pjmedia_codec_info **p_info) … … 223 220 * and so on, up to the maximum count specified in the argument. 224 221 */ 225 PJ_DEF(pj_status_t) 226 pjmedia_codec_mgr_find_codecs_by_id( pjmedia_codec_mgr *mgr, 222 PJ_DEF(pj_status_t) pjmedia_codec_mgr_find_codecs_by_id( pjmedia_codec_mgr *mgr, 227 223 const pj_str_t *codec_id, 228 224 unsigned *count, … … 307 303 * priorities of all those codecs. 308 304 */ 309 PJ_DEF(pj_status_t) 310 pjmedia_codec_mgr_set_codec_priority(pjmedia_codec_mgr *mgr,311 312 305 PJ_DEF(pj_status_t) pjmedia_codec_mgr_set_codec_priority( 306 pjmedia_codec_mgr *mgr, 307 const pj_str_t *codec_id, 308 pj_uint8_t prio) 313 309 { 314 310 unsigned i, found = 0; -
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r1301 r1417 819 819 * Change TX and RX settings for the port. 820 820 */ 821 PJ_DE CL(pj_status_t) pjmedia_conf_configure_port( pjmedia_conf *conf,821 PJ_DEF(pj_status_t) pjmedia_conf_configure_port( pjmedia_conf *conf, 822 822 unsigned slot, 823 823 pjmedia_port_op tx, … … 980 980 * Get total number of ports connections currently set up in the bridge. 981 981 */ 982 PJ_DE CL(unsigned) pjmedia_conf_get_connect_count(pjmedia_conf *conf)982 PJ_DEF(unsigned) pjmedia_conf_get_connect_count(pjmedia_conf *conf) 983 983 { 984 984 return conf->connect_cnt; -
pjproject/trunk/pjmedia/src/pjmedia/echo_common.c
r1269 r1417 22 22 #include <pj/assert.h> 23 23 #include <pj/pool.h> 24 24 #include "echo_internal.h" 25 25 26 26 typedef struct ec_operations ec_operations; … … 56 56 57 57 58 59 /*60 * Simple echo suppressor61 */62 PJ_DECL(pj_status_t) echo_supp_create(pj_pool_t *pool,63 unsigned clock_rate,64 unsigned samples_per_frame,65 unsigned tail_ms,66 unsigned latency_ms,67 unsigned options,68 void **p_state );69 PJ_DECL(pj_status_t) echo_supp_destroy(void *state);70 PJ_DECL(pj_status_t) echo_supp_playback(void *state,71 pj_int16_t *play_frm );72 PJ_DECL(pj_status_t) echo_supp_capture(void *state,73 pj_int16_t *rec_frm,74 unsigned options );75 PJ_DECL(pj_status_t) echo_supp_cancel_echo(void *state,76 pj_int16_t *rec_frm,77 const pj_int16_t *play_frm,78 unsigned options,79 void *reserved );80 81 58 static struct ec_operations echo_supp_op = 82 59 { … … 94 71 */ 95 72 #if defined(PJMEDIA_HAS_SPEEX_AEC) && PJMEDIA_HAS_SPEEX_AEC!=0 96 PJ_DECL(pj_status_t) speex_aec_create(pj_pool_t *pool,97 unsigned clock_rate,98 unsigned samples_per_frame,99 unsigned tail_ms,100 unsigned latency_ms,101 unsigned options,102 void **p_state );103 PJ_DECL(pj_status_t) speex_aec_destroy(void *state );104 PJ_DECL(pj_status_t) speex_aec_playback(void *state,105 pj_int16_t *play_frm );106 PJ_DECL(pj_status_t) speex_aec_capture(void *state,107 pj_int16_t *rec_frm,108 unsigned options );109 PJ_DECL(pj_status_t) speex_aec_cancel_echo(void *state,110 pj_int16_t *rec_frm,111 const pj_int16_t *play_frm,112 unsigned options,113 void *reserved );114 115 73 static struct ec_operations aec_op = 116 74 { -
pjproject/trunk/pjmedia/src/pjmedia/echo_speex.c
r1266 r1417 29 29 #include <speex/speex_preprocess.h> 30 30 31 #include "echo_internal.h" 31 32 32 33 #define THIS_FILE "echo_speex.c" … … 226 227 return PJ_SUCCESS; 227 228 } 228 229 /*230 * Prototypes231 */232 PJ_DECL(pj_status_t) speex_aec_create(pj_pool_t *pool,233 unsigned clock_rate,234 unsigned samples_per_frame,235 unsigned tail_ms,236 unsigned latency_ms,237 unsigned options,238 void **p_state );239 PJ_DECL(pj_status_t) speex_aec_destroy(void *state );240 PJ_DECL(pj_status_t) speex_aec_playback(void *state,241 pj_int16_t *play_frm );242 PJ_DECL(pj_status_t) speex_aec_capture(void *state,243 pj_int16_t *rec_frm,244 unsigned options );245 PJ_DECL(pj_status_t) speex_aec_cancel_echo(void *state,246 pj_int16_t *rec_frm,247 const pj_int16_t *play_frm,248 unsigned options,249 void *reserved );250 251 229 252 230 enum -
pjproject/trunk/pjmedia/src/pjmedia/echo_suppress.c
r1266 r1417 26 26 #include <pj/pool.h> 27 27 28 #include "echo_internal.h" 28 29 29 30 #define THIS_FILE "echo_suppress.c" … … 41 42 unsigned tail_ms; 42 43 } echo_supp; 43 44 45 46 /*47 * Prototypes.48 */49 PJ_DECL(pj_status_t) echo_supp_create(pj_pool_t *pool,50 unsigned clock_rate,51 unsigned samples_per_frame,52 unsigned tail_ms,53 unsigned latency_ms,54 unsigned options,55 void **p_state );56 PJ_DECL(pj_status_t) echo_supp_destroy(void *state);57 PJ_DECL(pj_status_t) echo_supp_playback(void *state,58 pj_int16_t *play_frm );59 PJ_DECL(pj_status_t) echo_supp_capture(void *state,60 pj_int16_t *rec_frm,61 unsigned options );62 PJ_DECL(pj_status_t) echo_supp_cancel_echo(void *state,63 pj_int16_t *rec_frm,64 const pj_int16_t *play_frm,65 unsigned options,66 void *reserved );67 44 68 45 -
pjproject/trunk/pjmedia/src/pjmedia/endpoint.c
r1391 r1417 51 51 52 52 53 /**54 * Defined in pjmedia/errno.c55 *56 * Get error message for the specified error code. Note that this57 * function is only able to decode PJMEDIA specific error code.58 * Application should use pj_strerror(), which should be able to59 * decode all error codes belonging to all subsystems (e.g. pjlib,60 * pjmedia, pjsip, etc).61 *62 * @param status The error code.63 * @param buffer The buffer where to put the error message.64 * @param bufsize Size of the buffer.65 *66 * @return The error message as NULL terminated string,67 * wrapped with pj_str_t.68 */69 PJ_DECL(pj_str_t) pjmedia_strerror( pj_status_t status, char *buffer,70 pj_size_t bufsize);71 72 53 73 54 /* Worker thread proc. */ -
pjproject/trunk/pjmedia/src/pjmedia/g711.c
r1266 r1417 43 43 #define SAMPLES_PER_FRAME (8000 * PTIME / 1000) /* 80 samples */ 44 44 45 /* These are the only public functions exported to applications */46 PJ_DECL(pj_status_t) g711_init_factory (pjmedia_codec_factory *factory,47 pj_pool_t *pool);48 49 45 /* Prototypes for G711 factory */ 50 46 static pj_status_t g711_test_alloc( pjmedia_codec_factory *factory, -
pjproject/trunk/pjmedia/src/pjmedia/mem_capture.c
r1266 r1417 52 52 53 53 54 PJ_DE CL(pj_status_t) pjmedia_mem_capture_create(pj_pool_t *pool,54 PJ_DEF(pj_status_t) pjmedia_mem_capture_create( pj_pool_t *pool, 55 55 void *buffer, 56 56 pj_size_t size, … … 105 105 * end of buffer. 106 106 */ 107 PJ_DEF(pj_status_t) 108 pjmedia_mem_capture_set_eof_cb( pjmedia_port *port, 107 PJ_DEF(pj_status_t) pjmedia_mem_capture_set_eof_cb( pjmedia_port *port, 109 108 void *user_data, 110 109 pj_status_t (*cb)(pjmedia_port *port, -
pjproject/trunk/pjmedia/src/pjmedia/mem_player.c
r1266 r1417 106 106 * end of buffer. 107 107 */ 108 PJ_DEF(pj_status_t) 109 pjmedia_mem_player_set_eof_cb( pjmedia_port *port, 108 PJ_DEF(pj_status_t) pjmedia_mem_player_set_eof_cb( pjmedia_port *port, 110 109 void *user_data, 111 110 pj_status_t (*cb)(pjmedia_port *port, -
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r1266 r1417 132 132 } 133 133 134 PJ_DEF(pjmedia_sdp_attr*) 135 pjmedia_sdp_attr_find (unsigned count, 136 pjmedia_sdp_attr *const attr_array[], 137 const pj_str_t *name, 138 const pj_str_t *c_fmt) 134 PJ_DEF(pjmedia_sdp_attr*) pjmedia_sdp_attr_find (unsigned count, 135 pjmedia_sdp_attr *const attr_array[], 136 const pj_str_t *name, 137 const pj_str_t *c_fmt) 139 138 { 140 139 unsigned i; … … 159 158 } 160 159 161 PJ_DEF(pjmedia_sdp_attr*) 162 pjmedia_sdp_attr_find2(unsigned count, 163 pjmedia_sdp_attr *const attr_array[], 164 const char *c_name, 165 const pj_str_t *c_fmt) 160 PJ_DEF(pjmedia_sdp_attr*) pjmedia_sdp_attr_find2(unsigned count, 161 pjmedia_sdp_attr *const attr_array[], 162 const char *c_name, 163 const pj_str_t *c_fmt) 166 164 { 167 165 pj_str_t name; … … 616 614 } 617 615 618 PJ_DEF(pjmedia_sdp_attr*) 619 pjmedia_sdp_media_find_attr(const pjmedia_sdp_media *m,620 616 PJ_DEF(pjmedia_sdp_attr*) pjmedia_sdp_media_find_attr( 617 const pjmedia_sdp_media *m, 618 const pj_str_t *name, const pj_str_t *fmt) 621 619 { 622 620 PJ_ASSERT_RETURN(m && name, NULL); … … 626 624 627 625 628 PJ_DEF(pjmedia_sdp_attr*) 629 pjmedia_sdp_media_find_attr2(const pjmedia_sdp_media *m,630 626 PJ_DEF(pjmedia_sdp_attr*) pjmedia_sdp_media_find_attr2( 627 const pjmedia_sdp_media *m, 628 const char *name, const pj_str_t *fmt) 631 629 { 632 630 PJ_ASSERT_RETURN(m && name, NULL); … … 641 639 } 642 640 643 PJ_DEF(unsigned) 644 pjmedia_sdp_media_remove_all_attr(pjmedia_sdp_media *m, 645 const char *name) 641 PJ_DEF(unsigned) pjmedia_sdp_media_remove_all_attr(pjmedia_sdp_media *m, 642 const char *name) 646 643 { 647 644 return pjmedia_sdp_attr_remove_all(&m->attr_count, m->attr, name); 648 645 } 649 646 650 PJ_DEF(pj_status_t) 651 pjmedia_sdp_media_remove_attr(pjmedia_sdp_media *m, 652 pjmedia_sdp_attr *attr) 647 PJ_DEF(pj_status_t) pjmedia_sdp_media_remove_attr(pjmedia_sdp_media *m, 648 pjmedia_sdp_attr *attr) 653 649 { 654 650 return pjmedia_sdp_attr_remove(&m->attr_count, m->attr, attr); … … 1129 1125 * Clone session 1130 1126 */ 1131 PJ_DEF(pjmedia_sdp_session*) 1132 pjmedia_sdp_session_clone( pj_pool_t *pool, 1133 const pjmedia_sdp_session *rhs) 1127 PJ_DEF(pjmedia_sdp_session*) pjmedia_sdp_session_clone( pj_pool_t *pool, 1128 const pjmedia_sdp_session *rhs) 1134 1129 { 1135 1130 pjmedia_sdp_session *sess; -
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r1379 r1417 67 67 * Create with local offer. 68 68 */ 69 PJ_DEF(pj_status_t) 70 pjmedia_sdp_neg_create_w_local_offer( pj_pool_t *pool, 69 PJ_DEF(pj_status_t) pjmedia_sdp_neg_create_w_local_offer( pj_pool_t *pool, 71 70 const pjmedia_sdp_session *local, 72 71 pjmedia_sdp_neg **p_neg) … … 99 98 * Create with remote offer and initial local offer/answer. 100 99 */ 101 PJ_DEF(pj_status_t) 102 pjmedia_sdp_neg_create_w_remote_offer(pj_pool_t *pool, 100 PJ_DEF(pj_status_t) pjmedia_sdp_neg_create_w_remote_offer(pj_pool_t *pool, 103 101 const pjmedia_sdp_session *initial, 104 102 const pjmedia_sdp_session *remote, … … 148 146 * Set codec order preference. 149 147 */ 150 PJ_DEF(pj_status_t) 151 pjmedia_sdp_neg_set_prefer_remote_codec_order(pjmedia_sdp_neg *neg,152 148 PJ_DEF(pj_status_t) pjmedia_sdp_neg_set_prefer_remote_codec_order( 149 pjmedia_sdp_neg *neg, 150 pj_bool_t prefer_remote) 153 151 { 154 152 PJ_ASSERT_RETURN(neg, PJ_EINVAL); … … 161 159 * Get SDP negotiator state. 162 160 */ 163 PJ_DEF(pjmedia_sdp_neg_state) 164 pjmedia_sdp_neg_get_state( pjmedia_sdp_neg *neg ) 161 PJ_DEF(pjmedia_sdp_neg_state) pjmedia_sdp_neg_get_state( pjmedia_sdp_neg *neg ) 165 162 { 166 163 /* Check arguments are valid. */ … … 170 167 171 168 172 PJ_DEF(pj_status_t) 173 pjmedia_sdp_neg_get_active_local( pjmedia_sdp_neg *neg, 174 const pjmedia_sdp_session **local) 169 PJ_DEF(pj_status_t) pjmedia_sdp_neg_get_active_local( pjmedia_sdp_neg *neg, 170 const pjmedia_sdp_session **local) 175 171 { 176 172 PJ_ASSERT_RETURN(neg && local, PJ_EINVAL); … … 182 178 183 179 184 PJ_DEF(pj_status_t) 185 pjmedia_sdp_neg_get_active_remote( pjmedia_sdp_neg *neg, 180 PJ_DEF(pj_status_t) pjmedia_sdp_neg_get_active_remote( pjmedia_sdp_neg *neg, 186 181 const pjmedia_sdp_session **remote) 187 182 { … … 194 189 195 190 196 PJ_DEF(pj_bool_t) 197 pjmedia_sdp_neg_was_answer_remote(pjmedia_sdp_neg *neg) 191 PJ_DEF(pj_bool_t) pjmedia_sdp_neg_was_answer_remote(pjmedia_sdp_neg *neg) 198 192 { 199 193 PJ_ASSERT_RETURN(neg, PJ_FALSE); … … 203 197 204 198 205 PJ_DEF(pj_status_t) 206 pjmedia_sdp_neg_get_neg_remote( pjmedia_sdp_neg *neg, 199 PJ_DEF(pj_status_t) pjmedia_sdp_neg_get_neg_remote( pjmedia_sdp_neg *neg, 207 200 const pjmedia_sdp_session **remote) 208 201 { … … 214 207 } 215 208 216 PJ_DEF(pj_status_t) 217 pjmedia_sdp_neg_get_neg_local( pjmedia_sdp_neg *neg, 209 PJ_DEF(pj_status_t) pjmedia_sdp_neg_get_neg_local( pjmedia_sdp_neg *neg, 218 210 const pjmedia_sdp_session **local) 219 211 { … … 229 221 * Modify local SDP and wait for remote answer. 230 222 */ 231 PJ_DEF(pj_status_t) 232 pjmedia_sdp_neg_modify_local_offer( pj_pool_t *pool, 223 PJ_DEF(pj_status_t) pjmedia_sdp_neg_modify_local_offer( pj_pool_t *pool, 233 224 pjmedia_sdp_neg *neg, 234 225 const pjmedia_sdp_session *local) … … 250 241 251 242 252 PJ_DEF(pj_status_t) 253 pjmedia_sdp_neg_send_local_offer( pj_pool_t *pool, 243 PJ_DEF(pj_status_t) pjmedia_sdp_neg_send_local_offer( pj_pool_t *pool, 254 244 pjmedia_sdp_neg *neg, 255 245 const pjmedia_sdp_session **offer) … … 286 276 287 277 288 PJ_DEF(pj_status_t) 289 pjmedia_sdp_neg_set_remote_answer( pj_pool_t *pool, 278 PJ_DEF(pj_status_t) pjmedia_sdp_neg_set_remote_answer( pj_pool_t *pool, 290 279 pjmedia_sdp_neg *neg, 291 280 const pjmedia_sdp_session *remote) … … 309 298 } 310 299 311 PJ_DEF(pj_status_t) 312 pjmedia_sdp_neg_set_remote_offer( pj_pool_t *pool, 300 PJ_DEF(pj_status_t) pjmedia_sdp_neg_set_remote_offer( pj_pool_t *pool, 313 301 pjmedia_sdp_neg *neg, 314 302 const pjmedia_sdp_session *remote) … … 331 319 } 332 320 333 PJ_DEF(pj_status_t) 334 pjmedia_sdp_neg_set_local_answer( pj_pool_t *pool, 321 PJ_DEF(pj_status_t) pjmedia_sdp_neg_set_local_answer( pj_pool_t *pool, 335 322 pjmedia_sdp_neg *neg, 336 323 const pjmedia_sdp_session *local) -
pjproject/trunk/pjmedia/src/pjmedia/session.c
r1266 r1417 479 479 * Initialize session info from SDP session descriptors. 480 480 */ 481 PJ_DEF(pj_status_t) 482 pjmedia_session_info_from_sdp( pj_pool_t *pool, 481 PJ_DEF(pj_status_t) pjmedia_session_info_from_sdp( pj_pool_t *pool, 483 482 pjmedia_endpt *endpt, 484 483 unsigned max_streams, … … 761 760 * Install DTMF callback. 762 761 */ 763 PJ_DEF(pj_status_t) 764 pjmedia_session_set_dtmf_callback(pjmedia_session *session, 762 PJ_DEF(pj_status_t) pjmedia_session_set_dtmf_callback(pjmedia_session *session, 765 763 unsigned index, 766 764 void (*cb)(pjmedia_stream*, -
pjproject/trunk/pjmedia/src/pjmedia/splitcomb.c
r1266 r1417 217 217 * Create reverse phase port for the specified channel. 218 218 */ 219 PJ_DEF(pj_status_t) 220 pjmedia_splitcomb_create_rev_channel( pj_pool_t *pool, 219 PJ_DEF(pj_status_t) pjmedia_splitcomb_create_rev_channel( pj_pool_t *pool, 221 220 pjmedia_port *splitcomb, 222 221 unsigned ch_num, -
pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
r1405 r1417 325 325 * Get media socket info. 326 326 */ 327 PJ_DEF(pj_status_t) 328 pjmedia_transport_udp_get_info( pjmedia_transport *tp, 327 PJ_DEF(pj_status_t) pjmedia_transport_udp_get_info( pjmedia_transport *tp, 329 328 pjmedia_transport_udp_info *inf) 330 329 { -
pjproject/trunk/pjmedia/src/pjmedia/wav_player.c
r1321 r1417 456 456 * end of file. 457 457 */ 458 PJ_DEF(pj_status_t) 459 pjmedia_wav_player_set_eof_cb( pjmedia_port *port, 458 PJ_DEF(pj_status_t) pjmedia_wav_player_set_eof_cb( pjmedia_port *port, 460 459 void *user_data, 461 460 pj_status_t (*cb)(pjmedia_port *port, -
pjproject/trunk/pjmedia/src/pjmedia/wav_playlist.c
r1339 r1417 539 539 * end of the last file. 540 540 */ 541 PJ_DEF(pj_status_t) 542 pjmedia_wav_playlist_set_eof_cb(pjmedia_port *port, 541 PJ_DEF(pj_status_t) pjmedia_wav_playlist_set_eof_cb(pjmedia_port *port, 543 542 void *user_data, 544 543 pj_status_t (*cb)(pjmedia_port *port, -
pjproject/trunk/pjmedia/src/pjmedia/wav_writer.c
r1266 r1417 195 195 * Register callback. 196 196 */ 197 PJ_DEF(pj_status_t) 198 pjmedia_wav_writer_port_set_cb( pjmedia_port *port, 197 PJ_DEF(pj_status_t) pjmedia_wav_writer_port_set_cb( pjmedia_port *port, 199 198 pj_size_t pos, 200 199 void *user_data, -
pjproject/trunk/pjnath/include/pjnath/stun_msg.h
r1374 r1417 1418 1418 * @return PJ_SUCCESS on success or the appropriate error code. 1419 1419 */ 1420 PJ_DE F(pj_status_t) pj_stun_uint64_attr_create(pj_pool_t *pool,1420 PJ_DECL(pj_status_t) pj_stun_uint64_attr_create(pj_pool_t *pool, 1421 1421 int attr_type, 1422 1422 const pj_timestamp *value, -
pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c
r1405 r1417 1197 1197 app.thread_count = 1; 1198 1198 app.client.job_count = DEFAULT_COUNT; 1199 app.client.method = pjsip_options_method;1199 app.client.method = *pjsip_get_options_method(); 1200 1200 app.client.job_window = c = JOB_WINDOW; 1201 1201 app.client.timeout = 60; -
pjproject/trunk/pjsip-apps/src/samples/stateful_proxy.c
r1127 r1417 252 252 /* Find the UAS INVITE transaction */ 253 253 pjsip_tsx_create_key(rdata->tp_info.pool, &key, PJSIP_UAS_ROLE, 254 &pjsip_invite_method, rdata);254 pjsip_get_invite_method(), rdata); 255 255 invite_uas = pjsip_tsx_layer_find_tsx(&key, PJ_TRUE); 256 256 if (!invite_uas) { -
pjproject/trunk/pjsip-apps/src/symbian_ua/ua.cpp
r1249 r1417 439 439 "Menu:\n" 440 440 " d Dump states\n" 441 " D Dump all states (detail)\n"441 " D Dump states detail\n" 442 442 " P Dump pool factory\n" 443 " m Make call to" SIP_DST_URI "\n"443 " m Call " SIP_DST_URI "\n" 444 444 " a Answer call\n" 445 445 " h Hangup all calls\n" 446 " s Subscribe to" SIP_DST_URI "\n"446 " s Subscribe " SIP_DST_URI "\n" 447 447 " S Unsubscribe presence\n" 448 448 " o Set account online\n" … … 468 468 case 'p': 469 469 case 'P': 470 pj_pool_factory_dump( &pjsua_var.cp.factory, PJ_TRUE);470 pj_pool_factory_dump(pjsua_get_pool_factory(), PJ_TRUE); 471 471 break; 472 472 case 'm': -
pjproject/trunk/pjsip/include/pjsip-simple/errno.h
r974 r1417 20 20 #define __PJSIP_SIMPLE_ERRNO_H__ 21 21 22 #include <pjsip/sip_errno.h> 22 23 23 #include <pjsip/sip_errno.h> 24 PJ_BEGIN_DECL 24 25 25 26 /** … … 88 89 #define PJSIP_SIMPLE_EBADISCOMPOSE (PJSIP_SIMPLE_ERRNO_START+40) /*270040*/ 89 90 91 /** 92 * Get error message for the specified error code. Note that this 93 * function is only able to decode PJSIP-SIMPLE specific error code. 94 * Application should use pj_strerror(), which should be able to 95 * decode all error codes belonging to all subsystems (e.g. pjlib, 96 * pjmedia, pjsip, etc). 97 * 98 * @param status The error code. 99 * @param buffer The buffer where to put the error message. 100 * @param bufsize Size of the buffer. 101 * 102 * @return The error message as NULL terminated string, 103 * wrapped with pj_str_t. 104 */ 105 PJ_DECL(pj_str_t) pjsipsimple_strerror(pj_status_t status, 106 char *buffer, pj_size_t bufsize); 107 108 109 PJ_END_DECL 90 110 91 111 #endif /* __PJSIP_SIMPLE_ERRNO_H__ */ -
pjproject/trunk/pjsip/include/pjsip-simple/evsub.h
r974 r1417 203 203 204 204 /** 205 * SUBSCRIBE method constant. @see pjsip_get_subscribe_method() 206 */ 207 PJ_DECL_DATA(const pjsip_method) pjsip_subscribe_method; 208 209 /** 210 * NOTIFY method constant. @see pjsip_get_notify_method() 211 */ 212 PJ_DECL_DATA(const pjsip_method) pjsip_notify_method; 213 214 /** 205 215 * SUBSCRIBE method constant. 206 216 */ 207 extern const pjsip_method pjsip_subscribe_method;217 PJ_DECL(const pjsip_method*) pjsip_get_subscribe_method(); 208 218 209 219 /** 210 220 * NOTIFY method constant. 211 221 */ 212 extern const pjsip_method pjsip_notify_method; 213 222 PJ_DECL(const pjsip_method*) pjsip_get_notify_method(); 214 223 215 224 -
pjproject/trunk/pjsip/include/pjsip-simple/evsub_msg.h
r974 r1417 105 105 * Initialize parser for event notify module. 106 106 */ 107 PJ_DE F(void) pjsip_evsub_init_parser(void);107 PJ_DECL(void) pjsip_evsub_init_parser(void); 108 108 109 109 -
pjproject/trunk/pjsip/include/pjsip-ua/sip_xfer.h
r974 r1417 62 62 63 63 64 /** 65 * Declaration for REFER method constant. 66 */ 67 extern const pjsip_method pjsip_refer_method; 64 /** Declaration for REFER method constant. */ 65 PJ_DECL_DATA(const pjsip_method) pjsip_refer_method; 66 67 /** Get REFER method constant */ 68 PJ_DECL(const pjsip_method*) pjsip_get_refer_method(); 68 69 69 70 -
pjproject/trunk/pjsip/include/pjsip/sip_config.h
r1402 r1417 468 468 469 469 /* Message/URL related constants. */ 470 #define PJSIP_MAX_CALL_ID_LEN PJ_GUID_STRING_LENGTH471 #define PJSIP_MAX_TAG_LEN PJ_GUID_STRING_LENGTH472 #define PJSIP_MAX_BRANCH_LEN (PJSIP_RFC3261_BRANCH_LEN + PJ_GUID_STRING_LENGTH+ 2)470 #define PJSIP_MAX_CALL_ID_LEN pj_GUID_STRING_LENGTH() 471 #define PJSIP_MAX_TAG_LEN pj_GUID_STRING_LENGTH() 472 #define PJSIP_MAX_BRANCH_LEN (PJSIP_RFC3261_BRANCH_LEN + pj_GUID_STRING_LENGTH() + 2) 473 473 #define PJSIP_MAX_HNAME_LEN 64 474 474 -
pjproject/trunk/pjsip/include/pjsip/sip_dialog.h
r979 r1417 87 87 } pjsip_dialog_state; 88 88 89 89 90 /** 90 91 * This structure describes the dialog structure. Application MUST NOT … … 127 128 pj_bool_t uac_has_2xx;/**< UAC has received 2xx response? */ 128 129 pj_bool_t secure; /**< Use secure transport? */ 130 pj_bool_t add_allow; /**< Add Allow header in requests? */ 129 131 pjsip_cid_hdr *call_id; /**< Call-ID header. */ 130 132 pjsip_route_hdr route_set; /**< Route set. */ -
pjproject/trunk/pjsip/include/pjsip/sip_errno.h
r1382 r1417 488 488 489 489 490 /** 491 * Get error message for the specified error code. Note that this 492 * function is only able to decode PJSIP specific error code. 493 * Application should use pj_strerror(), which should be able to 494 * decode all error codes belonging to all subsystems (e.g. pjlib, 495 * pjmedia, pjsip, etc). 496 * 497 * @param status The error code. 498 * @param buffer The buffer where to put the error message. 499 * @param bufsize Size of the buffer. 500 * 501 * @return The error message as NULL terminated string, 502 * wrapped with pj_str_t. 503 */ 504 PJ_DECL(pj_str_t) pjsip_strerror(pj_status_t status, 505 char *buffer, pj_size_t bufsize); 490 506 491 507 … … 498 514 499 515 #endif /* __PJSIP_SIP_ERRNO_H__ */ 516 -
pjproject/trunk/pjsip/include/pjsip/sip_event.h
r974 r1417 219 219 * @note defined in sip_util.c 220 220 */ 221 PJ_DE F(const char *) pjsip_event_str(pjsip_event_id_e e);221 PJ_DECL(const char *) pjsip_event_str(pjsip_event_id_e e); 222 222 223 223 /** -
pjproject/trunk/pjsip/include/pjsip/sip_msg.h
r1127 r1417 85 85 * For convenience, standard method structures are defined in the library. 86 86 */ 87 extern const pjsip_method pjsip_invite_method; /**< INVITE structure. */ 88 extern const pjsip_method pjsip_cancel_method; /**< CANCEL structure. */ 89 extern const pjsip_method pjsip_ack_method; /**< ACK structure. */ 90 extern const pjsip_method pjsip_bye_method; /**< BYE structure. */ 91 extern const pjsip_method pjsip_register_method; /**< REGISTER structure.*/ 92 extern const pjsip_method pjsip_options_method; /**< OPTIONS structure. */ 93 87 /** INVITE method constant. @see pjsip_get_invite_method() */ 88 PJ_DECL_DATA(const pjsip_method) pjsip_invite_method; 89 90 /** CANCEL method constant. @see pjsip_get_cancel_method() */ 91 PJ_DECL_DATA(const pjsip_method) pjsip_cancel_method; 92 93 /** ACK method constant. @see pjsip_get_ack_method() */ 94 PJ_DECL_DATA(const pjsip_method) pjsip_ack_method; 95 96 /** BYE method constant. @see pjsip_get_bye_method() */ 97 PJ_DECL_DATA(const pjsip_method) pjsip_bye_method; 98 99 /** REGISTER method constant. @see pjsip_get_register_method() */ 100 PJ_DECL_DATA(const pjsip_method) pjsip_register_method; 101 102 /** OPTIONS method constant. @see pjsip_get_options_method() */ 103 PJ_DECL_DATA(const pjsip_method) pjsip_options_method; 104 105 /* 106 * Accessor functions for standard SIP methods. 107 */ 108 /** Get INVITE method constant. */ 109 PJ_DECL(const pjsip_method*) pjsip_get_invite_method(void); 110 /** Get CANCEL method constant. */ 111 PJ_DECL(const pjsip_method*) pjsip_get_cancel_method(void); 112 /** Get ACK method constant. */ 113 PJ_DECL(const pjsip_method*) pjsip_get_ack_method(void); 114 /** Get BYE method constant. */ 115 PJ_DECL(const pjsip_method*) pjsip_get_bye_method(void); 116 /** Get REGISTER method constant.*/ 117 PJ_DECL(const pjsip_method*) pjsip_get_register_method(void); 118 /** Get OPTIONS method constant. */ 119 PJ_DECL(const pjsip_method*) pjsip_get_options_method(void); 120 121 122 /* 123 * Accessor functions 124 */ 94 125 95 126 /** -
pjproject/trunk/pjsip/include/pjsip/sip_parser.h
r974 r1417 316 316 317 317 318 /* 319 * Various specification used in parsing, exported here as extern for other 320 * parsers. 321 */ 322 extern pj_cis_t 323 pjsip_HOST_SPEC, /**< For scanning host part. */ 324 pjsip_DIGIT_SPEC, /**< Decimal digits */ 325 pjsip_ALPHA_SPEC, /**< Alpha (A-Z, a-z) */ 326 pjsip_ALNUM_SPEC, /**< Decimal + Alpha. */ 327 pjsip_TOKEN_SPEC, /**< Token. */ 328 pjsip_TOKEN_SPEC_ESC, /**< Token without '%' character */ 329 pjsip_HEX_SPEC, /**< Hexadecimal digits. */ 330 pjsip_PARAM_CHAR_SPEC, /**< For scanning pname (or pvalue when it's 331 not quoted.) in URI */ 332 pjsip_PARAM_CHAR_SPEC_ESC, /**< Variant without the escape ('%') char */ 333 pjsip_HDR_CHAR_SPEC, /**< Chars in hname/havalue in URL. */ 334 pjsip_HDR_CHAR_SPEC_ESC, /**< Variant without the escape ('%') char */ 335 pjsip_PROBE_USER_HOST_SPEC, /**< Hostname characters. */ 336 pjsip_PASSWD_SPEC, /**< Password. */ 337 pjsip_PASSWD_SPEC_ESC, /**< Variant without the escape ('%') char */ 338 pjsip_USER_SPEC, /**< User */ 339 pjsip_USER_SPEC_ESC, /**< Variant without the escape ('%') char */ 340 pjsip_NOT_NEWLINE, /**< For eating up header, basicly any chars 341 except newlines or zero. */ 342 pjsip_NOT_COMMA_OR_NEWLINE, /**< Array elements. */ 343 pjsip_DISPLAY_SPEC; /**< Used when searching for display name. */ 344 345 /* 346 * Various string constants. 347 */ 348 extern const pj_str_t pjsip_USER_STR, /**< "user" string constant. */ 349 pjsip_METHOD_STR, /**< "method" string constant */ 350 pjsip_TRANSPORT_STR, /**< "transport" string const. */ 351 pjsip_MADDR_STR, /**< "maddr" string const. */ 352 pjsip_LR_STR, /**< "lr" string const. */ 353 pjsip_SIP_STR, /**< "sip" string constant. */ 354 pjsip_SIPS_STR, /**< "sips" string constant. */ 355 pjsip_TEL_STR, /**< "tel" string constant. */ 356 pjsip_BRANCH_STR, /**< "branch" string constant. */ 357 pjsip_TTL_STR, /**< "ttl" string constant. */ 358 pjsip_RECEIVED_STR, /**< "received" string const. */ 359 pjsip_Q_STR, /**< "q" string constant. */ 360 pjsip_EXPIRES_STR, /**< "expires" string constant. */ 361 pjsip_TAG_STR, /**< "tag" string constant. */ 362 pjsip_RPORT_STR; /**< "rport" string const. */ 318 /** 319 * Parser constants. @see pjsip_parser_const() 320 */ 321 typedef struct pjsip_parser_const_t 322 { 323 const pj_str_t pjsip_USER_STR; /**< "user" string constant. */ 324 const pj_str_t pjsip_METHOD_STR; /**< "method" string constant */ 325 const pj_str_t pjsip_TRANSPORT_STR; /**< "transport" string const. */ 326 const pj_str_t pjsip_MADDR_STR; /**< "maddr" string const. */ 327 const pj_str_t pjsip_LR_STR; /**< "lr" string const. */ 328 const pj_str_t pjsip_SIP_STR; /**< "sip" string constant. */ 329 const pj_str_t pjsip_SIPS_STR; /**< "sips" string constant. */ 330 const pj_str_t pjsip_TEL_STR; /**< "tel" string constant. */ 331 const pj_str_t pjsip_BRANCH_STR; /**< "branch" string constant. */ 332 const pj_str_t pjsip_TTL_STR; /**< "ttl" string constant. */ 333 const pj_str_t pjsip_RECEIVED_STR; /**< "received" string const. */ 334 const pj_str_t pjsip_Q_STR; /**< "q" string constant. */ 335 const pj_str_t pjsip_EXPIRES_STR; /**< "expires" string constant. */ 336 const pj_str_t pjsip_TAG_STR; /**< "tag" string constant. */ 337 const pj_str_t pjsip_RPORT_STR; /**< "rport" string const. */ 338 339 pj_cis_t pjsip_HOST_SPEC; /**< For scanning host part. */ 340 pj_cis_t pjsip_DIGIT_SPEC; /**< Decimal digits */ 341 pj_cis_t pjsip_ALPHA_SPEC; /**< Alpha (A-Z, a-z) */ 342 pj_cis_t pjsip_ALNUM_SPEC; /**< Decimal + Alpha. */ 343 pj_cis_t pjsip_TOKEN_SPEC; /**< Token. */ 344 pj_cis_t pjsip_TOKEN_SPEC_ESC; /**< Token without '%' character */ 345 pj_cis_t pjsip_HEX_SPEC; /**< Hexadecimal digits. */ 346 pj_cis_t pjsip_PARAM_CHAR_SPEC; /**< For scanning pname (or pvalue 347 when it's not quoted.) in URI */ 348 pj_cis_t pjsip_PARAM_CHAR_SPEC_ESC; /**< Variant without the escape ('%') 349 char */ 350 pj_cis_t pjsip_HDR_CHAR_SPEC; /**< Chars in hname/havalue in URL. */ 351 pj_cis_t pjsip_HDR_CHAR_SPEC_ESC; /**< Variant without the escape ('%') 352 char */ 353 pj_cis_t pjsip_PROBE_USER_HOST_SPEC;/**< Hostname characters. */ 354 pj_cis_t pjsip_PASSWD_SPEC; /**< Password. */ 355 pj_cis_t pjsip_PASSWD_SPEC_ESC; /**< Variant without the escape ('%') 356 char */ 357 pj_cis_t pjsip_USER_SPEC; /**< User */ 358 pj_cis_t pjsip_USER_SPEC_ESC; /**< Variant without the escape ('%') 359 char */ 360 pj_cis_t pjsip_USER_SPEC_LENIENT; /**< User, with additional '#' char */ 361 pj_cis_t pjsip_USER_SPEC_LENIENT_ESC;/**< pjsip_USER_SPEC_ESC with '#' */ 362 pj_cis_t pjsip_NOT_NEWLINE; /**< For eating up header, basically 363 any chars except newlines or 364 zero. */ 365 pj_cis_t pjsip_NOT_COMMA_OR_NEWLINE;/**< Array elements. */ 366 pj_cis_t pjsip_DISPLAY_SPEC; /**< Used when searching for display 367 name. */ 368 369 } pjsip_parser_const_t; 370 371 372 /** 373 * Get parser constants. 374 */ 375 PJ_DECL(const pjsip_parser_const_t*) pjsip_parser_const(void); 363 376 364 377 … … 372 385 373 386 /* Parse parameter in header (matching the character as token) */ 374 void pjsip_parse_param_imp(pj_scanner *scanner, pj_pool_t *pool,375 pj_str_t *pname, pj_str_t *pvalue,376 unsigned opt);387 PJ_DECL(void) pjsip_parse_param_imp(pj_scanner *scanner, pj_pool_t *pool, 388 pj_str_t *pname, pj_str_t *pvalue, 389 unsigned opt); 377 390 /* Parse parameter in URL (matching the character as paramchar) */ 378 void pjsip_parse_uri_param_imp( pj_scanner *scanner, pj_pool_t *pool, 379 pj_str_t *pname, pj_str_t *pvalue, 380 unsigned opt); 381 void pjsip_concat_param_imp( pj_str_t *param, pj_pool_t *pool, 382 const pj_str_t *pname, const pj_str_t *pvalue, 383 int sepchar); 384 void pjsip_parse_end_hdr_imp ( pj_scanner *scanner ); 391 PJ_DECL(void) pjsip_parse_uri_param_imp(pj_scanner *scanner, pj_pool_t *pool, 392 pj_str_t *pname, pj_str_t *pvalue, 393 unsigned opt); 394 PJ_DECL(void) pjsip_concat_param_imp(pj_str_t *param, pj_pool_t *pool, 395 const pj_str_t *pname, 396 const pj_str_t *pvalue, 397 int sepchar); 398 PJ_DECL(void) pjsip_parse_end_hdr_imp ( pj_scanner *scanner ); 385 399 386 400 PJ_END_DECL -
pjproject/trunk/pjsip/include/pjsip/sip_ua_layer.h
r974 r1417 115 115 * @param detail If non-zero, list of dialogs will be printed. 116 116 */ 117 PJ_DE F(void) pjsip_ua_dump(pj_bool_t detail);117 PJ_DECL(void) pjsip_ua_dump(pj_bool_t detail); 118 118 119 119 /** -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r1367 r1417 475 475 * \endcode 476 476 */ 477 PJ_INLINE(void) pjsua_logging_config_default(pjsua_logging_config *cfg) 478 { 479 pj_bzero(cfg, sizeof(*cfg)); 480 481 cfg->msg_logging = PJ_TRUE; 482 cfg->level = 5; 483 cfg->console_level = 4; 484 cfg->decor = PJ_LOG_HAS_SENDER | PJ_LOG_HAS_TIME | 485 PJ_LOG_HAS_MICRO_SEC | PJ_LOG_HAS_NEWLINE; 486 } 477 PJ_DECL(void) pjsua_logging_config_default(pjsua_logging_config *cfg); 478 487 479 488 480 /** … … 497 489 * one config to another, but this has not been tested. 498 490 */ 499 PJ_INLINE(void) pjsua_logging_config_dup(pj_pool_t *pool, 500 pjsua_logging_config *dst, 501 const pjsua_logging_config *src) 502 { 503 pj_memcpy(dst, src, sizeof(*src)); 504 pj_strdup_with_null(pool, &dst->log_filename, &src->log_filename); 505 } 506 491 PJ_DECL(void) pjsua_logging_config_dup(pj_pool_t *pool, 492 pjsua_logging_config *dst, 493 const pjsua_logging_config *src); 507 494 508 495 … … 1016 1003 1017 1004 */ 1018 PJ_INLINE(void) pjsua_config_default(pjsua_config *cfg) 1019 { 1020 pj_bzero(cfg, sizeof(*cfg)); 1021 1022 cfg->max_calls = 4; 1023 cfg->thread_cnt = 1; 1024 } 1005 PJ_DECL(void) pjsua_config_default(pjsua_config *cfg); 1025 1006 1026 1007 … … 1036 1017 * variable to another, but this has not been tested. 1037 1018 */ 1038 PJ_INLINE(void) pjsip_cred_dup( pj_pool_t *pool, 1039 pjsip_cred_info *dst, 1040 const pjsip_cred_info *src) 1041 { 1042 pj_strdup_with_null(pool, &dst->realm, &src->realm); 1043 pj_strdup_with_null(pool, &dst->scheme, &src->scheme); 1044 pj_strdup_with_null(pool, &dst->username, &src->username); 1045 pj_strdup_with_null(pool, &dst->data, &src->data); 1046 1047 } 1019 PJ_DECL(void) pjsip_cred_dup( pj_pool_t *pool, 1020 pjsip_cred_info *dst, 1021 const pjsip_cred_info *src); 1048 1022 1049 1023 … … 1055 1029 * @param src Source config. 1056 1030 */ 1057 PJ_INLINE(void) pjsua_config_dup(pj_pool_t *pool, 1058 pjsua_config *dst, 1059 const pjsua_config *src) 1060 { 1061 unsigned i; 1062 1063 pj_memcpy(dst, src, sizeof(*src)); 1064 1065 for (i=0; i<src->outbound_proxy_cnt; ++i) { 1066 pj_strdup_with_null(pool, &dst->outbound_proxy[i], 1067 &src->outbound_proxy[i]); 1068 } 1069 1070 for (i=0; i<src->cred_count; ++i) { 1071 pjsip_cred_dup(pool, &dst->cred_info[i], &src->cred_info[i]); 1072 } 1073 1074 pj_strdup_with_null(pool, &dst->user_agent, &src->user_agent); 1075 pj_strdup_with_null(pool, &dst->stun_domain, &src->stun_domain); 1076 pj_strdup_with_null(pool, &dst->stun_host, &src->stun_host); 1077 pj_strdup_with_null(pool, &dst->stun_relay_host, &src->stun_relay_host); 1078 } 1079 1031 PJ_DECL(void) pjsua_config_dup(pj_pool_t *pool, 1032 pjsua_config *dst, 1033 const pjsua_config *src); 1080 1034 1081 1035 … … 1138 1092 * \endcode 1139 1093 */ 1140 PJ_INLINE(void) pjsua_msg_data_init(pjsua_msg_data *msg_data) 1141 { 1142 pj_bzero(msg_data, sizeof(*msg_data)); 1143 pj_list_init(&msg_data->hdr_list); 1144 } 1145 1094 PJ_DECL(void) pjsua_msg_data_init(pjsua_msg_data *msg_data); 1146 1095 1147 1096 … … 1486 1435 * \endcode 1487 1436 */ 1488 PJ_INLINE(void) pjsua_transport_config_default(pjsua_transport_config *cfg) 1489 { 1490 pj_bzero(cfg, sizeof(*cfg)); 1491 pjsip_tls_setting_default(&cfg->tls_setting); 1492 } 1437 PJ_DECL(void) pjsua_transport_config_default(pjsua_transport_config *cfg); 1493 1438 1494 1439 … … 1504 1449 * to another in Python. 1505 1450 */ 1506 PJ_INLINE(void) pjsua_transport_config_dup(pj_pool_t *pool, 1507 pjsua_transport_config *dst, 1508 const pjsua_transport_config *src) 1509 { 1510 PJ_UNUSED_ARG(pool); 1511 pj_memcpy(dst, src, sizeof(*src)); 1512 } 1513 1451 PJ_DECL(void) pjsua_transport_config_dup(pj_pool_t *pool, 1452 pjsua_transport_config *dst, 1453 const pjsua_transport_config *src); 1514 1454 1515 1455 … … 1917 1857 * \endcode 1918 1858 */ 1919 PJ_INLINE(void) pjsua_acc_config_default(pjsua_acc_config *cfg) 1920 { 1921 pj_bzero(cfg, sizeof(*cfg)); 1922 1923 cfg->reg_timeout = PJSUA_REG_INTERVAL; 1924 cfg->transport_id = PJSUA_INVALID_ID; 1925 } 1926 1859 PJ_DECL(void) pjsua_acc_config_default(pjsua_acc_config *cfg); 1927 1860 1928 1861 … … 3065 2998 * \endcode 3066 2999 */ 3067 PJ_INLINE(void) pjsua_buddy_config_default(pjsua_buddy_config *cfg) 3068 { 3069 pj_bzero(cfg, sizeof(*cfg)); 3070 } 3000 PJ_DECL(void) pjsua_buddy_config_default(pjsua_buddy_config *cfg); 3071 3001 3072 3002 … … 3556 3486 * \endcode 3557 3487 */ 3558 PJ_INLINE(void) pjsua_media_config_default(pjsua_media_config *cfg) 3559 { 3560 pj_bzero(cfg, sizeof(*cfg)); 3561 3562 cfg->clock_rate = PJSUA_DEFAULT_CLOCK_RATE; 3563 cfg->max_media_ports = 32; 3564 cfg->has_ioqueue = PJ_TRUE; 3565 cfg->thread_cnt = 1; 3566 cfg->quality = PJSUA_DEFAULT_CODEC_QUALITY; 3567 cfg->ilbc_mode = PJSUA_DEFAULT_ILBC_MODE; 3568 cfg->ec_tail_len = PJSUA_DEFAULT_EC_TAIL_LEN; 3569 cfg->jb_init = cfg->jb_min_pre = cfg->jb_max_pre = cfg->jb_max = -1; 3570 } 3571 3488 PJ_DECL(void) pjsua_media_config_default(pjsua_media_config *cfg); 3572 3489 3573 3490 -
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r1395 r1417 50 50 }; 51 51 52 const pjsip_methodpjsip_subscribe_method =52 PJ_DEF_DATA(const pjsip_method) pjsip_subscribe_method = 53 53 { 54 54 (pjsip_method_e) PJSIP_SUBSCRIBE_METHOD, … … 56 56 }; 57 57 58 const pjsip_methodpjsip_notify_method =58 PJ_DEF_DATA(const pjsip_method) pjsip_notify_method = 59 59 { 60 60 (pjsip_method_e) PJSIP_NOTIFY_METHOD, 61 61 { "NOTIFY", 6 } 62 62 }; 63 64 /** 65 * SUBSCRIBE method constant. 66 */ 67 PJ_DEF(const pjsip_method*) pjsip_get_subscribe_method() 68 { 69 return &pjsip_subscribe_method; 70 } 71 72 /** 73 * NOTIFY method constant. 74 */ 75 PJ_DEF(const pjsip_method*) pjsip_get_notify_method() 76 { 77 return &pjsip_notify_method; 78 } 79 63 80 64 81 /* … … 1113 1130 1114 1131 /* Create NOTIFY request */ 1115 status = pjsip_dlg_create_request( sub->dlg, &pjsip_notify_method, -1,1116 &tdata);1132 status = pjsip_dlg_create_request( sub->dlg, pjsip_get_notify_method(), 1133 -1, &tdata); 1117 1134 if (status != PJ_SUCCESS) 1118 1135 goto on_return; -
pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c
r1241 r1417 62 62 char *endbuf = buf+size; 63 63 int printed; 64 const pjsip_parser_const_t *pc = pjsip_parser_const(); 64 65 65 66 copy_advance(p, hdr->name); … … 71 72 72 73 printed = pjsip_param_print_on(&hdr->other_param, p, endbuf-p, 73 &p jsip_TOKEN_SPEC,74 &p jsip_TOKEN_SPEC, ';');74 &pc->pjsip_TOKEN_SPEC, 75 &pc->pjsip_TOKEN_SPEC, ';'); 75 76 if (printed < 0) 76 77 return printed; … … 160 161 char *endbuf = buf+size; 161 162 int printed; 163 const pjsip_parser_const_t *pc = pjsip_parser_const(); 162 164 163 165 copy_advance(p, hdr->name); … … 181 183 182 184 printed = pjsip_param_print_on( &hdr->other_param, p, endbuf-p, 183 &p jsip_TOKEN_SPEC,184 &p jsip_TOKEN_SPEC,185 &pc->pjsip_TOKEN_SPEC, 186 &pc->pjsip_TOKEN_SPEC, 185 187 ';'); 186 188 if (printed < 0) … … 223 225 pjsip_event_hdr *hdr = pjsip_event_hdr_create(ctx->pool); 224 226 const pj_str_t id_param = { "id", 2 }; 225 226 pj_scan_get(ctx->scanner, &pjsip_TOKEN_SPEC, &hdr->event_type); 227 const pjsip_parser_const_t *pc = pjsip_parser_const(); 228 229 pj_scan_get(ctx->scanner, &pc->pjsip_TOKEN_SPEC, &hdr->event_type); 227 230 228 231 while (*ctx->scanner->curptr == ';') { … … 254 257 expires = { "expires", 7 }, 255 258 retry_after = { "retry-after", 11 }; 256 pj_scan_get(ctx->scanner, &pjsip_TOKEN_SPEC, &hdr->sub_state); 259 const pjsip_parser_const_t *pc = pjsip_parser_const(); 260 261 pj_scan_get(ctx->scanner, &pc->pjsip_TOKEN_SPEC, &hdr->sub_state); 257 262 258 263 while (*ctx->scanner->curptr == ';') { -
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r1390 r1417 114 114 }; 115 115 116 /* Config */117 extern pj_bool_t pjsip_include_allow_hdr_in_dlg;118 119 116 /* 120 117 * Module load() … … 224 221 pjsip_rx_data_get_info(rdata))); 225 222 226 status = pjsip_dlg_create_request(inv->dlg, &pjsip_ack_method,223 status = pjsip_dlg_create_request(inv->dlg, pjsip_get_ack_method(), 227 224 rdata->msg_info.cseq->cseq, &tdata); 228 225 if (status != PJ_SUCCESS) { … … 1109 1106 1110 1107 /* Create the INVITE request. */ 1111 status = pjsip_dlg_create_request(inv->dlg, &pjsip_invite_method, -1,1108 status = pjsip_dlg_create_request(inv->dlg, pjsip_get_invite_method(), -1, 1112 1109 &tdata); 1113 1110 if (status != PJ_SUCCESS) … … 1156 1153 1157 1154 /* Add Allow header. */ 1158 if ( pjsip_include_allow_hdr_in_dlg) {1155 if (inv->dlg->add_allow) { 1159 1156 hdr = pjsip_endpt_get_capability(inv->dlg->endpt, PJSIP_H_ALLOW, NULL); 1160 1157 if (hdr) { … … 1598 1595 case PJSIP_INV_STATE_CONFIRMED: 1599 1596 /* For established dialog, send BYE */ 1600 status = pjsip_dlg_create_request(inv->dlg, &pjsip_bye_method, -1,1601 &tdata);1597 status = pjsip_dlg_create_request(inv->dlg, pjsip_get_bye_method(), 1598 -1, &tdata); 1602 1599 break; 1603 1600 … … 1793 1790 1794 1791 pjsip_tsx_create_key(rdata->tp_info.pool, &key, PJSIP_ROLE_UAS, 1795 &pjsip_invite_method, rdata);1792 pjsip_get_invite_method(), rdata); 1796 1793 invite_tsx = pjsip_tsx_layer_find_tsx(&key, PJ_TRUE); 1797 1794 -
pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
r1335 r1417 367 367 /* Create the request. */ 368 368 status = pjsip_endpt_create_request_from_hdr( regc->endpt, 369 &pjsip_register_method,369 pjsip_get_register_method(), 370 370 regc->srv_url, 371 371 regc->from_hdr, -
pjproject/trunk/pjsip/src/pjsip-ua/sip_replaces.c
r1266 r1417 69 69 char *endbuf = buf+size; 70 70 int printed; 71 const pjsip_parser_const_t *pc = pjsip_parser_const(); 71 72 72 73 copy_advance(p, hdr->name); … … 84 85 85 86 printed = pjsip_param_print_on(&hdr->other_param, p, endbuf-p, 86 &p jsip_TOKEN_SPEC,87 &p jsip_TOKEN_SPEC, ';');87 &pc->pjsip_TOKEN_SPEC, 88 &pc->pjsip_TOKEN_SPEC, ';'); 88 89 if (printed < 0) 89 90 return printed; -
pjproject/trunk/pjsip/src/pjsip-ua/sip_xfer.c
r1266 r1417 58 58 }; 59 59 60 const pjsip_methodpjsip_refer_method = {60 PJ_DEF_DATA(const pjsip_method) pjsip_refer_method = { 61 61 (pjsip_method_e) PJSIP_REFER_METHOD, 62 62 { "REFER", 5} 63 63 }; 64 64 65 PJ_DEF(const pjsip_method*) pjsip_get_refer_method() 66 { 67 return &pjsip_refer_method; 68 } 65 69 66 70 /* … … 145 149 146 150 status = pjsip_endpt_add_capability( endpt, &mod_xfer, PJSIP_H_ALLOW, 147 NULL, 1, &pjsip_refer_method.name); 151 NULL, 1, 152 &pjsip_get_refer_method()->name); 148 153 if (status != PJ_SUCCESS) 149 154 return status; … … 224 229 /* Check that request is REFER */ 225 230 PJ_ASSERT_RETURN(pjsip_method_cmp(&rdata->msg_info.msg->line.req.method, 226 &pjsip_refer_method)==0,231 pjsip_get_refer_method())==0, 227 232 PJSIP_ENOTREFER); 228 233 … … 299 304 300 305 /* Create basic REFER request */ 301 status = pjsip_evsub_initiate(sub, &pjsip_refer_method, -1,306 status = pjsip_evsub_initiate(sub, pjsip_get_refer_method(), -1, 302 307 &tdata); 303 308 if (status != PJ_SUCCESS) -
pjproject/trunk/pjsip/src/pjsip/sip_auth_msg.c
r1240 r1417 68 68 char *startbuf = buf; 69 69 char *endbuf = buf + size; 70 const pjsip_parser_const_t *pc = pjsip_parser_const(); 70 71 71 72 copy_advance_pair_quote_cond(buf, "username=", 9, cred->username, '"', '"'); … … 84 85 85 86 printed = pjsip_param_print_on(&cred->other_param, buf, endbuf-buf, 86 &p jsip_TOKEN_SPEC,87 &p jsip_TOKEN_SPEC, ',');87 &pc->pjsip_TOKEN_SPEC, 88 &pc->pjsip_TOKEN_SPEC, ','); 88 89 if (printed < 0) 89 90 return -1; … … 229 230 char *startbuf = buf; 230 231 char *endbuf = buf + size; 232 const pjsip_parser_const_t *pc = pjsip_parser_const(); 231 233 232 234 copy_advance_pair_quote_cond(buf, " realm=", 7, chal->realm, '"', '"'); … … 242 244 243 245 printed = pjsip_param_print_on(&chal->other_param, buf, endbuf-buf, 244 &p jsip_TOKEN_SPEC,245 &p jsip_TOKEN_SPEC, ',');246 &pc->pjsip_TOKEN_SPEC, 247 &pc->pjsip_TOKEN_SPEC, ','); 246 248 if (printed < 0) 247 249 return -1; -
pjproject/trunk/pjsip/src/pjsip/sip_auth_parser.c
r1240 r1417 196 196 pjsip_authorization_hdr *hdr) 197 197 { 198 const pjsip_parser_const_t *pc = pjsip_parser_const(); 199 198 200 if (*scanner->curptr == '"') { 199 201 pj_scan_get_quote(scanner, '"', '"', &hdr->scheme); … … 201 203 hdr->scheme.slen -= 2; 202 204 } else { 203 pj_scan_get(scanner, &p jsip_TOKEN_SPEC, &hdr->scheme);205 pj_scan_get(scanner, &pc->pjsip_TOKEN_SPEC, &hdr->scheme); 204 206 } 205 207 … … 222 224 pjsip_www_authenticate_hdr *hdr) 223 225 { 226 const pjsip_parser_const_t *pc = pjsip_parser_const(); 227 224 228 if (*scanner->curptr == '"') { 225 229 pj_scan_get_quote(scanner, '"', '"', &hdr->scheme); … … 227 231 hdr->scheme.slen -= 2; 228 232 } else { 229 pj_scan_get(scanner, &p jsip_TOKEN_SPEC, &hdr->scheme);233 pj_scan_get(scanner, &pc->pjsip_TOKEN_SPEC, &hdr->scheme); 230 234 } 231 235 -
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r1390 r1417 82 82 dlg->endpt = endpt; 83 83 dlg->state = PJSIP_DIALOG_STATE_NULL; 84 dlg->add_allow = pjsip_include_allow_hdr_in_dlg; 84 85 85 86 pj_list_init(&dlg->inv_hdr); … … 1201 1202 1202 1203 /* Add Allow header in 2xx and 405 response. */ 1203 if (((st_class==2 && pjsip_include_allow_hdr_in_dlg)1204 if (((st_class==2 && dlg->add_allow) 1204 1205 || st_code==405) && 1205 1206 pjsip_msg_find_hdr(tdata->msg, PJSIP_H_ALLOW, NULL)==NULL) -
pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c
r1402 r1417 35 35 #include <pj/lock.h> 36 36 37 #define PJSIP_EX_NO_MEMORY PJ_NO_MEMORY_EXCEPTION37 #define PJSIP_EX_NO_MEMORY pj_NO_MEMORY_EXCEPTION() 38 38 #define THIS_FILE "sip_endpoint.c" 39 39 … … 117 117 /* Specifies whether error subsystem has been registered to pjlib. */ 118 118 static int error_subsys_initialized; 119 120 /**121 * Defined in sip_errno.c122 *123 * Get error message for the specified error code. This can only get124 * PJSIP specific error message. To get all types of error message,125 * use pj_strerror() instead.126 *127 * @param status The error code.128 * @param buffer The buffer where to put the error message.129 * @param bufsize Size of the buffer.130 *131 * @return The error message as NULL terminated string,132 * wrapped with pj_str_t.133 */134 PJ_DECL(pj_str_t) pjsip_strerror( pj_status_t status, char *buffer,135 pj_size_t bufsize);136 137 119 138 120 /* -
pjproject/trunk/pjsip/src/pjsip/sip_msg.c
r1389 r1417 25 25 #include <pj/assert.h> 26 26 27 const pjsip_method 28 pjsip_invite_method = { PJSIP_INVITE_METHOD, { "INVITE",6 } }, 29 pjsip_cancel_method = { PJSIP_CANCEL_METHOD, { "CANCEL",6 } }, 30 pjsip_ack_method = { PJSIP_ACK_METHOD, { "ACK",3} }, 31 pjsip_bye_method = { PJSIP_BYE_METHOD, { "BYE",3} }, 32 pjsip_register_method = { PJSIP_REGISTER_METHOD, { "REGISTER",8} }, 33 pjsip_options_method = { PJSIP_OPTIONS_METHOD, { "OPTIONS",7} }; 27 PJ_DEF_DATA(const pjsip_method) pjsip_invite_method = 28 { PJSIP_INVITE_METHOD, { "INVITE",6 }}; 29 30 PJ_DEF_DATA(const pjsip_method) pjsip_cancel_method = 31 { PJSIP_CANCEL_METHOD, { "CANCEL",6 }}; 32 33 PJ_DEF_DATA(const pjsip_method) pjsip_ack_method = 34 { PJSIP_ACK_METHOD, { "ACK",3}}; 35 36 PJ_DEF_DATA(const pjsip_method) pjsip_bye_method = 37 { PJSIP_BYE_METHOD, { "BYE",3}}; 38 39 PJ_DEF_DATA(const pjsip_method) pjsip_register_method = 40 { PJSIP_REGISTER_METHOD, { "REGISTER", 8}}; 41 42 PJ_DEF_DATA(const pjsip_method) pjsip_options_method = 43 { PJSIP_OPTIONS_METHOD, { "OPTIONS",7}}; 44 45 46 /** INVITE method constant. */ 47 PJ_DEF(const pjsip_method*) pjsip_get_invite_method(void) 48 { 49 return &pjsip_invite_method; 50 } 51 52 /** CANCEL method constant. */ 53 PJ_DEF(const pjsip_method*) pjsip_get_cancel_method(void) 54 { 55 return &pjsip_cancel_method; 56 } 57 58 /** ACK method constant. */ 59 PJ_DEF(const pjsip_method*) pjsip_get_ack_method(void) 60 { 61 return &pjsip_ack_method; 62 } 63 64 /** BYE method constant. */ 65 PJ_DEF(const pjsip_method*) pjsip_get_bye_method(void) 66 { 67 return &pjsip_bye_method; 68 } 69 70 /** REGISTER method constant.*/ 71 PJ_DEF(const pjsip_method*) pjsip_get_register_method(void) 72 { 73 return &pjsip_register_method; 74 } 75 76 /** OPTIONS method constant. */ 77 PJ_DEF(const pjsip_method*) pjsip_get_options_method(void) 78 { 79 return &pjsip_options_method; 80 } 81 34 82 35 83 static const pj_str_t *method_names[] = … … 566 614 567 615 568 PJ_DEF(pjsip_generic_string_hdr*) 569 pjsip_generic_string_hdr_init( pj_pool_t *pool, 570 void *mem, 571 const pj_str_t *hnames, 572 const pj_str_t *hvalue) 616 PJ_DEF(pjsip_generic_string_hdr*) pjsip_generic_string_hdr_init(pj_pool_t *pool, 617 void *mem, 618 const pj_str_t *hnames, 619 const pj_str_t *hvalue) 573 620 { 574 621 pjsip_generic_string_hdr *hdr = (pjsip_generic_string_hdr*) mem; … … 591 638 } 592 639 593 PJ_DEF(pjsip_generic_string_hdr*) 594 pjsip_generic_string_hdr_create( pj_pool_t *pool, 640 PJ_DEF(pjsip_generic_string_hdr*) pjsip_generic_string_hdr_create(pj_pool_t *pool, 595 641 const pj_str_t *hnames, 596 642 const pj_str_t *hvalue) … … 1056 1102 { 1057 1103 const pj_str_t *hname = pjsip_use_compact_form? &hdr->sname : &hdr->name; 1104 const pjsip_parser_const_t *pc = pjsip_parser_const(); 1058 1105 1059 1106 if (hdr->star) { … … 1110 1157 1111 1158 printed = pjsip_param_print_on(&hdr->other_param, buf, endbuf-buf, 1112 &pjsip_TOKEN_SPEC, &pjsip_TOKEN_SPEC, 1159 &pc->pjsip_TOKEN_SPEC, 1160 &pc->pjsip_TOKEN_SPEC, 1113 1161 ';'); 1114 1162 if (printed < 0) … … 1347 1395 char *endbuf = buf + size; 1348 1396 const pj_str_t *hname = pjsip_use_compact_form? &hdr->sname : &hdr->name; 1397 const pjsip_parser_const_t *pc = pjsip_parser_const(); 1349 1398 1350 1399 copy_advance(buf, (*hname)); … … 1362 1411 1363 1412 printed = pjsip_param_print_on(&hdr->other_param, buf, endbuf-buf, 1364 &p jsip_TOKEN_SPEC,1365 &p jsip_TOKEN_SPEC, ';');1413 &pc->pjsip_TOKEN_SPEC, 1414 &pc->pjsip_TOKEN_SPEC, ';'); 1366 1415 if (printed < 0) 1367 1416 return -1; … … 1525 1574 char *startbuf = buf; 1526 1575 char *endbuf = buf + size; 1576 const pjsip_parser_const_t *pc = pjsip_parser_const(); 1527 1577 /* Route and Record-Route don't compact forms */ 1528 1578 … … 1538 1588 1539 1589 printed = pjsip_param_print_on(&hdr->other_param, buf, endbuf-buf, 1540 &p jsip_TOKEN_SPEC,1541 &p jsip_TOKEN_SPEC, ';');1590 &pc->pjsip_TOKEN_SPEC, 1591 &pc->pjsip_TOKEN_SPEC, ';'); 1542 1592 if (printed < 0) 1543 1593 return -1; … … 1705 1755 pj_str_t sip_ver = { "SIP/2.0/", 8 }; 1706 1756 const pj_str_t *hname = pjsip_use_compact_form? &hdr->sname : &hdr->name; 1757 const pjsip_parser_const_t *pc = pjsip_parser_const(); 1707 1758 1708 1759 if ((pj_ssize_t)size < hname->slen + sip_ver.slen + … … 1758 1809 1759 1810 printed = pjsip_param_print_on(&hdr->other_param, buf, endbuf-buf, 1760 &p jsip_TOKEN_SPEC,1761 &p jsip_TOKEN_SPEC, ';');1811 &pc->pjsip_TOKEN_SPEC, 1812 &pc->pjsip_TOKEN_SPEC, ';'); 1762 1813 if (printed < 0) 1763 1814 return -1; … … 1814 1865 } 1815 1866 1816 PJ_DEF(pjsip_warning_hdr*) 1817 pjsip_warning_hdr_create_from_status( pj_pool_t *pool, 1818 const pj_str_t *host, 1819 pj_status_t status) 1867 PJ_DEF(pjsip_warning_hdr*) pjsip_warning_hdr_create_from_status(pj_pool_t *pool, 1868 const pj_str_t *host, 1869 pj_status_t status) 1820 1870 { 1821 1871 char errbuf[PJ_ERR_MSG_SIZE]; -
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r1345 r1417 88 88 int PJSIP_SYN_ERR_EXCEPTION; 89 89 90 const pj_str_t pjsip_USER_STR = { "user", 4}; 91 const pj_str_t pjsip_METHOD_STR = { "method", 6}; 92 const pj_str_t pjsip_TRANSPORT_STR = { "transport", 9}; 93 const pj_str_t pjsip_MADDR_STR = { "maddr", 5 }; 94 const pj_str_t pjsip_LR_STR = { "lr", 2 }; 95 const pj_str_t pjsip_SIP_STR = { "sip", 3 }; 96 const pj_str_t pjsip_SIPS_STR = { "sips", 4 }; 97 const pj_str_t pjsip_TEL_STR = { "tel", 3 }; 98 const pj_str_t pjsip_BRANCH_STR = { "branch", 6 }; 99 const pj_str_t pjsip_TTL_STR = { "ttl", 3 }; 100 const pj_str_t pjsip_RECEIVED_STR = { "received", 8 }; 101 const pj_str_t pjsip_Q_STR = { "q", 1 }; 102 const pj_str_t pjsip_EXPIRES_STR = { "expires", 7 }; 103 const pj_str_t pjsip_TAG_STR = { "tag", 3 }; 104 const pj_str_t pjsip_RPORT_STR = { "rport", 5}; 90 /* Parser constants */ 91 static pjsip_parser_const_t pconst = 92 { 93 { "user", 4}, /* pjsip_USER_STR */ 94 { "method", 6}, /* pjsip_METHOD_STR */ 95 { "transport", 9}, /* pjsip_TRANSPORT_STR */ 96 { "maddr", 5 }, /* pjsip_MADDR_STR */ 97 { "lr", 2 }, /* pjsip_LR_STR */ 98 { "sip", 3 }, /* pjsip_SIP_STR */ 99 { "sips", 4 }, /* pjsip_SIPS_STR */ 100 { "tel", 3 }, /* pjsip_TEL_STR */ 101 { "branch", 6 }, /* pjsip_BRANCH_STR */ 102 { "ttl", 3 }, /* pjsip_TTL_STR */ 103 { "received", 8 }, /* pjsip_RECEIVED_STR */ 104 { "q", 1 }, /* pjsip_Q_STR */ 105 { "expires", 7 }, /* pjsip_EXPIRES_STR */ 106 { "tag", 3 }, /* pjsip_TAG_STR */ 107 { "rport", 5} /* pjsip_RPORT_STR */ 108 }; 105 109 106 110 /* Character Input Specification buffer. */ 107 111 static pj_cis_buf_t cis_buf; 108 109 /* Character Input Specifications. */110 pj_cis_t pjsip_HOST_SPEC, /* For scanning host part. */111 pjsip_DIGIT_SPEC, /* Decimal digits */112 pjsip_ALPHA_SPEC, /* Alpha (A-Z, a-z) */113 pjsip_ALNUM_SPEC, /* Decimal + Alpha. */114 pjsip_TOKEN_SPEC, /* Token. */115 pjsip_TOKEN_SPEC_ESC, /* Token without '%' character */116 pjsip_HEX_SPEC, /* Hexadecimal digits. */117 pjsip_PARAM_CHAR_SPEC, /* For scanning pname (or pvalue when118 * it's not quoted.) */119 pjsip_PARAM_CHAR_SPEC_ESC, /* The variant without escaped char */120 pjsip_HDR_CHAR_SPEC, /* Chars in hname or hvalue */121 pjsip_HDR_CHAR_SPEC_ESC, /* Variant without escaped char */122 pjsip_PROBE_USER_HOST_SPEC, /* Hostname characters. */123 pjsip_PASSWD_SPEC, /* Password. */124 pjsip_PASSWD_SPEC_ESC, /* Variant without escaped char */125 pjsip_USER_SPEC, /* User */126 pjsip_USER_SPEC_ESC, /* Variant without escaped char */127 pjsip_USER_SPEC_LENIENT, /* User, with additional '#' char */128 pjsip_USER_SPEC_LENIENT_ESC,129 pjsip_NOT_COMMA_OR_NEWLINE, /* Array separator. */130 pjsip_NOT_NEWLINE, /* For eating up header.*/131 pjsip_DISPLAY_SPEC; /* Used when searching for display name132 * in URL. */133 112 134 113 … … 244 223 } 245 224 225 /* Get parser constants. */ 226 PJ_DEF(const pjsip_parser_const_t*) pjsip_parser_const(void) 227 { 228 return &pconst; 229 } 230 246 231 /* Concatenate unrecognized params into single string. */ 247 void pjsip_concat_param_imp( pj_str_t *param, pj_pool_t *pool, 248 const pj_str_t *pname, const pj_str_t *pvalue, 249 int sepchar) 232 PJ_DEF(void) pjsip_concat_param_imp(pj_str_t *param, pj_pool_t *pool, 233 const pj_str_t *pname, 234 const pj_str_t *pvalue, 235 int sepchar) 250 236 { 251 237 char *new_param, *p; … … 301 287 pj_cis_buf_init(&cis_buf); 302 288 303 status = pj_cis_init(&cis_buf, &p jsip_DIGIT_SPEC);304 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 305 pj_cis_add_num(&p jsip_DIGIT_SPEC);289 status = pj_cis_init(&cis_buf, &pconst.pjsip_DIGIT_SPEC); 290 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 291 pj_cis_add_num(&pconst.pjsip_DIGIT_SPEC); 306 292 307 status = pj_cis_init(&cis_buf, &p jsip_ALPHA_SPEC);308 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 309 pj_cis_add_alpha( &p jsip_ALPHA_SPEC );293 status = pj_cis_init(&cis_buf, &pconst.pjsip_ALPHA_SPEC); 294 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 295 pj_cis_add_alpha( &pconst.pjsip_ALPHA_SPEC ); 310 296 311 status = pj_cis_init(&cis_buf, &p jsip_ALNUM_SPEC);312 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 313 pj_cis_add_alpha( &p jsip_ALNUM_SPEC );314 pj_cis_add_num( &p jsip_ALNUM_SPEC );315 316 status = pj_cis_init(&cis_buf, &p jsip_NOT_NEWLINE);317 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 318 pj_cis_add_str(&p jsip_NOT_NEWLINE, "\r\n");319 pj_cis_invert(&p jsip_NOT_NEWLINE);320 321 status = pj_cis_init(&cis_buf, &p jsip_NOT_COMMA_OR_NEWLINE);322 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 323 pj_cis_add_str( &p jsip_NOT_COMMA_OR_NEWLINE, ",\r\n");324 pj_cis_invert(&p jsip_NOT_COMMA_OR_NEWLINE);325 326 status = pj_cis_dup(&p jsip_TOKEN_SPEC, &pjsip_ALNUM_SPEC);327 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 328 pj_cis_add_str( &p jsip_TOKEN_SPEC, TOKEN);329 330 status = pj_cis_dup(&p jsip_TOKEN_SPEC_ESC, &pjsip_TOKEN_SPEC);331 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 332 pj_cis_del_str(&p jsip_TOKEN_SPEC_ESC, "%");333 334 status = pj_cis_dup(&p jsip_HOST_SPEC, &pjsip_ALNUM_SPEC);335 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 336 pj_cis_add_str( &p jsip_HOST_SPEC, HOST);337 338 status = pj_cis_dup(&p jsip_HEX_SPEC, &pjsip_DIGIT_SPEC);339 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 340 pj_cis_add_str( &p jsip_HEX_SPEC, HEX_DIGIT);341 342 status = pj_cis_dup(&p jsip_PARAM_CHAR_SPEC, &pjsip_ALNUM_SPEC);343 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 344 pj_cis_add_str(&p jsip_PARAM_CHAR_SPEC, PARAM_CHAR);345 346 status = pj_cis_dup(&p jsip_PARAM_CHAR_SPEC_ESC, &pjsip_PARAM_CHAR_SPEC);347 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 348 pj_cis_del_str(&p jsip_PARAM_CHAR_SPEC_ESC, ESCAPED);349 350 status = pj_cis_dup(&p jsip_HDR_CHAR_SPEC, &pjsip_ALNUM_SPEC);351 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 352 pj_cis_add_str(&p jsip_HDR_CHAR_SPEC, HDR_CHAR);353 354 status = pj_cis_dup(&p jsip_HDR_CHAR_SPEC_ESC, &pjsip_HDR_CHAR_SPEC);355 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 356 pj_cis_del_str(&p jsip_HDR_CHAR_SPEC_ESC, ESCAPED);357 358 status = pj_cis_dup(&p jsip_USER_SPEC, &pjsip_ALNUM_SPEC);359 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 360 pj_cis_add_str( &p jsip_USER_SPEC, UNRESERVED ESCAPED USER_UNRESERVED );361 362 status = pj_cis_dup(&p jsip_USER_SPEC_ESC, &pjsip_USER_SPEC);363 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 364 pj_cis_del_str( &p jsip_USER_SPEC_ESC, ESCAPED);365 366 status = pj_cis_dup(&p jsip_USER_SPEC_LENIENT, &pjsip_USER_SPEC);367 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 368 pj_cis_add_str(&p jsip_USER_SPEC_LENIENT, "#");369 370 status = pj_cis_dup(&p jsip_USER_SPEC_LENIENT_ESC, &pjsip_USER_SPEC_ESC);371 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 372 pj_cis_add_str(&p jsip_USER_SPEC_LENIENT_ESC, "#");373 374 status = pj_cis_dup(&p jsip_PASSWD_SPEC, &pjsip_ALNUM_SPEC);375 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 376 pj_cis_add_str( &p jsip_PASSWD_SPEC, UNRESERVED ESCAPED PASS);377 378 status = pj_cis_dup(&p jsip_PASSWD_SPEC_ESC, &pjsip_PASSWD_SPEC);379 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 380 pj_cis_del_str( &p jsip_PASSWD_SPEC_ESC, ESCAPED);381 382 status = pj_cis_init(&cis_buf, &p jsip_PROBE_USER_HOST_SPEC);383 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 384 pj_cis_add_str( &p jsip_PROBE_USER_HOST_SPEC, "@ \n>");385 pj_cis_invert( &p jsip_PROBE_USER_HOST_SPEC );386 387 status = pj_cis_init(&cis_buf, &p jsip_DISPLAY_SPEC);388 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 389 pj_cis_add_str( &p jsip_DISPLAY_SPEC, ":\r\n<");390 pj_cis_invert(&p jsip_DISPLAY_SPEC);297 status = pj_cis_init(&cis_buf, &pconst.pjsip_ALNUM_SPEC); 298 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 299 pj_cis_add_alpha( &pconst.pjsip_ALNUM_SPEC ); 300 pj_cis_add_num( &pconst.pjsip_ALNUM_SPEC ); 301 302 status = pj_cis_init(&cis_buf, &pconst.pjsip_NOT_NEWLINE); 303 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 304 pj_cis_add_str(&pconst.pjsip_NOT_NEWLINE, "\r\n"); 305 pj_cis_invert(&pconst.pjsip_NOT_NEWLINE); 306 307 status = pj_cis_init(&cis_buf, &pconst.pjsip_NOT_COMMA_OR_NEWLINE); 308 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 309 pj_cis_add_str( &pconst.pjsip_NOT_COMMA_OR_NEWLINE, ",\r\n"); 310 pj_cis_invert(&pconst.pjsip_NOT_COMMA_OR_NEWLINE); 311 312 status = pj_cis_dup(&pconst.pjsip_TOKEN_SPEC, &pconst.pjsip_ALNUM_SPEC); 313 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 314 pj_cis_add_str( &pconst.pjsip_TOKEN_SPEC, TOKEN); 315 316 status = pj_cis_dup(&pconst.pjsip_TOKEN_SPEC_ESC, &pconst.pjsip_TOKEN_SPEC); 317 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 318 pj_cis_del_str(&pconst.pjsip_TOKEN_SPEC_ESC, "%"); 319 320 status = pj_cis_dup(&pconst.pjsip_HOST_SPEC, &pconst.pjsip_ALNUM_SPEC); 321 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 322 pj_cis_add_str( &pconst.pjsip_HOST_SPEC, HOST); 323 324 status = pj_cis_dup(&pconst.pjsip_HEX_SPEC, &pconst.pjsip_DIGIT_SPEC); 325 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 326 pj_cis_add_str( &pconst.pjsip_HEX_SPEC, HEX_DIGIT); 327 328 status = pj_cis_dup(&pconst.pjsip_PARAM_CHAR_SPEC, &pconst.pjsip_ALNUM_SPEC); 329 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 330 pj_cis_add_str(&pconst.pjsip_PARAM_CHAR_SPEC, PARAM_CHAR); 331 332 status = pj_cis_dup(&pconst.pjsip_PARAM_CHAR_SPEC_ESC, &pconst.pjsip_PARAM_CHAR_SPEC); 333 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 334 pj_cis_del_str(&pconst.pjsip_PARAM_CHAR_SPEC_ESC, ESCAPED); 335 336 status = pj_cis_dup(&pconst.pjsip_HDR_CHAR_SPEC, &pconst.pjsip_ALNUM_SPEC); 337 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 338 pj_cis_add_str(&pconst.pjsip_HDR_CHAR_SPEC, HDR_CHAR); 339 340 status = pj_cis_dup(&pconst.pjsip_HDR_CHAR_SPEC_ESC, &pconst.pjsip_HDR_CHAR_SPEC); 341 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 342 pj_cis_del_str(&pconst.pjsip_HDR_CHAR_SPEC_ESC, ESCAPED); 343 344 status = pj_cis_dup(&pconst.pjsip_USER_SPEC, &pconst.pjsip_ALNUM_SPEC); 345 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 346 pj_cis_add_str( &pconst.pjsip_USER_SPEC, UNRESERVED ESCAPED USER_UNRESERVED ); 347 348 status = pj_cis_dup(&pconst.pjsip_USER_SPEC_ESC, &pconst.pjsip_USER_SPEC); 349 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 350 pj_cis_del_str( &pconst.pjsip_USER_SPEC_ESC, ESCAPED); 351 352 status = pj_cis_dup(&pconst.pjsip_USER_SPEC_LENIENT, &pconst.pjsip_USER_SPEC); 353 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 354 pj_cis_add_str(&pconst.pjsip_USER_SPEC_LENIENT, "#"); 355 356 status = pj_cis_dup(&pconst.pjsip_USER_SPEC_LENIENT_ESC, &pconst.pjsip_USER_SPEC_ESC); 357 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 358 pj_cis_add_str(&pconst.pjsip_USER_SPEC_LENIENT_ESC, "#"); 359 360 status = pj_cis_dup(&pconst.pjsip_PASSWD_SPEC, &pconst.pjsip_ALNUM_SPEC); 361 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 362 pj_cis_add_str( &pconst.pjsip_PASSWD_SPEC, UNRESERVED ESCAPED PASS); 363 364 status = pj_cis_dup(&pconst.pjsip_PASSWD_SPEC_ESC, &pconst.pjsip_PASSWD_SPEC); 365 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 366 pj_cis_del_str( &pconst.pjsip_PASSWD_SPEC_ESC, ESCAPED); 367 368 status = pj_cis_init(&cis_buf, &pconst.pjsip_PROBE_USER_HOST_SPEC); 369 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 370 pj_cis_add_str( &pconst.pjsip_PROBE_USER_HOST_SPEC, "@ \n>"); 371 pj_cis_invert( &pconst.pjsip_PROBE_USER_HOST_SPEC ); 372 373 status = pj_cis_init(&cis_buf, &pconst.pjsip_DISPLAY_SPEC); 374 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 375 pj_cis_add_str( &pconst.pjsip_DISPLAY_SPEC, ":\r\n<"); 376 pj_cis_invert(&pconst.pjsip_DISPLAY_SPEC); 391 377 392 378 /* … … 818 804 819 805 /* Get number */ 820 pj_scan_get(&scanner, &p jsip_DIGIT_SPEC, &str_clen);806 pj_scan_get(&scanner, &pconst.pjsip_DIGIT_SPEC, &str_clen); 821 807 822 808 /* Get newline. */ … … 960 946 961 947 /* Get hname. */ 962 pj_scan_get( scanner, &p jsip_TOKEN_SPEC, &hname);948 pj_scan_get( scanner, &pconst.pjsip_TOKEN_SPEC, &hname); 963 949 if (pj_scan_get_char( scanner ) != ':') { 964 950 PJ_THROW(PJSIP_SYN_ERR_EXCEPTION); … … 1110 1096 1111 1097 /* Parse parameter (pname ["=" pvalue]) using token. */ 1112 void pjsip_parse_param_imp(pj_scanner *scanner, pj_pool_t *pool,1113 pj_str_t *pname, pj_str_t *pvalue,1114 unsigned option)1115 { 1116 parse_param_imp(scanner, pool, pname, pvalue, &p jsip_TOKEN_SPEC,1117 &p jsip_TOKEN_SPEC_ESC, option);1098 PJ_DEF(void) pjsip_parse_param_imp(pj_scanner *scanner, pj_pool_t *pool, 1099 pj_str_t *pname, pj_str_t *pvalue, 1100 unsigned option) 1101 { 1102 parse_param_imp(scanner, pool, pname, pvalue, &pconst.pjsip_TOKEN_SPEC, 1103 &pconst.pjsip_TOKEN_SPEC_ESC, option); 1118 1104 } 1119 1105 1120 1106 1121 1107 /* Parse parameter (pname ["=" pvalue]) using paramchar. */ 1122 void pjsip_parse_uri_param_imp(pj_scanner *scanner, pj_pool_t *pool,1123 pj_str_t *pname, pj_str_t *pvalue,1124 unsigned option)1125 { 1126 parse_param_imp(scanner, pool, pname, pvalue, &pjsip_PARAM_CHAR_SPEC,1127 &p jsip_PARAM_CHAR_SPEC_ESC, option);1108 PJ_DEF(void) pjsip_parse_uri_param_imp( pj_scanner *scanner, pj_pool_t *pool, 1109 pj_str_t *pname, pj_str_t *pvalue, 1110 unsigned option) 1111 { 1112 parse_param_imp(scanner,pool, pname, pvalue, &pconst.pjsip_PARAM_CHAR_SPEC, 1113 &pconst.pjsip_PARAM_CHAR_SPEC_ESC, option); 1128 1114 } 1129 1115 … … 1163 1149 1164 1150 /* hname */ 1165 parser_get_and_unescape(scanner, pool, &p jsip_HDR_CHAR_SPEC,1166 &p jsip_HDR_CHAR_SPEC_ESC, hname);1151 parser_get_and_unescape(scanner, pool, &pconst.pjsip_HDR_CHAR_SPEC, 1152 &pconst.pjsip_HDR_CHAR_SPEC_ESC, hname); 1167 1153 1168 1154 /* Init hvalue */ … … 1174 1160 pj_scan_get_char(scanner); 1175 1161 if (!pj_scan_is_eof(scanner) && 1176 pj_cis_match(&p jsip_HDR_CHAR_SPEC, *scanner->curptr))1162 pj_cis_match(&pconst.pjsip_HDR_CHAR_SPEC, *scanner->curptr)) 1177 1163 { 1178 parser_get_and_unescape(scanner, pool, &p jsip_HDR_CHAR_SPEC,1179 &p jsip_HDR_CHAR_SPEC_ESC, hvalue);1164 parser_get_and_unescape(scanner, pool, &pconst.pjsip_HDR_CHAR_SPEC, 1165 &pconst.pjsip_HDR_CHAR_SPEC_ESC, hvalue); 1180 1166 } 1181 1167 } … … 1186 1172 pj_str_t *host, int *p_port) 1187 1173 { 1188 pj_scan_get( scanner, &p jsip_HOST_SPEC, host);1174 pj_scan_get( scanner, &pconst.pjsip_HOST_SPEC, host); 1189 1175 /* RFC3261 section 19.1.2: host don't need to be unescaped */ 1190 1176 if (*scanner->curptr == ':') { 1191 1177 pj_str_t port; 1192 1178 pj_scan_get_char(scanner); 1193 pj_scan_get(scanner, &p jsip_DIGIT_SPEC, &port);1179 pj_scan_get(scanner, &pconst.pjsip_DIGIT_SPEC, &port); 1194 1180 *p_port = pj_strtoul(&port); 1195 1181 } else { … … 1207 1193 * must be a username. 1208 1194 */ 1209 if (pj_scan_peek( scanner, &p jsip_PROBE_USER_HOST_SPEC, &dummy) == '@')1195 if (pj_scan_peek( scanner, &pconst.pjsip_PROBE_USER_HOST_SPEC, &dummy) == '@') 1210 1196 is_user = 1; 1211 1197 else … … 1219 1205 pj_str_t *user, pj_str_t *pass) 1220 1206 { 1221 parser_get_and_unescape(scanner, pool, &p jsip_USER_SPEC_LENIENT,1222 &p jsip_USER_SPEC_LENIENT_ESC, user);1207 parser_get_and_unescape(scanner, pool, &pconst.pjsip_USER_SPEC_LENIENT, 1208 &pconst.pjsip_USER_SPEC_LENIENT_ESC, user); 1223 1209 1224 1210 if ( *scanner->curptr == ':') { 1225 1211 pj_scan_get_char( scanner ); 1226 parser_get_and_unescape(scanner, pool, &p jsip_PASSWD_SPEC,1227 &p jsip_PASSWD_SPEC_ESC, pass);1212 parser_get_and_unescape(scanner, pool, &pconst.pjsip_PASSWD_SPEC, 1213 &pconst.pjsip_PASSWD_SPEC_ESC, pass); 1228 1214 } else { 1229 1215 pass->ptr = NULL; … … 1252 1238 int next_ch; 1253 1239 1254 next_ch = pj_scan_peek( scanner, &p jsip_DISPLAY_SPEC, &scheme);1240 next_ch = pj_scan_peek( scanner, &pconst.pjsip_DISPLAY_SPEC, &scheme); 1255 1241 1256 1242 if (next_ch==':') { … … 1305 1291 1306 1292 /* Get scheme. */ 1307 colon = pj_scan_peek(scanner, &p jsip_TOKEN_SPEC, &scheme);1293 colon = pj_scan_peek(scanner, &pconst.pjsip_TOKEN_SPEC, &scheme); 1308 1294 if (colon != ':') { 1309 1295 PJ_THROW(PJSIP_SYN_ERR_EXCEPTION); … … 1338 1324 scanner->skip_ws = 0; 1339 1325 1340 pj_scan_get(scanner, &p jsip_TOKEN_SPEC, &scheme);1326 pj_scan_get(scanner, &pconst.pjsip_TOKEN_SPEC, &scheme); 1341 1327 colon = pj_scan_get_char(scanner); 1342 1328 if (colon != ':') { … … 1344 1330 } 1345 1331 1346 if (parser_stricmp(scheme, p jsip_SIP_STR)==0) {1332 if (parser_stricmp(scheme, pconst.pjsip_SIP_STR)==0) { 1347 1333 url = pjsip_sip_uri_create(pool, 0); 1348 1334 1349 } else if (parser_stricmp(scheme, p jsip_SIPS_STR)==0) {1335 } else if (parser_stricmp(scheme, pconst.pjsip_SIPS_STR)==0) { 1350 1336 url = pjsip_sip_uri_create(pool, 1); 1351 1337 … … 1373 1359 int_parse_uri_param( scanner, pool, &pname, &pvalue, 0); 1374 1360 1375 if (!parser_stricmp(pname, p jsip_USER_STR) && pvalue.slen) {1361 if (!parser_stricmp(pname, pconst.pjsip_USER_STR) && pvalue.slen) { 1376 1362 url->user_param = pvalue; 1377 1363 1378 } else if (!parser_stricmp(pname, p jsip_METHOD_STR) && pvalue.slen) {1364 } else if (!parser_stricmp(pname, pconst.pjsip_METHOD_STR) && pvalue.slen) { 1379 1365 url->method_param = pvalue; 1380 1366 1381 } else if (!parser_stricmp(pname, pjsip_TRANSPORT_STR) && pvalue.slen) {1367 } else if (!parser_stricmp(pname, pconst.pjsip_TRANSPORT_STR) && pvalue.slen) { 1382 1368 url->transport_param = pvalue; 1383 1369 1384 } else if (!parser_stricmp(pname, p jsip_TTL_STR) && pvalue.slen) {1370 } else if (!parser_stricmp(pname, pconst.pjsip_TTL_STR) && pvalue.slen) { 1385 1371 url->ttl_param = pj_strtoul(&pvalue); 1386 1372 1387 } else if (!parser_stricmp(pname, p jsip_MADDR_STR) && pvalue.slen) {1373 } else if (!parser_stricmp(pname, pconst.pjsip_MADDR_STR) && pvalue.slen) { 1388 1374 url->maddr_param = pvalue; 1389 1375 1390 } else if (!parser_stricmp(pname, p jsip_LR_STR)) {1376 } else if (!parser_stricmp(pname, pconst.pjsip_LR_STR)) { 1391 1377 url->lr_param = 1; 1392 1378 … … 1439 1425 * will be parser later. 1440 1426 */ 1441 next = pj_scan_peek(scanner, &p jsip_DISPLAY_SPEC, &dummy);1427 next = pj_scan_peek(scanner, &pconst.pjsip_DISPLAY_SPEC, &dummy); 1442 1428 if (next == '<') { 1443 1429 /* Ok, this is what we're looking for, a display name. */ … … 1470 1456 pj_str_t token; 1471 1457 1472 pj_scan_get( scanner, &p jsip_TOKEN_SPEC, &token);1458 pj_scan_get( scanner, &pconst.pjsip_TOKEN_SPEC, &token); 1473 1459 pjsip_method_init_np( &req_line->method, &token); 1474 1460 … … 1490 1476 pj_scan_advance_n( scanner, 7, 1); 1491 1477 1492 pj_scan_get( scanner, &p jsip_DIGIT_SPEC, &token);1478 pj_scan_get( scanner, &pconst.pjsip_DIGIT_SPEC, &token); 1493 1479 status_line->code = pj_strtoul(&token); 1494 pj_scan_get( scanner, &p jsip_NOT_NEWLINE, &status_line->reason);1480 pj_scan_get( scanner, &pconst.pjsip_NOT_NEWLINE, &status_line->reason); 1495 1481 pj_scan_get_newline( scanner ); 1496 1482 } … … 1539 1525 1540 1526 /* Parse ending of header. */ 1541 voidpjsip_parse_end_hdr_imp( pj_scanner *scanner )1527 PJ_DEF(void) pjsip_parse_end_hdr_imp( pj_scanner *scanner ) 1542 1528 { 1543 1529 parse_hdr_end(scanner); … … 1557 1543 } 1558 1544 1559 pj_scan_get( scanner, &p jsip_NOT_COMMA_OR_NEWLINE, &hdr->values[0]);1545 pj_scan_get( scanner, &pconst.pjsip_NOT_COMMA_OR_NEWLINE, &hdr->values[0]); 1560 1546 hdr->count++; 1561 1547 1562 1548 while (*scanner->curptr == ',') { 1563 1549 pj_scan_get_char(scanner); 1564 pj_scan_get( scanner, &p jsip_NOT_COMMA_OR_NEWLINE,1550 pj_scan_get( scanner, &pconst.pjsip_NOT_COMMA_OR_NEWLINE, 1565 1551 &hdr->values[hdr->count]); 1566 1552 hdr->count++; … … 1578 1564 pj_scanner *scanner ) 1579 1565 { 1580 if (pj_cis_match(&p jsip_NOT_NEWLINE, *scanner->curptr))1581 pj_scan_get( scanner, &p jsip_NOT_NEWLINE, &hdr->hvalue);1566 if (pj_cis_match(&pconst.pjsip_NOT_NEWLINE, *scanner->curptr)) 1567 pj_scan_get( scanner, &pconst.pjsip_NOT_NEWLINE, &hdr->hvalue); 1582 1568 else 1583 1569 hdr->hvalue.slen = 0; … … 1591 1577 { 1592 1578 pj_str_t tmp; 1593 pj_scan_get( scanner, &p jsip_DIGIT_SPEC, &tmp);1579 pj_scan_get( scanner, &pconst.pjsip_DIGIT_SPEC, &tmp); 1594 1580 hdr->ivalue = pj_strtoul(&tmp); 1595 1581 parse_hdr_end(scanner); … … 1617 1603 { 1618 1604 pjsip_cid_hdr *hdr = pjsip_cid_hdr_create(ctx->pool); 1619 pj_scan_get( ctx->scanner, &p jsip_NOT_NEWLINE, &hdr->id);1605 pj_scan_get( ctx->scanner, &pconst.pjsip_NOT_NEWLINE, &hdr->id); 1620 1606 parse_hdr_end(ctx->scanner); 1621 1607 … … 1635 1621 1636 1622 int_parse_param( scanner, pool, &pname, &pvalue, 0); 1637 if (!parser_stricmp(pname, p jsip_Q_STR) && pvalue.slen) {1623 if (!parser_stricmp(pname, pconst.pjsip_Q_STR) && pvalue.slen) { 1638 1624 char *dot_pos = (char*) pj_memchr(pvalue.ptr, '.', pvalue.slen); 1639 1625 if (!dot_pos) { … … 1644 1630 hdr->q1000 = pj_strtoul_mindigit(&pvalue, 3); 1645 1631 } 1646 } else if (!parser_stricmp(pname, p jsip_EXPIRES_STR) && pvalue.slen) {1632 } else if (!parser_stricmp(pname, pconst.pjsip_EXPIRES_STR) && pvalue.slen) { 1647 1633 hdr->expires = pj_strtoul(&pvalue); 1648 1634 … … 1701 1687 1702 1688 hdr = pjsip_clen_hdr_create(ctx->pool); 1703 pj_scan_get(ctx->scanner, &p jsip_DIGIT_SPEC, &digit);1689 pj_scan_get(ctx->scanner, &pconst.pjsip_DIGIT_SPEC, &digit); 1704 1690 hdr->len = pj_strtoul(&digit); 1705 1691 parse_hdr_end(ctx->scanner); … … 1720 1706 1721 1707 /* Parse media type and subtype. */ 1722 pj_scan_get(scanner, &p jsip_TOKEN_SPEC, &hdr->media.type);1708 pj_scan_get(scanner, &pconst.pjsip_TOKEN_SPEC, &hdr->media.type); 1723 1709 pj_scan_get_char(scanner); 1724 pj_scan_get(scanner, &p jsip_TOKEN_SPEC, &hdr->media.subtype);1710 pj_scan_get(scanner, &pconst.pjsip_TOKEN_SPEC, &hdr->media.subtype); 1725 1711 1726 1712 /* Parse media parameters */ … … 1746 1732 1747 1733 hdr = pjsip_cseq_hdr_create(ctx->pool); 1748 pj_scan_get( ctx->scanner, &p jsip_DIGIT_SPEC, &cseq);1734 pj_scan_get( ctx->scanner, &pconst.pjsip_DIGIT_SPEC, &cseq); 1749 1735 hdr->cseq = pj_strtoul(&cseq); 1750 1736 1751 pj_scan_get( ctx->scanner, &p jsip_TOKEN_SPEC, &method);1737 pj_scan_get( ctx->scanner, &pconst.pjsip_TOKEN_SPEC, &method); 1752 1738 pjsip_method_init_np(&hdr->method, &method); 1753 1739 … … 1782 1768 int_parse_param( scanner, pool, &pname, &pvalue, 0); 1783 1769 1784 if (!parser_stricmp(pname, p jsip_TAG_STR)) {1770 if (!parser_stricmp(pname, pconst.pjsip_TAG_STR)) { 1785 1771 hdr->tag = pvalue; 1786 1772 … … 1866 1852 int_parse_param( scanner, pool, &pname, &pvalue, 0); 1867 1853 1868 if (!parser_stricmp(pname, p jsip_BRANCH_STR) && pvalue.slen) {1854 if (!parser_stricmp(pname, pconst.pjsip_BRANCH_STR) && pvalue.slen) { 1869 1855 hdr->branch_param = pvalue; 1870 1856 1871 } else if (!parser_stricmp(pname, p jsip_TTL_STR) && pvalue.slen) {1857 } else if (!parser_stricmp(pname, pconst.pjsip_TTL_STR) && pvalue.slen) { 1872 1858 hdr->ttl_param = pj_strtoul(&pvalue); 1873 1859 1874 } else if (!parser_stricmp(pname, p jsip_MADDR_STR) && pvalue.slen) {1860 } else if (!parser_stricmp(pname, pconst.pjsip_MADDR_STR) && pvalue.slen) { 1875 1861 hdr->maddr_param = pvalue; 1876 1862 1877 } else if (!parser_stricmp(pname, p jsip_RECEIVED_STR) && pvalue.slen) {1863 } else if (!parser_stricmp(pname, pconst.pjsip_RECEIVED_STR) && pvalue.slen) { 1878 1864 hdr->recvd_param = pvalue; 1879 1865 1880 } else if (!parser_stricmp(pname, p jsip_RPORT_STR)) {1866 } else if (!parser_stricmp(pname, pconst.pjsip_RPORT_STR)) { 1881 1867 if (pvalue.slen) 1882 1868 hdr->rport_param = pj_strtoul(&pvalue); … … 2004 1990 pj_scan_advance_n( scanner, 8, 1); 2005 1991 2006 pj_scan_get( scanner, &p jsip_TOKEN_SPEC, &hdr->transport);2007 pj_scan_get( scanner, &p jsip_HOST_SPEC, &hdr->sent_by.host);1992 pj_scan_get( scanner, &pconst.pjsip_TOKEN_SPEC, &hdr->transport); 1993 pj_scan_get( scanner, &pconst.pjsip_HOST_SPEC, &hdr->sent_by.host); 2008 1994 2009 1995 if (*scanner->curptr==':') { 2010 1996 pj_str_t digit; 2011 1997 pj_scan_get_char(scanner); 2012 pj_scan_get(scanner, &p jsip_DIGIT_SPEC, &digit);1998 pj_scan_get(scanner, &pconst.pjsip_DIGIT_SPEC, &digit); 2013 1999 hdr->sent_by.port = pj_strtoul(&digit); 2014 2000 } -
pjproject/trunk/pjsip/src/pjsip/sip_tel_uri.c
r1241 r1417 106 106 { 107 107 PJ_UNUSED_ARG(uri); 108 return &pjsip_ TEL_STR;108 return &pjsip_parser_const()->pjsip_TEL_STR; 109 109 } 110 110 … … 183 183 char *startbuf = buf; 184 184 char *endbuf = buf+size; 185 const pjsip_parser_const_t *pc = pjsip_parser_const(); 185 186 186 187 PJ_UNUSED_ARG(context); 187 188 188 189 /* Print scheme. */ 189 copy_advance(buf, p jsip_TEL_STR);190 copy_advance(buf, pc->pjsip_TEL_STR); 190 191 *buf++ = ':'; 191 192 … … 371 372 pj_str_t token; 372 373 int skip_ws = scanner->skip_ws; 374 const pjsip_parser_const_t *pc = pjsip_parser_const(); 373 375 374 376 scanner->skip_ws = 0; 375 377 376 378 /* Parse scheme. */ 377 pj_scan_get(scanner, &p jsip_TOKEN_SPEC, &token);379 pj_scan_get(scanner, &pc->pjsip_TOKEN_SPEC, &token); 378 380 if (pj_scan_get_char(scanner) != ':') 379 381 PJ_THROW(PJSIP_SYN_ERR_EXCEPTION); 380 if (pj_stricmp_alnum(&token, &p jsip_TEL_STR) != 0)382 if (pj_stricmp_alnum(&token, &pc->pjsip_TEL_STR) != 0) 381 383 PJ_THROW(PJSIP_SYN_ERR_EXCEPTION); 382 384 … … 395 397 if (parse_params && *scanner->curptr==';') { 396 398 pj_str_t pname, pvalue; 399 const pjsip_parser_const_t *pc = pjsip_parser_const(); 397 400 398 401 do { … … 401 404 402 405 /* Get pname. */ 403 pj_scan_get(scanner, &p jsip_PARAM_CHAR_SPEC, &pname);406 pj_scan_get(scanner, &pc->pjsip_PARAM_CHAR_SPEC, &pname); 404 407 405 408 if (*scanner->curptr == '=') { … … 407 410 408 411 # if defined(PJSIP_UNESCAPE_IN_PLACE) && PJSIP_UNESCAPE_IN_PLACE!=0 409 pj_scan_get_unescape( 410 411 412 pj_scan_get_unescape(scanner, 413 &pjsip_TEL_PARSING_PVALUE_SPEC_ESC, 414 &pvalue); 412 415 # else 413 416 pj_scan_get(scanner, &pjsip_TEL_PARSING_PVALUE_SPEC, -
pjproject/trunk/pjsip/src/pjsip/sip_transport.c
r1405 r1417 114 114 * Register new transport type to PJSIP. 115 115 */ 116 PJ_DE CL(pj_status_t) pjsip_transport_register_type(unsigned tp_flag,116 PJ_DEF(pj_status_t) pjsip_transport_register_type( unsigned tp_flag, 117 117 const char *tp_name, 118 118 int def_port, … … 150 150 * Get transport type from name. 151 151 */ 152 PJ_DEF(pjsip_transport_type_e) 153 pjsip_transport_get_type_from_name(const pj_str_t *name) 152 PJ_DEF(pjsip_transport_type_e) pjsip_transport_get_type_from_name(const pj_str_t *name) 154 153 { 155 154 unsigned i; … … 179 178 * Get the transport type for the specified flags. 180 179 */ 181 PJ_DEF(pjsip_transport_type_e) 182 pjsip_transport_get_type_from_flag(unsigned flag) 180 PJ_DEF(pjsip_transport_type_e) pjsip_transport_get_type_from_flag(unsigned flag) 183 181 { 184 182 unsigned i; … … 201 199 } 202 200 203 PJ_DEF(unsigned) 204 pjsip_transport_get_flag_from_type( pjsip_transport_type_e type ) 201 PJ_DEF(unsigned) pjsip_transport_get_flag_from_type(pjsip_transport_type_e type) 205 202 { 206 203 /* Sanity check. … … 220 217 * Get the default SIP port number for the specified type. 221 218 */ 222 PJ_DEF(int) 223 pjsip_transport_get_default_port_for_type(pjsip_transport_type_e type) 219 PJ_DEF(int) pjsip_transport_get_default_port_for_type(pjsip_transport_type_e type) 224 220 { 225 221 /* Sanity check. -
pjproject/trunk/pjsip/src/pjsip/sip_ua_layer.c
r1307 r1417 237 237 * Create key to identify dialog set. 238 238 */ 239 /* 239 240 PJ_DEF(void) pjsip_ua_create_dlg_set_key( pj_pool_t *pool, 240 241 pj_str_t *set_key, … … 253 254 local_tag->ptr, local_tag->slen); 254 255 } 256 */ 255 257 256 258 /* … … 512 514 513 515 pjsip_tsx_create_key(rdata->tp_info.pool, &key, role, 514 &pjsip_invite_method, rdata);516 pjsip_get_invite_method(), rdata); 515 517 516 518 /* Lookup the INVITE transaction */ -
pjproject/trunk/pjsip/src/pjsip/sip_uri.c
r1241 r1417 244 244 char *endbuf = buf+size; 245 245 const pj_str_t *scheme; 246 const pjsip_parser_const_t *pc = pjsip_parser_const(); 246 247 247 248 *buf = '\0'; … … 254 255 /* Print "user:password@", if any. */ 255 256 if (url->user.slen) { 256 copy_advance_escape(buf, url->user, p jsip_USER_SPEC);257 copy_advance_escape(buf, url->user, pc->pjsip_USER_SPEC); 257 258 if (url->passwd.slen) { 258 259 *buf++ = ':'; 259 copy_advance_escape(buf, url->passwd, p jsip_PASSWD_SPEC);260 copy_advance_escape(buf, url->passwd, pc->pjsip_PASSWD_SPEC); 260 261 } 261 262 … … 290 291 if (context == PJSIP_URI_IN_OTHER) { 291 292 copy_advance_pair_escape(buf, ";method=", 8, url->method_param, 292 p jsip_PARAM_CHAR_SPEC);293 pc->pjsip_PARAM_CHAR_SPEC); 293 294 } 294 295 … … 296 297 if (context != PJSIP_URI_IN_FROMTO_HDR) { 297 298 copy_advance_pair_escape(buf, ";transport=", 11, url->transport_param, 298 p jsip_PARAM_CHAR_SPEC);299 pc->pjsip_PARAM_CHAR_SPEC); 299 300 } 300 301 … … 313 314 if (context != PJSIP_URI_IN_FROMTO_HDR) { 314 315 copy_advance_pair_escape(buf, ";maddr=", 7, url->maddr_param, 315 p jsip_PARAM_CHAR_SPEC);316 pc->pjsip_PARAM_CHAR_SPEC); 316 317 } 317 318 … … 328 329 /* Other param. */ 329 330 printed = pjsip_param_print_on(&url->other_param, buf, endbuf-buf, 330 &p jsip_PARAM_CHAR_SPEC,331 &p jsip_PARAM_CHAR_SPEC, ';');331 &pc->pjsip_PARAM_CHAR_SPEC, 332 &pc->pjsip_PARAM_CHAR_SPEC, ';'); 332 333 if (printed < 0) 333 334 return -1; … … 341 342 if (context == PJSIP_URI_IN_CONTACT_HDR || context == PJSIP_URI_IN_OTHER) { 342 343 printed = pjsip_param_print_on(&url->header_param, buf, endbuf-buf, 343 &p jsip_HDR_CHAR_SPEC,344 &p jsip_HDR_CHAR_SPEC, '?');344 &pc->pjsip_HDR_CHAR_SPEC, 345 &pc->pjsip_HDR_CHAR_SPEC, '?'); 345 346 if (printed < 0) 346 347 return -1; -
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r1388 r1417 262 262 } 263 263 264 PJ_DEF(pj_status_t) 265 pjsip_endpt_create_request_from_hdr( pjsip_endpoint *endpt, 264 PJ_DEF(pj_status_t) pjsip_endpt_create_request_from_hdr( pjsip_endpoint *endpt, 266 265 const pjsip_method *method, 267 266 const pjsip_uri *param_target, … … 485 484 /* Create new request message from the headers. */ 486 485 status = pjsip_endpt_create_request_from_hdr(endpt, 487 &pjsip_ack_method,486 pjsip_get_ack_method(), 488 487 tdata->msg->line.req.uri, 489 488 from_hdr, to_hdr, … … 576 575 /* Create new request message from the headers. */ 577 576 status = pjsip_endpt_create_request_from_hdr(endpt, 578 &pjsip_cancel_method,577 pjsip_get_cancel_method(), 579 578 req_tdata->msg->line.req.uri, 580 579 from_hdr, to_hdr, … … 993 992 * - send the message (#pjsip_transport_send) 994 993 */ 995 PJ_DEF(pj_status_t) 996 pjsip_endpt_send_request_stateless(pjsip_endpoint *endpt, 994 PJ_DEF(pj_status_t) pjsip_endpt_send_request_stateless(pjsip_endpoint *endpt, 997 995 pjsip_tx_data *tdata, 998 996 void *token, -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r1406 r1417 2772 2772 if (tsx->role==PJSIP_ROLE_UAS && 2773 2773 tsx->state==PJSIP_TSX_STATE_TRYING && 2774 pjsip_method_cmp(&tsx->method, &pjsip_refer_method)==0)2774 pjsip_method_cmp(&tsx->method, pjsip_get_refer_method())==0) 2775 2775 { 2776 2776 /* -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r1405 r1417 55 55 56 56 57 PJ_DEF(void) pjsua_logging_config_default(pjsua_logging_config *cfg) 58 { 59 pj_bzero(cfg, sizeof(*cfg)); 60 61 cfg->msg_logging = PJ_TRUE; 62 cfg->level = 5; 63 cfg->console_level = 4; 64 cfg->decor = PJ_LOG_HAS_SENDER | PJ_LOG_HAS_TIME | 65 PJ_LOG_HAS_MICRO_SEC | PJ_LOG_HAS_NEWLINE; 66 } 67 68 PJ_DEF(void) pjsua_logging_config_dup(pj_pool_t *pool, 69 pjsua_logging_config *dst, 70 const pjsua_logging_config *src) 71 { 72 pj_memcpy(dst, src, sizeof(*src)); 73 pj_strdup_with_null(pool, &dst->log_filename, &src->log_filename); 74 } 75 76 PJ_DEF(void) pjsua_config_default(pjsua_config *cfg) 77 { 78 pj_bzero(cfg, sizeof(*cfg)); 79 80 cfg->max_calls = 4; 81 cfg->thread_cnt = 1; 82 } 83 84 PJ_DEF(void) pjsip_cred_dup( pj_pool_t *pool, 85 pjsip_cred_info *dst, 86 const pjsip_cred_info *src) 87 { 88 pj_strdup_with_null(pool, &dst->realm, &src->realm); 89 pj_strdup_with_null(pool, &dst->scheme, &src->scheme); 90 pj_strdup_with_null(pool, &dst->username, &src->username); 91 pj_strdup_with_null(pool, &dst->data, &src->data); 92 } 93 94 PJ_DEF(void) pjsua_config_dup(pj_pool_t *pool, 95 pjsua_config *dst, 96 const pjsua_config *src) 97 { 98 unsigned i; 99 100 pj_memcpy(dst, src, sizeof(*src)); 101 102 for (i=0; i<src->outbound_proxy_cnt; ++i) { 103 pj_strdup_with_null(pool, &dst->outbound_proxy[i], 104 &src->outbound_proxy[i]); 105 } 106 107 for (i=0; i<src->cred_count; ++i) { 108 pjsip_cred_dup(pool, &dst->cred_info[i], &src->cred_info[i]); 109 } 110 111 pj_strdup_with_null(pool, &dst->user_agent, &src->user_agent); 112 pj_strdup_with_null(pool, &dst->stun_domain, &src->stun_domain); 113 pj_strdup_with_null(pool, &dst->stun_host, &src->stun_host); 114 pj_strdup_with_null(pool, &dst->stun_relay_host, &src->stun_relay_host); 115 } 116 117 PJ_DEF(void) pjsua_msg_data_init(pjsua_msg_data *msg_data) 118 { 119 pj_bzero(msg_data, sizeof(*msg_data)); 120 pj_list_init(&msg_data->hdr_list); 121 } 122 123 PJ_DEF(void) pjsua_transport_config_default(pjsua_transport_config *cfg) 124 { 125 pj_bzero(cfg, sizeof(*cfg)); 126 pjsip_tls_setting_default(&cfg->tls_setting); 127 } 128 129 PJ_DEF(void) pjsua_transport_config_dup(pj_pool_t *pool, 130 pjsua_transport_config *dst, 131 const pjsua_transport_config *src) 132 { 133 PJ_UNUSED_ARG(pool); 134 pj_memcpy(dst, src, sizeof(*src)); 135 } 136 137 PJ_DEF(void) pjsua_acc_config_default(pjsua_acc_config *cfg) 138 { 139 pj_bzero(cfg, sizeof(*cfg)); 140 141 cfg->reg_timeout = PJSUA_REG_INTERVAL; 142 cfg->transport_id = PJSUA_INVALID_ID; 143 } 144 145 PJ_DEF(void) pjsua_buddy_config_default(pjsua_buddy_config *cfg) 146 { 147 pj_bzero(cfg, sizeof(*cfg)); 148 } 149 150 PJ_DEF(void) pjsua_media_config_default(pjsua_media_config *cfg) 151 { 152 pj_bzero(cfg, sizeof(*cfg)); 153 154 cfg->clock_rate = PJSUA_DEFAULT_CLOCK_RATE; 155 cfg->max_media_ports = 32; 156 cfg->has_ioqueue = PJ_TRUE; 157 cfg->thread_cnt = 1; 158 cfg->quality = PJSUA_DEFAULT_CODEC_QUALITY; 159 cfg->ilbc_mode = PJSUA_DEFAULT_ILBC_MODE; 160 cfg->ec_tail_len = PJSUA_DEFAULT_EC_TAIL_LEN; 161 cfg->jb_init = cfg->jb_min_pre = cfg->jb_max_pre = cfg->jb_max = -1; 162 } 163 57 164 58 165 /***************************************************************************** … … 149 256 /* Only want to handle OPTIONS requests */ 150 257 if (pjsip_method_cmp(&rdata->msg_info.msg->line.req.method, 151 &pjsip_options_method) != 0)258 pjsip_get_options_method()) != 0) 152 259 { 153 260 return PJ_FALSE; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r1405 r1417 626 626 * one UDP media transport for each call. 627 627 */ 628 PJ_DEF(pj_status_t) 629 pjsua_media_transports_create(const pjsua_transport_config *app_cfg)628 PJ_DEF(pj_status_t) pjsua_media_transports_create( 629 const pjsua_transport_config *app_cfg) 630 630 { 631 631 pjsua_transport_config cfg; … … 1113 1113 return p; 1114 1114 1115 for (--p; p!=path && *p!='/' && *p!='\\'; --p);1115 for (--p; p!=path && *p!='/' && *p!='\\'; ) --p; 1116 1116 1117 1117 return (p==path) ? p : p+1; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r1404 r1417 460 460 pj_status_t status; 461 461 462 if (pjsip_method_cmp(req_method, &pjsip_subscribe_method) != 0)462 if (pjsip_method_cmp(req_method, pjsip_get_subscribe_method()) != 0) 463 463 return PJ_FALSE; 464 464 … … 927 927 tsx->role != PJSIP_UAC_ROLE || 928 928 event->type != PJSIP_EVENT_RX_MSG || 929 pjsip_method_cmp(&tsx->method, &pjsip_subscribe_method)!=0)929 pjsip_method_cmp(&tsx->method, pjsip_get_subscribe_method())!=0) 930 930 { 931 931 PJSUA_UNLOCK();
Note: See TracChangeset
for help on using the changeset viewer.