RPCONLY (JANUS DEFINE parameter): Difference between revisions
Jump to navigation
Jump to search
m (moved RPCONLY to RPCONLY (JANUS DEFINE parameter)) |
mNo edit summary |
||
Line 4: | Line 4: | ||
RPCONLY is a parameter on [[JANUS DEFINE]], which defines and sets characteristics of a Janus port. See the [[JANUS DEFINE#parmlist|List of JANUS DEFINE parameters]]. | RPCONLY is a parameter on [[JANUS DEFINE]], which defines and sets characteristics of a Janus port. See the [[JANUS DEFINE#parmlist|List of JANUS DEFINE parameters]]. | ||
This parameter indicates that only RPC requests are allowed on the port. All non-RPC (language) requests are rejected. If the port is also defined as EXEC2RPC, an attempt is made to convert the language request to an RPC. If this is successful, the request is treated as a valid RPC request. If a port is defined as RPCONLY, the only valid return code from $SRV_WAIT (on that port) is 1 meaning an RPC was received. | This parameter indicates that only RPC requests are allowed on the port. All non-RPC (language) requests are rejected. If the port is also defined as <var>[[EXEC2RPC (JANUS DEFINE parameter)|EXEC2RPC]]</var>, an attempt is made to convert the language request to an RPC. If this is successful, the request is treated as a valid RPC request. If a port is defined as RPCONLY, the only valid return code from $SRV_WAIT (on that port) is 1 meaning an RPC was received. | ||
Valid only for OPENSERV ports. | Valid only for OPENSERV ports. |
Revision as of 21:11, 24 February 2012
<section begin="desc" />Permit only RPC requests (on OPENSERV ports)<section end="desc" />
RPCONLY is a parameter on JANUS DEFINE, which defines and sets characteristics of a Janus port. See the List of JANUS DEFINE parameters.
This parameter indicates that only RPC requests are allowed on the port. All non-RPC (language) requests are rejected. If the port is also defined as EXEC2RPC, an attempt is made to convert the language request to an RPC. If this is successful, the request is treated as a valid RPC request. If a port is defined as RPCONLY, the only valid return code from $SRV_WAIT (on that port) is 1 meaning an RPC was received.
Valid only for OPENSERV ports.
References
See: List of Janus commands | List of JANUS DEFINE parameters.