int sm_vmprx_create(struct sm_vmprx_create_parms *vmprxp)
typedef struct sm_vmprx_create_parms { tSMVMPrxId vmprx; /* out */ tSMModuleId module; /* in */ enum kSMVMPrxType { kSMVMPrxTypeIPv4, kSMVMPrxTypeIPv6, } type; /* in */ struct in_addr address; /* in */ struct in6_addr ipv6_address; /* in */ tSM_INT mux_rtcp; /* in */ } SM_VMPRX_CREATE_PARMS;
Allocates, on a specific module, a new VMP[rx] to receive incoming RTP data. If the call completes successfully, the parameter vmprx will be set to the identifier for that vmprx.
A VMP[rx] is automatically allocated an even numbered port number for incoming RTP data, this information may be obtained by waiting for sm_vmprx_status() to return the port information. Any RTP data arriving at the VMP[rx] will be interpreted based on the codec configuration. The VMP[rx] will discard any incoming packets that do not match it's current configuration settings.
This requires the module vmprx to have been downloaded.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody RTP processing API.