From 4d82c2e0f6790422e6e319ad80983e1e002fca85 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sun, 28 May 2006 14:58:12 +0000 Subject: More changes in pjsua API to make it more complete high level API git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@482 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/pjsua/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pjsip-apps/src') diff --git a/pjsip-apps/src/pjsua/main.c b/pjsip-apps/src/pjsua/main.c index 1e060f4e..5355975f 100644 --- a/pjsip-apps/src/pjsua/main.c +++ b/pjsip-apps/src/pjsua/main.c @@ -27,7 +27,6 @@ */ int main(int argc, char *argv[]) { - pjsua_config cfg; /* Init default settings. */ @@ -55,13 +54,12 @@ int main(int argc, char *argv[]) /* Register message logger to print incoming and outgoing * messages. */ - pjsip_endpt_register_module(pjsua.endpt, + pjsip_endpt_register_module(pjsua_get_pjsip_endpt(), &pjsua_console_app_msg_logger); /* Start pjsua! */ if (pjsua_start() != PJ_SUCCESS) { - pjsua_destroy(); return 1; } @@ -78,6 +76,11 @@ int main(int argc, char *argv[]) /* Destroy pjsua: */ pjsua_destroy(); + /* This is for internal testing, to make sure that pjsua_destroy() + * can be called multiple times. + */ + pjsua_destroy(); + /* Close logging: */ pjsua_console_app_logging_shutdown(); -- cgit v1.2.3