Prosody RTP processing: API: sm_vmprx_ice_stun_remote_credentials

Prototype Definition

int sm_vmprx_ice_stun_remote_credentials(struct sm_vmprx_ice_stun_remote_credentials_parms *credentialsp)

Parameters

*credentialsp
a structure of the following type:
typedef struct sm_vmprx_ice_stun_remote_credentials_parms {
	tSMVMPrxId vmprx;					/* in */
	char *remote_ice_ufrag;					/* in */
	tSM_UT32 remote_ice_ufrag_length;			/* in */
	char *remote_ice_pwd;					/* in */
	tSM_UT32 remote_ice_pwd_length;				/* in */
} SM_VMPRX_ICE_STUN_REMOTE_CREDENTIALS_PARMS;

Description

Sets the remote credentials.

This requires the module icestun to have been downloaded.

Fields

vmprx
A VMP[rx] running ICE compatible STUN.
remote_ice_ufrag
The remote ICE username fragment.
remote_ice_ufrag_length
The length of the remote ICE username fragment.
remote_ice_pwd
The remote ICE password.
remote_ice_pwd_length
The length of the remote ICE password.

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody RTP processing API.