diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-03-04 14:52:44 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-03-04 14:52:44 +0000 |
commit | 8c25bb977ff1317989406988ecf39fc0a32ccd32 (patch) | |
tree | 209a2fc305b8ec42aeaa248f73f57a2817583a2f /pjsip/src/pjsua-lib/pjsua_core.c | |
parent | b572c1c64cab8d78d606b97ac5b95ee9c210ecd7 (diff) |
Major modification in conference bridge to allow ports with different ptime and sampling rate. Also introduced sampling rate converter
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@277 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_core.c')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_core.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c index 081a3a87..e944ea42 100644 --- a/pjsip/src/pjsua-lib/pjsua_core.c +++ b/pjsip/src/pjsua-lib/pjsua_core.c @@ -72,6 +72,9 @@ void pjsua_default(void) /* Default: do not use STUN: */ pjsua.stun_port1 = pjsua.stun_port2 = 0; + /* Default: sampling rate is 8000 */ + pjsua.clock_rate = 8000; + /* Init accounts: */ pjsua.acc_cnt = 1; for (i=0; i<PJ_ARRAY_SIZE(pjsua.acc); ++i) { @@ -618,7 +621,9 @@ pj_status_t pjsua_start(void) status = pjmedia_conf_create(pjsua.pool, pjsua.max_calls+PJSUA_CONF_MORE_PORTS, - 8000, 160, 16, &pjsua.mconf); + pjsua.clock_rate, + pjsua.clock_rate * 20 / 1000, 16, + &pjsua.mconf); if (status != PJ_SUCCESS) { pj_caching_pool_destroy(&pjsua.cp); pjsua_perror(THIS_FILE, |