From e3f862fca94af0cb4812796055b18d2ba107b613 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sun, 24 Sep 2006 00:07:11 +0000 Subject: Fixed several bugs in PJSUA-API: - in some condition, when outgoing call fails, call count incorrectly decremented to -1 - introduce account priority in pjsua_acc_config, and improve the account searching for incoming calls - pjsua will hangup call after sending transfer/REFER request. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@737 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua-lib/pjsua.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'pjsip/include/pjsua-lib/pjsua.h') diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 0a106f47..82e22abe 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -1019,11 +1019,26 @@ PJ_DECL(pj_status_t) pjsua_transport_close( pjsua_transport_id id, #endif +/** + * Default account priority. + */ +#ifndef PJSUA_DEFAULT_ACC_PRIORITY +# define PJSUA_DEFAULT_ACC_PRIORITY 0 +#endif + + /** * Account configuration. */ typedef struct pjsua_acc_config { + /** + * Account priority, which is used to control the order of matching + * incoming/outgoing requests. The higher the number means the higher + * the priority is, and the account will be matched first. + */ + int priority; + /** * The full SIP URL for the account. The value can take name address or * URL format, and will look something like "sip:account@serviceprovider". -- cgit v1.2.3