This is pretty simple although some of the references I looked at made it look confusing.
For the system I was working on only two options are necessary, SIP Server IP address and SIP server port (if different than the default).
- Open up DHCP, right click IPv4 and choose "Set Predefined Options"
- Note that "option name" for 120 doesn't exist (unless added previously). Click "Add"
- Put in a name of SIP Server IP Address, Data type should be binary, code equals 120, and a description as you see fit.
- Click OK
- Go to your server options (or scope options depending on what you want).
- Click "Configure options"
- Check mark option 043 Vendor Specific Info
- This option specifies the port to use
- enter the HEX value under the binary section with A8 02 appended to the front. For instance for port 5080 it would look like A8 02 13 D8
- A8 = 168 sub option
- 02 = required first byte
- 13 D8 = 5080 in HEX
- if you wanted port 5060 it would be A8 02 13 C4
- Check mark option 120 SIP Server IP Address
- Here you enter the SIP server IP address in HEX format with a 01 appended to the front.
- Then the ip, so 192.168.1.2 would be C0 A8 01 02.
- Put the 01 in front and get 01 C0 A8 01 02
- 01 = indicates that it's the first sip server
- C0 = 192
- A8 = 168
- 01 = 1
- 02 = 2
- Put the hex value in the binary section. (note, the ASCII will look like nonsense)
Note: troubleshooting DHCP is very easy with wireshark, just filter for the Bootp. This way you can see what options it's handing out. There is also a handy tool out there called DHCPtest
http://blog.thecybershadow.net/2013/01/10/dhcp-test-client/