diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-05-28 14:58:12 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-05-28 14:58:12 +0000 |
commit | 4d82c2e0f6790422e6e319ad80983e1e002fca85 (patch) | |
tree | 0df2957447b298b2d7429e1f98b7dd3199bda592 /pjsip-apps/src/pjsua | |
parent | e92fc1e1389daa666961bedb4aecefdd4334c391 (diff) |
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
Diffstat (limited to 'pjsip-apps/src/pjsua')
-rw-r--r-- | pjsip-apps/src/pjsua/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
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(); |