I'm using Openelec 5.0.8, TVHeadend and OSCAM with a CLINE and I'd just like to share my settings that work perfectly using newcamd (for some reason I was getting a connection rejected error (unknown user) when using camd, not sure why) so here they are:
oscam.conf
[global]
logfile = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/oscam.log
disableuserfile = 0
clienttimeout = 9000
nice = -1
usrfile = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/oscamuser.log
cwlogdir = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/cw
emmlogdir = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/emm
lb_save = 100
suppresscmd08 = 1
[cache]
delay = 25
[cs378x]
port = 9000
serverip = 127.0.0.1
[newcamd]
port = 15050@****:000000
serverip = 127.0.0.1
keepalive = 1
[dvbapi]
enabled = 1
au = 1
request_mode = 1
user = tvheadend
boxtype = pc
[webif]
httpport = 8888
httprefresh = 2
httppollrefresh = 2
httpallowed = 127.0.0.1,192.168.0.0-192.168.254.254
oscam.user
[account]
user = tvheadend
pwd = tvheadend
au = share1
group = 1
oscam.server
[reader]
label = share1
protocol = cccam
device = <your_server>,<your_port>
user = your username
password = your password
inactivitytimeout = 30
cacheex = 1
group = 1
emmcache = 1,1,0,0
cccversion = 2.2.1
cccmaxhops = 2
ccckeepalive = 1
cccreshare = 1
In TVHeadend CA tab add a Newcamd account with the relevant username and password and port number for the user above and with the hostname as localhost. Make sure the newcamd key is all zeros or it doesn't connect correctly. You can copy and paste the key from the newcamd config in the OSCAM web ui.
Hopefully this helps someone as I had a nightmare trying to work this out.