ModifyConnection

Metreos.MediaControl.ModifyConnection

Summary

Modifies the properties of an existing connection on a media engine.

Usage

ModifyConnection is used to modify the properties of a connection previously established by CreateConnection or by the Call Control API via AnswerCall and MakeCall. If an optional action parameter is not required and you do not specify a value for the parameter, then that property of the connection is left unmodified.

Remarks

ModifyConnection can not be used on a connection that has been created by ReserveConnection but has not yet been established with CreateConnection.

ModifyConnection is automatically invoked on a connection created by the Call Control API whenever the media properties of a call change, such as when the call is placed on on hold or resumed from hold. This is not true if the call is in a peer-to-peer relationship.

Action Parameters
Parameter Name.NET TypeDefaultDescription
ConnectionId *System.StringA ConnectionId returned by a previously executed CreateConnection action.
MediaTxControlIPSystem.StringThe RTCP IP address of the remote endpoint.
MediaTxIP *System.StringThe IP address that the Tx RTP stream will transmit audio to.
MediaTxPort *System.UInt32The port that the Tx RTP stream will transmit audio to.
TimeoutSystem.Int32The Timeout property specifies to the Application Runtime Environment how long to wait for a response from the provider for the current action. The ReturnValue returned in this case is Timeout. The value must be a literal value in milliseconds.
MediaTxControlPortSystem.UInt32The RTCP port of the remote endpoint.
MediaRxCodecSystem.StringThe codec to use for the RTP stream inbound to the media engine. Valid values are G711u, G711a, G723, and G729. If not specified, the media engine configuration file defines the codec to use, which by default is G711u.
MediaRxFramesizeSystem.UInt32The framesize (in milliseconds) to use for the RTP stream inbound to the media engine. If not specified, the media engine configuration file defines the framesize to use, which by default is 20ms.
MediaTxCodecSystem.StringThe codec to use for the RTP stream outbound from the media engine. Valid values are G711u, G711a, G723, and G729. If not specified, the media engine configuration file defines the codec to use, which by default is G711u.
MediaTxFramesizeSystem.UInt32The framesize (in milliseconds) to use for the RTP stream outbound from the media engine. If not specified, the media engine configuration file defines the framesize to use, which by default is 20ms.
CallIdSystem.Int64The ID of the call associated with this connection (hairpin only).
Result Data
Parameter Name.NET TypeDescription
MediaRxPortSystem.UInt32The port that the Rx RTP stream must be sent to for this connection.
MediaRxControlPortSystem.UInt32The RTCP port of the connection.
ResultCodeSystem.StringA numeric code indicating the result status of the operation. A '0' indicates success; a positive number indicates an error. Please reference the Media Control Error Codes table for descriptions on specific error codes.
MediaRxIPSystem.StringThe IP address that the Rx RTP stream must be sent to for this connection.
MediaRxControlIPSystem.StringThe RTCP IP address of the media engine which is in control of this connection.
ConnectionIdSystem.StringUnique identifier used to identify this connection in all subsequent Media Control operations. This will always be same as the supplied action parameter ConnectionId.
MmsIdSystem.UInt32Unique identifier used to identify the media engine in control of this connection. A common use for this ID is to ensure that other connections which will ultimately be conferenced with this connection are all created on the same media engine. This correlation is necessary because all connections in a single conference must all reside on the same media engine.

Branch Conditions 

Success

No description.

Failure

No description.

Timeout

No description.