Dahdi, Inbound CallerID and Delays (SOLVED)

Right,
Shutters down so I can play with the phones.

Had a brain wave, or 30 seconds of Clairvoyance.
Turned out to be very simple in the end.

Looking at the files that are included after the “chan_dahdi_channels_custom.conf”.

Like “chan_dahdi_groups.conf” and “chan_dahdi_additional.conf”

That Groups file is also doing some channel setting, curse you.
So custom stuff has to go at the far end of the chain.

I think the problem is that the last file that is included in the chan_dahdi.conf file
is an auto generated file by freepbx, with advice not to edit it.
And the include ordering is also generated by freepbx, with advice not to edit it.

The last one on the list is "chan_dahdi_additional.conf"
I have no idea what part of the module writes to this file, extensions I think I saw, but I found putting my specific line settings in this file to work peachy.
I guess if the custom file was the last to be included then it would give a more logical flow to things giving the user the final say on settings.

I can understand now why it is easy to misconfigure dahdi.

Oh by the way, doing the Right button, “Restart Dahdi/Asterisk”, does not overwrite any files so it was easy to make a couple of edits without removing the module.
Now to click Write disable.

98% of the way there, just have to top up 2% on the understanding.
I am going to read the links you gave and see what I need to adjust or an alternate method to use the custom file to avoid freepbx overwrites.
Or I could uninstall the module, 50/50 at this point.

For reference this is what was in my “chan_dahdi_additional.conf” File
Although I am not sure of the use of immediate=…

;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. ;
;--------------------------------------------------------------------------------;
usecallerid=yes
callerid=asreceived
cidstart=polarity
cidsignalling=v23
immediate=no
channel => 1-2
;
usecallerid=no
callerid=NoCli<01234567890>
immediate=yes
channel => 3-4

callerid=asreceived
;
;callerid=

To be polite and display some housekeeping I should blank the fields I used at the end. Like:
usecallerid=
callerid=
cidstart=
cidsignalling=
immediate=

Seems to be the preferred practice.

Needless to say thanks to Dave and Dicko for their assistance.
Hope to repay the favour sometime.

Hv.