AnsweredAssumed Answered

How to pass struct as parameter in rbsh

Question asked by qwertz on Aug 16, 2017
Latest reply on Aug 29, 2017 by cezi


How do i use the following command?

if i enter

Comm setH323Details 1

then H323 will be enabled. How do i set the second value strH323Name and so on... why can't there be a little explanation or example... thank you

 

SYNC Comm_setH323Details(pH323Details);

This is used to set the gatekeeper details

privilege level ADMIN

Parameters

Inputs
pH323DetailsstructureSTRUCTURE This is a struct containing the GK details
bIsH323EnabledThis field controls whether or not H323 is enabled
disabled=0H323 is NOT enabled
enabled=1H323 is enabled
strH323NameNULL terminated string indicating the H323 Name
strH323ExtnNULL terminated string indicating the H323 Extension
eGkModeThe various GK Modes we support
GK_MODE_OFF=0GkMode is GK_MODE_OFF
GK_MODE_AUTO=1GkMode is GK_MODE_AUTO
GK_MODE_MANUAL=2GkMode is GK_MODE_MANUAL
GK_MODE_MANUAL_H460=3GkMode is GK_MODE_MANUAL_H460
h323GkModeAutoThis struct needs to be filled only in case the eGkMode is having value GK_MODE_AUTO
h323GkModeAuto.strGkIdentifierNULL terminated string indicating the GK Identifier, applicable when GkMode is GK_MODE_AUTO
h323GkModeManualThis struct needs to be filled only in case the eGkMode is having value GK_MODE_MANUAL
h323GkModeManual.strGkIpAddressNULL terminated string indicating the GK IPAddress, applicable when GkMode is GK_MODE_MANUAL
h323GkModeManual.gkPortpositive non-zero integer, indicating the port of the GK, applicable when GkMode is GK_MODE_MANUAL
h323GkModeH460This struct needs to be filled only in case the eGkMode is having value GK_MODE_MANUAL_H460
h323GkModeH460.strGkIpAddressNULL terminated string indicating the GK IPAddress, applicable when GkMode is GK_MODE_MANUAL_H460
h323GkModeH460.gkPortpositive non-zero integer, indicating the port of the GK, applicable when GkMode is GK_MODE_MANUAL_H460
bIsAuthEnabledThis controls whether or not we want to do GK Authentication, this cannot have a value of 1, if GkMode is GK_MODE_OFF
disabled=0GK Authentication is NOT enabled
enabled=1GK Authentication is enabled
strGkAuthUsernameNULL terminated string indicating the GK Auth Name, applicable only when bIsAuthEnabled=1
strGkAuthPasswordNULL terminated string indicating the GK Auth Password, applicable only when bIsAuthEnabled=1
Outputs
_rvintegercommReturnVal
COMMRPC_SUCCESS=0COMMRPC_SUCCESS
COMMRPC_FAILURE=-601COMMRPC_FAILURE
COMMRPC_FAILURE_INVALIDPARAM=-602COMMRPC_FAILURE_INVALIDPARAM
COMMRPC_FAILURE_NOTALLOWED_TRANSIT_IS_ENABLED=-605COMMRPC_FAILURE_NOTALLOWED_TRANSIT_IS_ENABLED
COMMRPC_FAILURE_NOTALLOWED_INCALL=-606COMMRPC_FAILURE_NOTALLOWED_INCALL
COMMRPC_FAILURE_NOTALLOWED_CSS_MODE=-608COMMRPC_FAILURE_NOTALLOWED_CSS_MODE

Outcomes