[Kea-users] Vendor Encapsulated options

Sutherland, Rob RSutherland at BroadViewNet.com
Tue Nov 8 21:00:57 UTC 2016


Mitel phones expect option 43 (vendor encapsulated options) to be delivered as a string such as:
id:ipphone.mitel.com;sw_tftp=10.200.107.32;call_srv=10.200.107.32

The issue I am having is that I can find no way to define these options without a sub-option. This leaves two bytes in front of the option that confuse the phone. For example, the above string, which is 65 bytes long, has two bytes pre-pended: 1 (for the sub-option) and 0x41 (65 byte payload). Here is my attempt to configure this:

   "option-def": [
       {
            "name": "mitel-options",
            "code": 1,
            "space": "vendor-encapsulated-options-space",
            "type": "string",
            "array": false,
            "encapsulate": ""
        }
 ],
    "option-data": [
        {
            "name": "vendor-encapsulated-options",
             "csv-format": false
        },
        {
            "name": "mitel-options",
            "space": "vendor-encapsulated-options-space",
            "csv-format": true,
            "data": "id:ipphone.mitel.com;sw_tftp=10.200.107.32;call_srv=10.200.107.32"
        }
   ],

How can I eliminate the sub-code?

Thanks!

Rob

Rob Sutherland
Senior Software Developer
rsutherland at broadviewnet.com<mailto:rsutherland at broadviewnet.com>
p: 613-280-2008 (Canada)
p: 973-848-8811 (US)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20161108/f9251e6e/attachment.htm>


More information about the Kea-users mailing list