Nice !
It found a lot of records but amongst thme was sdp
iex(20)> Record.extract_all(from: "deps/nksip/include/nksip.hrl")
sdp: [sdp_vsn: "0", user: "-", id: 0, vsn: 0,
address: {"IN", "IP4", "0.0.0.0"}, session: "nksip", info: :undefined,
uri: :undefined, email: :undefined, phone: :undefined, connect: :undefined,
bandwidth: [], time: [], zone: :undefined, key: :undefined, attributes: [],
medias: []],
Now I am not really sure what is the next step, I tried the naive approach:
iex(21)> sdp = :nksip_sdp.new()
{:sdp, "0", "-", 1498040058, 1498040058, {"IN", "IP4", "auto.nksip"}, "nksip",
:undefined, :undefined, :undefined, :undefined, {"IN", "IP4", "auto.nksip"},
[], [{0, 0, []}], :undefined, :undefined, [],
[{:sdp_m, "audio", 1080, 1, "RTP/AVP", ["0"], :undefined, :undefined, [],
:undefined, [{"rtpmap", ["0", "PCMU/8000"]}, {"inactive", []}]}]}
iex(22)> sdp.vsn
** (UndefinedFunctionError) function :sdp.vsn/1 is undefined (module :sdp is not available)
I was not really expecting it to be that easy but I tried xD
Ps: Loading from deps is not a huge problem in my current usecase, when I manage to make it working I might have another look. I looked at include_lib but it looks in the folder where binaries (beam) are stored, no hrl to be found there.