summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib/pjsua.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-08-15 13:11:22 +0000
committerBenny Prijono <bennylp@teluu.com>2006-08-15 13:11:22 +0000
commit2b4ce727a94196b76c3d2e6bf3f43c201207b82c (patch)
treedfbe08872ec71616ef3c34a56e461695b7581d9c /pjsip/include/pjsua-lib/pjsua.h
parenta3efa6db12c8d49a7021150e803e3183def178b0 (diff)
Added initial PUBLISH client support, and also default account selection in pjsua/pjsua-lib
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@683 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib/pjsua.h')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index ce4a018d..1ca2ad21 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -1163,6 +1163,26 @@ PJ_DECL(pj_bool_t) pjsua_acc_is_valid(pjsua_acc_id acc_id);
/**
+ * Set default account to be used when incoming and outgoing
+ * requests doesn't match any accounts.
+ *
+ * @param acc_id The account ID to be used as default.
+ *
+ * @return PJ_SUCCESS on success.
+ */
+PJ_DECL(pj_status_t) pjsua_acc_set_default(pjsua_acc_id acc_id);
+
+
+/**
+ * Get default account.
+ *
+ * @return The default account ID, or PJSUA_INVALID_ID if no
+ * default account is configured.
+ */
+PJ_DECL(pjsua_acc_id) pjsua_acc_get_default(void);
+
+
+/**
* Add a new account to pjsua. PJSUA must have been initialized (with
* #pjsua_init()) before calling this function.
*