Registration Session in PjSIP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,


  PJSUA-API Accounts Management

pj_status_t 
<http://www.pjsip.org/pjlib/docs/html/group__PJ__BASIC.htm#gb43ba3167bd2a2ab4580509dbf79200e> 
pjsua_acc_add 	( 	const pjsua_acc_config 
<http://www.pjsip.org/pjsip/docs/html/structpjsua__acc__config.htm> *  
/acc_cfg/,

	
	pj_bool_t 
<http://www.pjsip.org/pjlib/docs/html/group__PJ__BASIC.htm#g1dc7a356fb36bd2dee2bc7d6c7e817e4>  
	/is_default/,

	
	pjsua_acc_id 
<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BASE.htm#g01a78e17d7787f7e0ea5efd240f3e427> 
*  	/p_acc_id/ 	 

	) 	
	
	

Add a new account to pjsua. PJSUA must have been initialized (with 
pjsua_init() 
<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BASE.htm#g72ccd5cc7dbf6f26b4ffedc0d9728a2d>) 
before calling this function. If registration is configured for this 
account, this function would also start the SIP registration session 
with the SIP registrar server. This SIP registration session will be 
maintained internally by the library, and application doesn't need to do 
anything to maintain the registration session.

*Parameters:*

    	/acc_cfg/  	Account configuration.

    	/is_default/  	If non-zero, this account will be set as the default
    account. The default account will be used when sending outgoing
    requests (e.g. making call) when no account is specified, and when
    receiving incoming requests when the request does not match any
    accounts. It is recommended that default account is set to local/LAN
    account.

    	/p_acc_id/  	Pointer to receive account ID of the new account.

*Returns:*
    PJ_SUCCESS on success, or the appropriate error code.

*Python:*
    The function returns (status, account_id) tuple:

    status, account_id = py_pjsua.acc_add(acc_cfg, is_default)
        


 From the above, " This SIP registration session will be maintained 
internally by the library, and application doesn't need to do anything 
to maintain the registration session ", can any one pls explain where / 
in which library  the registration session is maintained ?


-- 
Thanks And Regards,
Srivatsan.D,






[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux