| 1 | {{{ |
| 2 | #!html |
| 3 | <!-- MAIN TABLE START --> |
| 4 | <table border=0 width="90%" align="center"><tr><td> |
| 5 | }}} |
| 6 | |
| 7 | = PJSUA initialization and shutdown = |
| 8 | |
| 9 | As described in the [http://www.pjsip.org/docs/latest/pjsip/docs/html/group__PJSUA__LIB__BASE.htm#details PJSUA-API Basic API documentation], application needs to call {{{pjsua_create()}}}, {{{pjsua_pool_create()}}}, {{{pjsua_init()}}} to perform the initialization. Then app must call {{{pjsua_start()}}} to start PJSUA and finally after everything is done, call {{{pjsua_destroy()}}} to shut it down. |
| 10 | |
| 11 | It is not necessary to call these functions from the main thread, i.e. application can perform the initialization and shutdown from a secondary/worker thread. However, it is recommended to call {{{pj_init()}}} and {{{pj_shutdown()}}} from the main thread. |
| 12 | |
| 13 | {{{ |
| 14 | #!html |
| 15 | <!-- MAIN TABLE END --> |
| 16 | </td></tr></table> |
| 17 | }}} |