blob: 7245469ce7b4573c9bf6a509ac1be1fc7739951c [file] [log] [blame]
Benny Prijonoeebe9af2006-06-13 22:57:13 +00001/* $Id$ */
2/*
Benny Prijono32177c02008-06-20 22:44:47 +00003 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
Benny Prijonoeebe9af2006-06-13 22:57:13 +00004 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19#ifndef __PJSUA_INTERNAL_H__
20#define __PJSUA_INTERNAL_H__
21
22/**
23 * This is the private header used by pjsua library implementation.
24 * Applications should not include this file.
25 */
26
27PJ_BEGIN_DECL
28
29/**
Benny Prijono224b4e22008-06-19 14:10:28 +000030 * Media transport state.
31 */
32typedef enum pjsua_med_tp_st
33{
34 /** Not initialized */
35 PJSUA_MED_TP_IDLE,
36
37 /** Initialized (media_create() has been called) */
38 PJSUA_MED_TP_INIT,
39
40 /** Running (media_start() has been called) */
41 PJSUA_MED_TP_RUNNING
42
43} pjsua_med_tp_st;
44
45/**
Benny Prijonoeebe9af2006-06-13 22:57:13 +000046 * Structure to be attached to invite dialog.
47 * Given a dialog "dlg", application can retrieve this structure
48 * by accessing dlg->mod_data[pjsua.mod.id].
49 */
50typedef struct pjsua_call
51{
52 unsigned index; /**< Index in pjsua array. */
53 pjsip_inv_session *inv; /**< The invite session. */
54 void *user_data; /**< User/application data. */
55 pjsip_status_code last_code; /**< Last status code seen. */
56 pj_str_t last_text; /**< Last status text seen. */
57 pj_time_val start_time;/**< First INVITE sent/received. */
58 pj_time_val res_time; /**< First response sent/received. */
59 pj_time_val conn_time; /**< Connected/confirmed time. */
60 pj_time_val dis_time; /**< Disconnect time. */
61 pjsua_acc_id acc_id; /**< Account index being used. */
Benny Prijonodb844a42008-02-02 17:07:18 +000062 int secure_level;/**< Signaling security level. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +000063 pjsua_call_media_status media_st;/**< Media state. */
64 pjmedia_dir media_dir; /**< Media direction. */
65 pjmedia_session *session; /**< The media session. */
Benny Prijonoa310bd22008-06-27 21:19:44 +000066 int audio_idx; /**< Index of m=audio in SDP. */
Benny Prijono8147f402007-11-21 14:50:07 +000067 pj_uint32_t ssrc; /**< RTP SSRC */
Benny Prijonoeebe9af2006-06-13 22:57:13 +000068 int conf_slot; /**< Slot # in conference bridge. */
69 pjsip_evsub *xfer_sub; /**< Xfer server subscription, if this
70 call was triggered by xfer. */
Benny Prijonod8179652008-01-23 20:39:07 +000071 pjmedia_transport *med_tp; /**< Current media transport. */
Benny Prijono224b4e22008-06-19 14:10:28 +000072 pj_status_t med_tp_ready;/**< Media transport status. */
Benny Prijonod8179652008-01-23 20:39:07 +000073 pjmedia_transport *med_orig; /**< Original media transport */
Benny Prijono224b4e22008-06-19 14:10:28 +000074 pjsua_med_tp_st med_tp_st; /**< Media transport state */
Benny Prijonoeebe9af2006-06-13 22:57:13 +000075 pj_timer_entry refresh_tm;/**< Timer to send re-INVITE. */
76 pj_timer_entry hangup_tm; /**< Timer to hangup call. */
Benny Prijono91a6a172007-10-31 08:59:29 +000077 pj_stun_nat_type rem_nat_type; /**< NAT type of remote endpoint. */
Nanang Izzuddin4375f902008-06-26 19:12:09 +000078 pjmedia_srtp_use rem_srtp_use; /**< Remote's SRTP usage policy. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +000079
80 char last_text_buf_[128]; /**< Buffer for last_text. */
81
82} pjsua_call;
83
84
85/**
86 * Server presence subscription list head.
87 */
Benny Prijono63fba012008-07-17 14:19:10 +000088struct pjsua_srv_pres
Benny Prijonoeebe9af2006-06-13 22:57:13 +000089{
90 PJ_DECL_LIST_MEMBER(struct pjsua_srv_pres);
Benny Prijono63fba012008-07-17 14:19:10 +000091 pjsip_evsub *sub; /**< The evsub. */
92 char *remote; /**< Remote URI. */
93 int acc_id; /**< Account ID. */
94 pjsip_dialog *dlg; /**< Dialog. */
95 int expires; /**< "expires" value in the request. */
96};
Benny Prijonoeebe9af2006-06-13 22:57:13 +000097
98
99/**
100 * Account
101 */
102typedef struct pjsua_acc
103{
Benny Prijonoc91ed8d2008-07-13 12:24:55 +0000104 pj_pool_t *pool; /**< Pool for this account. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000105 pjsua_acc_config cfg; /**< Account configuration. */
106 pj_bool_t valid; /**< Is this account valid? */
107
108 int index; /**< Index in accounts array. */
Benny Prijonoc570f2d2006-07-18 00:33:02 +0000109 pj_str_t display; /**< Display name, if any. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000110 pj_str_t user_part; /**< User part of local URI. */
Benny Prijonoe8554ef2008-03-22 09:33:52 +0000111 pj_str_t contact; /**< Our Contact URI for REGISTER */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000112
Benny Prijonob4a17c92006-07-10 14:40:21 +0000113 pj_str_t srv_domain; /**< Host part of reg server. */
114 int srv_port; /**< Port number of reg server. */
115
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000116 pjsip_regc *regc; /**< Client registration session. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000117 pj_status_t reg_last_err; /**< Last registration error. */
118 int reg_last_code; /**< Last status last register. */
119
Benny Prijonobddef2c2007-10-31 13:28:08 +0000120 pj_timer_entry ka_timer; /**< Keep-alive timer for UDP. */
121 pjsip_transport *ka_transport; /**< Transport for keep-alive. */
122 pj_sockaddr ka_target; /**< Destination address for K-A */
123 unsigned ka_target_len; /**< Length of ka_target. */
124
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000125 pjsip_route_hdr route_set; /**< Complete route set inc. outbnd.*/
126
127 unsigned cred_cnt; /**< Number of credentials. */
128 pjsip_cred_info cred[PJSUA_ACC_MAX_PROXIES]; /**< Complete creds. */
129
130 pj_bool_t online_status; /**< Our online status. */
Benny Prijono4461c7d2007-08-25 13:36:15 +0000131 pjrpid_element rpid; /**< RPID element information. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000132 pjsua_srv_pres pres_srv_list; /**< Server subscription list. */
Benny Prijono3a5e1ab2006-08-15 20:26:34 +0000133 pjsip_publishc *publish_sess; /**< Client publication session. */
134 pj_bool_t publish_state; /**< Last published online status */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000135
136} pjsua_acc;
137
138
139/**
140 *Transport.
141 */
Benny Prijono62c5c5b2007-01-13 23:22:40 +0000142typedef struct pjsua_transport_data
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000143{
Benny Prijonoe93e2872006-06-28 16:46:49 +0000144 int index;
145 pjsip_transport_type_e type;
146 pjsip_host_port local_name;
147
148 union {
149 pjsip_transport *tp;
150 pjsip_tpfactory *factory;
151 void *ptr;
152 } data;
153
Benny Prijono62c5c5b2007-01-13 23:22:40 +0000154} pjsua_transport_data;
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000155
156
Benny Prijono63fba012008-07-17 14:19:10 +0000157/** Maximum length of subscription termination reason. */
158#define PJSUA_BUDDY_SUB_TERM_REASON_LEN 32
159
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000160/**
161 * Buddy data.
162 */
163typedef struct pjsua_buddy
164{
Benny Prijonoc91ed8d2008-07-13 12:24:55 +0000165 pj_pool_t *pool; /**< Pool for this buddy. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000166 unsigned index; /**< Buddy index. */
167 pj_str_t uri; /**< Buddy URI. */
168 pj_str_t contact; /**< Contact learned from subscrp. */
169 pj_str_t name; /**< Buddy name. */
170 pj_str_t display; /**< Buddy display name. */
171 pj_str_t host; /**< Buddy host. */
172 unsigned port; /**< Buddy port. */
173 pj_bool_t monitor; /**< Should we monitor? */
Benny Prijonof9c40c32007-06-28 07:20:26 +0000174 pjsip_dialog *dlg; /**< The underlying dialog. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000175 pjsip_evsub *sub; /**< Buddy presence subscription */
Benny Prijono63fba012008-07-17 14:19:10 +0000176 pj_str_t term_reason;/**< Subscription termination reason */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000177 pjsip_pres_status status; /**< Buddy presence status. */
178
179} pjsua_buddy;
180
181
182/**
183 * File player/recorder data.
184 */
185typedef struct pjsua_file_data
186{
Benny Prijonoa66c3312007-01-21 23:12:40 +0000187 pj_bool_t type; /* 0=player, 1=playlist */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000188 pjmedia_port *port;
Benny Prijonod5696da2007-07-17 16:25:45 +0000189 pj_pool_t *pool;
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000190 unsigned slot;
191} pjsua_file_data;
192
193
194/**
195 * Additional parameters for conference bridge.
196 */
197typedef struct pjsua_conf_setting
198{
199 unsigned channel_count;
200 unsigned samples_per_frame;
201 unsigned bits_per_sample;
202} pjsua_conf_setting;
203
204
205/**
206 * Global pjsua application data.
207 */
208struct pjsua_data
209{
210
211 /* Control: */
212 pj_caching_pool cp; /**< Global pool factory. */
213 pj_pool_t *pool; /**< pjsua's private pool. */
214 pj_mutex_t *mutex; /**< Mutex protection for this data */
215
216 /* Logging: */
217 pjsua_logging_config log_cfg; /**< Current logging config. */
218 pj_oshandle_t log_file; /**<Output log file handle */
219
220 /* SIP: */
221 pjsip_endpoint *endpt; /**< Global endpoint. */
222 pjsip_module mod; /**< pjsua's PJSIP module. */
Benny Prijono62c5c5b2007-01-13 23:22:40 +0000223 pjsua_transport_data tpdata[8]; /**< Array of transports. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000224
225 /* Threading: */
226 pj_bool_t thread_quit_flag; /**< Thread quit flag. */
227 pj_thread_t *thread[4]; /**< Array of threads. */
228
Benny Prijonoc97608e2007-03-23 16:34:20 +0000229 /* STUN and resolver */
230 pj_stun_config stun_cfg; /**< Global STUN settings. */
231 pj_sockaddr stun_srv; /**< Resolved STUN server address */
232 pj_status_t stun_status; /**< STUN server status. */
233 pj_dns_resolver *resolver; /**< DNS resolver. */
234
Benny Prijono6ba8c542007-10-16 01:34:14 +0000235 /* Detected NAT type */
236 pj_stun_nat_type nat_type; /**< NAT type. */
237 pj_status_t nat_status; /**< Detection status. */
238 pj_bool_t nat_in_progress; /**< Detection in progress */
239
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000240 /* Account: */
241 unsigned acc_cnt; /**< Number of accounts. */
242 pjsua_acc_id default_acc; /**< Default account ID */
243 pjsua_acc acc[PJSUA_MAX_ACC]; /**< Account array. */
Benny Prijono093d3022006-09-24 00:07:11 +0000244 pjsua_acc_id acc_ids[PJSUA_MAX_ACC]; /**< Acc sorted by prio*/
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000245
246 /* Calls: */
247 pjsua_config ua_cfg; /**< UA config. */
248 unsigned call_cnt; /**< Call counter. */
249 pjsua_call calls[PJSUA_MAX_CALLS];/**< Calls array. */
Benny Prijono5773cd62008-01-19 13:01:42 +0000250 pjsua_call_id next_call_id; /**< Next call id to use*/
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000251
252 /* Buddy; */
253 unsigned buddy_cnt; /**< Buddy count. */
254 pjsua_buddy buddy[PJSUA_MAX_BUDDIES]; /**< Buddy array. */
255
Benny Prijono7a5f5102007-05-29 00:33:09 +0000256 /* Presence: */
257 pj_timer_entry pres_timer;/**< Presence refresh timer. */
258
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000259 /* Media: */
260 pjsua_media_config media_cfg; /**< Media config. */
261 pjmedia_endpt *med_endpt; /**< Media endpoint. */
262 pjsua_conf_setting mconf_cfg; /**< Additionan conf. bridge. param */
263 pjmedia_conf *mconf; /**< Conference bridge. */
264 int cap_dev; /**< Capture device ID. */
265 int play_dev; /**< Playback device ID. */
Benny Prijonoe909eac2006-07-27 22:04:56 +0000266 pj_bool_t no_snd; /**< No sound (app will manage it) */
Nanang Izzuddin68559c32008-06-13 17:01:46 +0000267 pj_pool_t *snd_pool; /**< Sound's private pool. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000268 pjmedia_snd_port *snd_port; /**< Sound port. */
Nanang Izzuddin68559c32008-06-13 17:01:46 +0000269 pj_timer_entry snd_idle_timer;/**< Sound device idle timer. */
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000270 pjmedia_master_port *null_snd; /**< Master port for null sound. */
271 pjmedia_port *null_port; /**< Null port. */
272
273
274 /* File players: */
275 unsigned player_cnt;/**< Number of file players. */
Benny Prijonocba59d92007-02-16 09:22:56 +0000276 pjsua_file_data player[PJSUA_MAX_PLAYERS];/**< Array of players.*/
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000277
278 /* File recorders: */
279 unsigned rec_cnt; /**< Number of file recorders. */
Benny Prijonocba59d92007-02-16 09:22:56 +0000280 pjsua_file_data recorder[PJSUA_MAX_RECORDERS];/**< Array of recs.*/
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000281};
282
283
284extern struct pjsua_data pjsua_var;
285
Benny Prijono44e88ea2007-10-30 15:42:35 +0000286/**
287 * Get the instance of pjsua
288 */
289PJ_DECL(struct pjsua_data*) pjsua_get_var(void);
290
291
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000292
293/**
294 * IM callback data.
295 */
296typedef struct pjsua_im_data
297{
298 pjsua_acc_id acc_id;
299 pjsua_call_id call_id;
300 pj_str_t to;
301 pj_str_t body;
302 void *user_data;
303} pjsua_im_data;
304
305
306/**
307 * Duplicate IM data.
308 */
309PJ_INLINE(pjsua_im_data*) pjsua_im_data_dup(pj_pool_t *pool,
310 const pjsua_im_data *src)
311{
312 pjsua_im_data *dst;
313
Benny Prijono07113c92006-11-21 08:38:00 +0000314 dst = (pjsua_im_data*) pj_pool_alloc(pool, sizeof(*dst));
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000315 dst->acc_id = src->acc_id;
316 dst->call_id = src->call_id;
317 pj_strdup_with_null(pool, &dst->to, &src->to);
318 dst->user_data = src->user_data;
319 pj_strdup_with_null(pool, &dst->body, &src->body);
320
321 return dst;
322}
323
324
Benny Prijono148c9dd2006-09-19 13:37:53 +0000325#if 1
326#define PJSUA_LOCK() pj_mutex_lock(pjsua_var.mutex)
327#define PJSUA_TRY_LOCK() pj_mutex_trylock(pjsua_var.mutex)
328#define PJSUA_UNLOCK() pj_mutex_unlock(pjsua_var.mutex)
Benny Prijono3a5e1ab2006-08-15 20:26:34 +0000329#else
330#define PJSUA_LOCK()
Benny Prijono148c9dd2006-09-19 13:37:53 +0000331#define PJSUA_TRY_LOCK() PJ_SUCCESS
Benny Prijono3a5e1ab2006-08-15 20:26:34 +0000332#define PJSUA_UNLOCK()
333#endif
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000334
335
Benny Prijonoc97608e2007-03-23 16:34:20 +0000336/**
337 * Resolve STUN server.
338 */
339pj_status_t pjsua_resolve_stun_server(pj_bool_t wait);
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000340
341/**
342 * Handle incoming invite request.
343 */
344pj_bool_t pjsua_call_on_incoming(pjsip_rx_data *rdata);
345
Benny Prijonoc97608e2007-03-23 16:34:20 +0000346/*
347 * Media channel.
348 */
349pj_status_t pjsua_media_channel_init(pjsua_call_id call_id,
Benny Prijonod8179652008-01-23 20:39:07 +0000350 pjsip_role_e role,
Benny Prijono25b2ea12008-01-24 19:20:54 +0000351 int security_level,
Benny Prijono224b4e22008-06-19 14:10:28 +0000352 pj_pool_t *tmp_pool,
353 const pjmedia_sdp_session *rem_sdp,
Benny Prijono25b2ea12008-01-24 19:20:54 +0000354 int *sip_err_code);
Benny Prijonoc97608e2007-03-23 16:34:20 +0000355pj_status_t pjsua_media_channel_create_sdp(pjsua_call_id call_id,
356 pj_pool_t *pool,
Benny Prijonod8179652008-01-23 20:39:07 +0000357 const pjmedia_sdp_session *rem_sdp,
Benny Prijono25b2ea12008-01-24 19:20:54 +0000358 pjmedia_sdp_session **p_sdp,
359 int *sip_err_code);
Benny Prijonoc97608e2007-03-23 16:34:20 +0000360pj_status_t pjsua_media_channel_update(pjsua_call_id call_id,
Benny Prijono224b4e22008-06-19 14:10:28 +0000361 const pjmedia_sdp_session *local_sdp,
Benny Prijonodbce2cf2007-03-28 16:24:00 +0000362 const pjmedia_sdp_session *remote_sdp);
Benny Prijonoc97608e2007-03-23 16:34:20 +0000363pj_status_t pjsua_media_channel_deinit(pjsua_call_id call_id);
364
365
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000366/**
367 * Init presence.
368 */
369pj_status_t pjsua_pres_init();
370
371/*
372 * Start presence subsystem.
373 */
374pj_status_t pjsua_pres_start(void);
375
376/**
377 * Refresh presence subscriptions
378 */
379void pjsua_pres_refresh(void);
380
381/*
Benny Prijono4461c7d2007-08-25 13:36:15 +0000382 * Update server subscription (e.g. when our online status has changed)
383 */
384void pjsua_pres_update_acc(int acc_id, pj_bool_t force);
385
386/*
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000387 * Shutdown presence.
388 */
389void pjsua_pres_shutdown(void);
390
391/**
Benny Prijono3a5e1ab2006-08-15 20:26:34 +0000392 * Init presence for aoocunt.
393 */
394pj_status_t pjsua_pres_init_acc(int acc_id);
395
396/**
Benny Prijono8b6834f2007-02-24 13:29:22 +0000397 * Send PUBLISH
398 */
399pj_status_t pjsua_pres_init_publish_acc(int acc_id);
400
401/**
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000402 * Terminate server subscription for the account
403 */
404void pjsua_pres_delete_acc(int acc_id);
405
406/**
407 * Init IM module handler to handle incoming MESSAGE outside dialog.
408 */
409pj_status_t pjsua_im_init(void);
410
411/**
412 * Init call subsystem.
413 */
414pj_status_t pjsua_call_subsys_init(const pjsua_config *cfg);
415
416/**
417 * Start call subsystem.
418 */
419pj_status_t pjsua_call_subsys_start(void);
420
421/**
422 * Init media subsystems.
423 */
424pj_status_t pjsua_media_subsys_init(const pjsua_media_config *cfg);
425
426/**
427 * Start pjsua media subsystem.
428 */
429pj_status_t pjsua_media_subsys_start(void);
430
431/**
432 * Destroy pjsua media subsystem.
433 */
434pj_status_t pjsua_media_subsys_destroy(void);
435
436/**
437 * Private: check if we can accept the message.
438 * If not, then p_accept header will be filled with a valid
439 * Accept header.
440 */
441pj_bool_t pjsua_im_accept_pager(pjsip_rx_data *rdata,
442 pjsip_accept_hdr **p_accept_hdr);
443
444/**
445 * Private: process pager message.
446 * This may trigger pjsua_ui_on_pager() or pjsua_ui_on_typing().
447 */
448void pjsua_im_process_pager(int call_id, const pj_str_t *from,
449 const pj_str_t *to, pjsip_rx_data *rdata);
450
451
452/**
453 * Create Accept header for MESSAGE.
454 */
455pjsip_accept_hdr* pjsua_im_create_accept(pj_pool_t *pool);
456
457/*
458 * Add additional headers etc in msg_data specified by application
459 * when sending requests.
460 */
461void pjsua_process_msg_data(pjsip_tx_data *tdata,
462 const pjsua_msg_data *msg_data);
463
464
465/*
466 * Add route_set to outgoing requests
467 */
468void pjsua_set_msg_route_set( pjsip_tx_data *tdata,
469 const pjsip_route_hdr *route_set );
470
471
472/*
473 * Simple version of MIME type parsing (it doesn't support parameters)
474 */
475void pjsua_parse_media_type( pj_pool_t *pool,
476 const pj_str_t *mime,
477 pjsip_media_type *media_type);
478
479
Benny Prijono62c5c5b2007-01-13 23:22:40 +0000480/*
481 * Internal function to init transport selector from transport id.
482 */
483void pjsua_init_tpselector(pjsua_transport_id tp_id,
484 pjsip_tpselector *sel);
485
486
Benny Prijono627cbb42007-09-25 20:48:49 +0000487pj_status_t acquire_call(const char *title,
488 pjsua_call_id call_id,
489 pjsua_call **p_call,
490 pjsip_dialog **p_dlg);
491const char *good_number(char *buf, pj_int32_t val);
492void print_call(const char *title,
493 int call_id,
494 char *buf, pj_size_t size);
495
Benny Prijono62c5c5b2007-01-13 23:22:40 +0000496
Benny Prijonoeebe9af2006-06-13 22:57:13 +0000497PJ_END_DECL
498
499#endif /* __PJSUA_INTERNAL_H__ */
500