1.7.1 Add Destination to Session

Enter the command to add an output destination to a session. The session is defined by the SessionId parameter and the destination by the Type and ID parameters. DestId defines the destination only within the session. If the SessionId and DestId parameters match, the destination with the defined DestId is replaced with a new destination defined by the Type and ID parameters. If you specify a non-existent SessionId, the server will return an error message.

Request

<msg Id="CTI_NSPK_SET_SESSION_DEST_REQ">
<CTI_IE_REFERENCE Ref="0x422"/>
<CTI_NSPK_IE_SESSION_DEST SessionId="0x2" DestId="0x0" Type="SPEAKER" Id="0x1" Flags="0x00"/>
</msg>

Response

<msg Id="CTI_NSPK_SET_SESSION_DEST_CONF">
<CTI_IE_REFERENCE Ref="0x422"/>
<CTI_IE_RESULT Result="OK"/>
</msg>

Error

<msg Id="CTI_NSPK_SET_SESSION_DEST_CONF">
<CTI_IE_REFERENCE Ref="0x422"/>
<CTI_IE_RESULT Result="REJECTED"/>
</msg>