]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: added proper bearer capability and user layer 1 protocol types
authorMoises Silva <moy@sangoma.com>
Wed, 1 Sep 2010 15:21:29 +0000 (11:21 -0400)
committerDavid Yat Sin <dyatsin@sangoma.com>
Wed, 1 Sep 2010 19:02:56 +0000 (15:02 -0400)
libs/freetdm/src/include/freetdm.h

index b72aeb619ac30ef7986289b11514fb8949b37601..c1e50ecb676bf5d59520e07c4e2ac9896ce522e8 100644 (file)
@@ -239,6 +239,20 @@ typedef struct {
        uint8_t plan;
 } ftdm_number_t;
 
+/*! \brief bearer capability */
+typedef enum {
+       FTDM_BEARER_CAP_SPEECH = 0x00,
+       FTDM_BEARER_CAP_64K_UNRESTRICTED = 0x02,
+       FTDM_BEARER_CAP_3_1KHZ_AUDIO = 0x03
+} ftdm_bearer_cap_t;
+
+/*! \brief user information layer 1 protocol */
+typedef enum {
+       FTDM_USER_LAYER1_PROT_V110 = 0x01,
+       FTDM_USER_LAYER1_PROT_ULAW = 0x02,
+       FTDM_USER_LAYER1_PROT_ALAW = 0x03,
+} ftdm_user_layer1_prot_t;
+
 /*! \brief Caller information */
 typedef struct ftdm_caller_data {
        char cid_date[8]; /*!< Caller ID date */
@@ -256,9 +270,9 @@ typedef struct ftdm_caller_data {
        uint32_t raw_data_len; /* !< Raw data length */
        /* these 2 are undocumented right now, only used by boost: */
        /* bearer capability */
-       uint8_t bearer_capability;
+       ftdm_bearer_cap_t bearer_capability;
        /* user information layer 1 protocol */
-       uint8_t bearer_layer1;
+       ftdm_user_layer1_prot_t bearer_layer1;
 } ftdm_caller_data_t;
 
 /*! \brief Tone type */