Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
openapi_voip.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2017-2023 Broadcom
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_voip.h
28 *
29 * @purpose Auto-VoIP Configuration
30 *
31 * @component OpEN
32 *
33 * @note This code must not include any ICOS header files.
34 *
35 * @create 08/02/2017
36 *
37 * @end
38 *
39 **********************************************************************/
40 #ifndef OPENAPI_VOIP_H_INCLUDED
41 #define OPENAPI_VOIP_H_INCLUDED
42 
43 #include "openapi_common.h"
44 
46 typedef enum
47 {
52 
54 typedef enum
55 {
59 
60 #define OUI_STR_LEN 9
61 #define OUI_DESC_STRINGLEN 33
62 /*****************************************************************/
78  uint32_t vlanId);
79 
80 /*****************************************************************/
95 
96 /*****************************************************************/
112  uint32_t *vlanId);
113 
114 /*****************************************************************/
130  uint32_t *maxCalls);
131 
132 /*****************************************************************/
148  uint32_t *sessions);
149 
150 /*****************************************************************/
167  OPEN_VOIP_PRI_SCHEME_t *pType,
168  uint32_t *pTypeVal);
169 
170 /*****************************************************************/
188  uint32_t pTypeVal);
189 
190 /*****************************************************************/
208  uint32_t ifNum,
210  OPEN_CONTROL_t *mode);
211 
212 /*****************************************************************/
230  uint32_t ifNum,
232  OPEN_CONTROL_t mode);
233 
234 /*****************************************************************/
251  uint32_t ifNum,
252  OPEN_LINK_STATE_t *val);
253 
254 /*****************************************************************/
271  uint32_t ifNum,
272  OPEN_LINK_STATE_t *val);
273 
274 /*****************************************************************/
290  uint32_t *priority);
291 
292 /*****************************************************************/
308  uint32_t priority);
309 
310 /*************************************************************************/
328  open_buffdesc *voipOui, open_buffdesc *ouiDesc);
329 
330 /*************************************************************************/
347  open_buffdesc *voipOui);
348 
349 /*************************************************************************/
364  uint32_t *voipOuiCount);
365 
366 /*************************************************************************/
384  uint32_t ouiIndex, open_buffdesc *voipOui,
385  open_buffdesc *ouiDesc);
386 
387 /*************************************************************************/
410  uint32_t ouiIndex, open_buffdesc *voipOui,
411  open_buffdesc *ouiDesc,
412  uint32_t *nextOuiIndex);
413 
414 /*************************************************************************/
431  open_buffdesc *voipOui,
432  open_buffdesc *ouiDesc);
433 
434 /*************************************************************************/
451  open_buffdesc *voipOui, open_buffdesc *ouiDesc);
452 
453 /*************************************************************************/
471  open_buffdesc *voipOui,
472  open_buffdesc *nextVoipOui,
473  open_buffdesc *nextOuiDesc);
474 
475 /*************************************************************************/
494  uint32_t ouiIndex, open_buffdesc *voipOui,
495  open_buffdesc *ouiDesc);
496 
497 /*************************************************************************/
513  uint32_t ouiIndex);
514 
515 #endif /*#ifndef OPENAPI_VOIP_H_INCLUDED*/
516 
open_error_t openapiVoipGlobalVlanIdSet(openapiClientHandle_t *client_handle, uint32_t vlanId)
Sets the VLAN ID for voip traffic on switch.
open_error_t openapiVoipOuiFirstEntryGet(openapiClientHandle_t *client_handle, open_buffdesc *voipOui, open_buffdesc *ouiDesc)
Gets the first voip OUI entry.
OUI based VOIP.
Definition: openapi_voip.h:49
Protocol based VOIP.
Definition: openapi_voip.h:48
open_error_t openapiVoipOuiDescGet(openapiClientHandle_t *client_handle, open_buffdesc *voipOui, open_buffdesc *ouiDesc)
Gets the voip OUI description for a given OUI.
open_error_t openapiVoipGlobalVlanIdGet(openapiClientHandle_t *client_handle, uint32_t *vlanId)
Gets the VLAN ID for voip traffic on switch.
open_error_t openapiVoipOuiAdd(openapiClientHandle_t *client_handle, open_buffdesc *voipOui, open_buffdesc *ouiDesc)
Adds a voip OUI entry.
open_error_t openapiVoipOuiCountGet(openapiClientHandle_t *client_handle, uint32_t *voipOuiCount)
Gets the count of OUIs present in voip database.
open_error_t openapiVoipOuiNextEntryGet(openapiClientHandle_t *client_handle, open_buffdesc *voipOui, open_buffdesc *nextVoipOui, open_buffdesc *nextOuiDesc)
Gets the next voip OUI entry for a given OUI.
open_error_t openapiVoipIndexOuiAdd(openapiClientHandle_t *client_handle, uint32_t ouiIndex, open_buffdesc *voipOui, open_buffdesc *ouiDesc)
Adds a voip OUI entry in the given index.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiVoipProfileCosQueueSet(openapiClientHandle_t *client_handle, OPEN_VOIP_PRI_SCHEME_t pType, uint32_t pTypeVal)
Sets the VOIP profile cos queue.
open_error_t openapiVoipIntfOUIStatusGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LINK_STATE_t *val)
Gets VoIP OUI mode operational port status.
OPEN_VOIP_PRI_SCHEME_t
Definition: openapi_voip.h:54
open_error_t openapiVoipIndexOuiRemove(openapiClientHandle_t *client_handle, uint32_t ouiIndex)
Removes a voip OUI entry in the given index.
open_error_t openapiVoipGlobalVlanIdReset(openapiClientHandle_t *client_handle)
Resets the VLAN ID for voip traffic on switch.
open_error_t openapiVoipIntfModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_QOS_VOIP_TYPE_t type, OPEN_CONTROL_t mode)
Sets the VOIP profile mode on interface.
open_error_t openapiVoipOUIPrioritySet(openapiClientHandle_t *client_handle, uint32_t priority)
Sets the priority for voip traffic on switch.
OPEN_QOS_VOIP_TYPE_t
< Voip types
Definition: openapi_voip.h:46
open_error_t openapiVoipNumActiveProtocolSessionsGet(openapiClientHandle_t *client_handle, uint32_t *sessions)
Gets VoIP Protocol Mode Active Sessions.
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
Last VOIP type.
Definition: openapi_voip.h:50
open_error_t openapiVoipOuiEntryNextGet(openapiClientHandle_t *client_handle, uint32_t ouiIndex, open_buffdesc *voipOui, open_buffdesc *ouiDesc, uint32_t *nextOuiIndex)
Gets the voip OUI entry for the given index and also returns next OUI Index.
open_error_t openapiVoipIntfProtocolStatusGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LINK_STATE_t *val)
Gets VoIP Protocol mode operational port status.
open_error_t openapiVoipMaxCallsGet(openapiClientHandle_t *client_handle, uint32_t *maxCalls)
Get the maximum number of Auto-VoIP calls supported.
open_error_t openapiVoipIntfModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_QOS_VOIP_TYPE_t type, OPEN_CONTROL_t *mode)
Gets the VOIP profile mode on interface.
open_error_t openapiVoipOuiEntryGet(openapiClientHandle_t *client_handle, uint32_t ouiIndex, open_buffdesc *voipOui, open_buffdesc *ouiDesc)
Gets the voip OUI entry for the index.
open_error_t openapiVoipProfileCosQueueGet(openapiClientHandle_t *client_handle, OPEN_VOIP_PRI_SCHEME_t *pType, uint32_t *pTypeVal)
Gets the VOIP profile Cos Queue.
OPEN_LINK_STATE_t
OPEN uses these enumerators to indicate the link status.
open_error_t openapiVoipOuiRemove(openapiClientHandle_t *client_handle, open_buffdesc *voipOui)
Removes a voip OUI entry.
open_error_t openapiVoipOUIPriorityGet(openapiClientHandle_t *client_handle, uint32_t *priority)
Gets the priority for voip traffic on switch.