summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/symbian_ua/ua.cpp
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-12-28 18:55:02 +0000
committerBenny Prijono <bennylp@teluu.com>2007-12-28 18:55:02 +0000
commit4cc0627a188a719358d9deb8a884b3941ee86820 (patch)
treeb8151af7aae830dec86bd54d1fa2aa68f8a08d5e /pjsip-apps/src/symbian_ua/ua.cpp
parenta1a1a2babda1465967373157c26c3d88a44f3cca (diff)
Ticket #435: Fixed and tested audio on Symbian device
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1641 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/symbian_ua/ua.cpp')
-rw-r--r--pjsip-apps/src/symbian_ua/ua.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/pjsip-apps/src/symbian_ua/ua.cpp b/pjsip-apps/src/symbian_ua/ua.cpp
index f8a2ec38..1dd8a20d 100644
--- a/pjsip-apps/src/symbian_ua/ua.cpp
+++ b/pjsip-apps/src/symbian_ua/ua.cpp
@@ -31,7 +31,7 @@
//
// Destination URI (to make call, or to subscribe presence)
//
-#define SIP_DST_URI "sip:192.168.0.7:5061"
+#define SIP_DST_URI "sip:192.168.0.11:5060"
//
// Account
@@ -57,7 +57,7 @@
//
// STUN server
-#if 1
+#if 0
// Use this to have the STUN server resolved normally
# define STUN_DOMAIN NULL
# define STUN_SERVER "stun.fwdnet.net"
@@ -74,7 +74,7 @@
//
// Use ICE?
//
-#define USE_ICE 1
+#define USE_ICE 0
//
@@ -320,6 +320,7 @@ static pj_status_t app_startup()
med_cfg.thread_cnt = 0; // Disable threading on Symbian
med_cfg.has_ioqueue = PJ_FALSE;
med_cfg.clock_rate = 8000;
+ med_cfg.audio_frame_ptime = 40;
med_cfg.ec_tail_len = 0;
med_cfg.enable_ice = USE_ICE;
@@ -452,6 +453,8 @@ static void PrintMenu()
" d Dump states\n"
" D Dump states detail\n"
" P Dump pool factory\n"
+ " l Start loopback audio device\n"
+ " L Stop loopback audio device\n"
" m Call " SIP_DST_URI "\n"
" a Answer call\n"
" h Hangup all calls\n"
@@ -481,6 +484,12 @@ void ConsoleUI::RunL()
case 'P':
pj_pool_factory_dump(pjsua_get_pool_factory(), PJ_TRUE);
break;
+ case 'l':
+ pjsua_conf_connect(0, 0);
+ break;
+ case 'L':
+ pjsua_conf_disconnect(0, 0);
+ break;
case 'm':
if (g_call_id != PJSUA_INVALID_ID) {
PJ_LOG(3,(THIS_FILE, "Another call is active"));