[ Solved Thanks david55! ] No Caller ID to FXS ports

I AM FEELING BEATEN ON THIS ISSUE, AND AM HOPING YOU CAN HELP. I AM THUS FAR UNABLE TO PRESENT CALLER ID DIGITS TO MY SINGLE-LINE SETS. I’VE GONE SO FAR AS TO ATTEMPTING TO MODIFY /usr/src/debug/asterisk-1.8.12.0/channels/sig_analog.c TO EITHER BREAK THE CODE THAT BREAKS THE CALLER ID, OR AT LEAST THROW A DEBUG MESSAGE VERIFYING CID VALUES ALONG THE WAY TO THE CID SPILL, NEITHER OF WHICH HELPED OR WORKED. HAVE YOU BEEN HERE BEFORE ME? DO YOU KNOW MY FIX? I’D BE FOREVER (or at least for a long time) GRATEFUL FOR ANY SUPPORT… THANKS, AND BE WELL!


**  Component details:
**
**  Kernel
**     Linux(i386)-2.6.18-194.3.1.el5
**
**..
**
** FreePBX
**   freePBX-2.8.1-14
**
** Asterisk
**   asterisk-1.8.12.0-0
**   asterisk-perl-0.10-2
**   asterisk-addons-1.8.12.0-0
**..
**
** DRIVERS
**   dahdi-2.4.1.2-11.1
**   rhino-0.99.3-2.beta2
**   wanpipe-util-3.5.25-0
**
**
**
**
**
**
**
**
**
**
**  [ Snip from Call, EXT 180 [DAHDI/9-1] dials EXT 199 [DAHDI/12-1] ]
**
**  [ EVERYTHING UP TO THIS POINT SEEMS CORRECT. ]
**
**




[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable DIALSTATUS.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable MACRO_DEPTH.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable AGISTATUS.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable ds.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable FILTERED_DIAL.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable DIALSTATUS_CW.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Copying hard-transferable variable KEEPCID.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable ARG3.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable ARG2.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable ARG1.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable MACRO_PRIORITY.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable MACRO_CONTEXT.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable MACRO_EXTEN.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable DB_RESULT.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Copying soft-transferable variable FMGRP.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable RingGroupMethod.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable ITER.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable LOOPCNT.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable RecordMethod.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Copying hard-transferable variable NODEST.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable RRNODEST.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Copying hard-transferable variable BLKVM_BASE.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Copying hard-transferable variable BLKVM_OVERRIDE.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Copying hard-transferable variable EXTTOCALL.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Copying hard-transferable variable TTL.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable AMPUSERCID.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable AMPUSERCIDNAME.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable AMPUSER.
[Jul  8 16:14:40] DEBUG[8565] channel.c: Not copying variable REALCALLERIDNUM.

**
**


[Jul  8 16:14:40] DEBUG[8565] sig_analog.c: CALLING CID_NAME: Calling phone CID_NUM:: 180

**
**
** HERE, I CAN SEE SIG_ANALOG.C APPEARS TO AGREE WITH CALLER ID
**
**


[Jul  8 16:14:40] DEBUG[5956] manager.c: Examining event:
Event: Newstate
Privilege: call,all
Channel: DAHDI/12-1
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: 199
CallerIDName: device
ConnectedLineNum: 180
ConnectedLineName: Calling phone
Uniqueid: 1341789280.5


[Jul  8 16:14:40] DEBUG[5956] manager.c: Examining event:
Event: Dial
Privilege: call,all
SubEvent: Begin
Channel: DAHDI/9-1
Destination: DAHDI/12-1
CallerIDNum: 180
CallerIDName: Calling phone
ConnectedLineNum: <unknown>
ConnectedLineName: <unknown>
UniqueID: 1341789274.4
DestUniqueID: 1341789280.5
Dialstring: 12

**
**
**
**  [ THERE IS STUFF HERE, BUT I DIDN'T SEE IT'S PERTINENCE TO MY TROUBLE, SO I DELETED IT ]
**
**
**
**



[Jul  8 16:14:40] DEBUG[4713] app_queue.c: Extension '180@ext-local' changed to state '6' (Ringing) but we don't care because they're not a member of any queue.


**
**
** [ OK.. THIS IS WHERE I THINK IT COMES APART ...  ]
**
**


[Jul  8 16:14:42] DEBUG[8565] sig_analog.c: analog_exception 12
[Jul  8 16:14:42] DEBUG[8565] sig_analog.c: Exception on 26, channel 12
[Jul  8 16:14:42] DEBUG[8565] sig_analog.c: __analog_handle_event 12
[Jul  8 16:14:42] DEBUG[8565] sig_analog.c: Got event ANALOG_EVENT_RINGEROFF(8) on channel 12 (index 0)

**
**
**
**
**  [ 2 SECONDS LATER, SIG-ANALOG.C DUMPS NULLS ON CHAN_DAHDI.C, AND, AS YOU CAN SEE, IT OBLIGES.  ]
**
**
**

[Jul  8 16:14:42] DEBUG[8565] sig_analog.c: Sending callerid.  CID_NAME: '(null)' CID_NUM: '(null)'

**
**
**
**
**
**
**


[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: Starting cid spill
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 0 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 160 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 320 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 480 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 640 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 640 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 640 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 640 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 800 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 800 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 960 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 960 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1120 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1120 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1280 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1280 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1440 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1440 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1600 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1600 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1760 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1760 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1920 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 1920 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2080 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2080 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2240 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2240 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2400 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2400 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2560 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2560 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2720 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2720 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2880 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 2880 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3040 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3040 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3200 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3200 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3360 of 8867, res = -1
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3360 of 8867, res = 160
[Jul  8 16:14:42] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3520 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3520 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3680 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3680 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3840 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 3840 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4000 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4000 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4160 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4160 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4320 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4320 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4480 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4480 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4640 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4640 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4800 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4800 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4960 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 4960 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5120 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5120 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5280 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5280 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5440 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5440 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5600 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5600 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5760 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5760 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5920 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 5920 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6080 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6080 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6240 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6240 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6400 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6400 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6560 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6560 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6720 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6720 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6880 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 6880 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7040 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7040 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7200 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7200 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7360 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7360 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7520 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7520 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7680 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7680 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7840 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 7840 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8000 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8000 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8160 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8160 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8320 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8320 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8480 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8480 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8640 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8640 of 8867, res = 160
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8800 of 8867, res = -1
[Jul  8 16:14:43] DEBUG[8565] chan_dahdi.c: writing callerid at pos 8800 of 8867, res = 67
[Jul  8 16:14:46] DEBUG[8565] sig_analog.c: analog_exception 12
[Jul  8 16:14:46] DEBUG[8565] sig_analog.c: Exception on 26, channel 12
[Jul  8 16:14:46] DEBUG[8565] sig_analog.c: __analog_handle_event 12
[Jul  8 16:14:46] DEBUG[8565] sig_analog.c: Got event ANALOG_EVENT_RINGERON(7) on channel 12 (index 0)


**
**
**  [ WITH A BUTT-SET IN MONITOR ON DAHDI 12 I CAN HEAR THE BLAST OF CALLER ID DATA, AND CLID DISPLAY SAYS "- UNAVAILABLE -" ]
**
**  [ HAVING DEMONSTRATED THE ISSUE, I HANG UP EXT 180, Calling phone. ]
**
**

[Jul  8 16:14:47] DEBUG[8565] sig_analog.c: analog_exception 9
[Jul  8 16:14:47] DEBUG[8565] sig_analog.c: Exception on 23, channel 9
[Jul  8 16:14:47] DEBUG[8565] sig_analog.c: __analog_handle_event 9
[Jul  8 16:14:47] DEBUG[8565] sig_analog.c: Got event ANALOG_EVENT_ONHOOK(1) on channel 9 (index 0)
[Jul  8 16:14:47] DEBUG[8565] chan_dahdi.c: Disabled echo cancellation on channel 9
[Jul  8 16:14:47] DEBUG[8565] channel.c: Hanging up channel 'DAHDI/12-1'
[Jul  8 16:14:47] DEBUG[8565] chan_dahdi.c: dahdi_hangup(DAHDI/12-1)
[Jul  8 16:14:47] DEBUG[8565] sig_analog.c: analog_hangup 12
[Jul  8 16:14:47] DEBUG[8565] sig_analog.c: Hangup: channel: 12 index = 0, normal = 1, callwait = 0, thirdcall = 0
[Jul  8 16:14:47] DEBUG[8565] chan_dahdi.c: Set option TONE VERIFY, mode: OFF(0) on DAHDI/12-1
[Jul  8 16:14:47] DEBUG[8565] chan_dahdi.c: Set option TDD MODE, value: OFF(0) on DAHDI/12-1
[Jul  8 16:14:47] DEBUG[8565] sig_analog.c: Updated conferencing on 12, with 0 conference users
[Jul  8 16:14:47] DEBUG[5956] manager.c: Examining event:
Event: Hangup
Privilege: call,all
Channel: DAHDI/12-1
Uniqueid: 1341789280.5
CallerIDNum: 199
CallerIDName: device
ConnectedLineNum: 180
ConnectedLineName: Calling phone
Cause: 0
Cause-txt: Unknown

**
**
**  [ AND, HERE, WE CAN SEE THAT MANAGER.C STILL HAS THE CORRECT DATA AS THE CALL ENDS. ]
**
**
**
[Jul  8 16:14:47] DEBUG[4712] devicestate.c: No provider found, checking channel drivers for DAHDI - 12
[Jul  8 16:14:47] DEBUG[5956] manager.c: Examining event:

Please don’t SHOUT!

What are the caller ID settings in chan_dahdi.conf, for the FXS channels?

If you really need to patch the code to debug this, you need to be on the developer mailing list. or IRC channel, but first make sure that your configuration is right.

THANK YOU THA… thank you thank you <shhhh…>

chan_dahdi.conf has the settings for the FXO channels…


[trunkgroups]

[channels]
context=from-pstn
.. ..
usecallerid=yes
hidecallerid=no
useincomingcalleridondahditransfer = yes           ;added 7/6/12
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes

chan_dahdi_additional holds the settings for the FXS ports …


;;;;;;[180]
signalling=fxo_ks
pickupgroup=60
mailbox=180@device
.. ..
callerid=device <180>
.. ..
channel=>9

.. ..


;;;;;;[199]
signalling=fxo_ks
pickupgroup=
mailbox=199@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <199>
busydetect=no
busycount=7
accountcode=
channel=>12

and now you have me wondering… since chan_dahdi comes first, and chan_dahdi_additional is #include d from there, does the ‘inherit’ behavior pass the #include?

I think I’m gonna try some stuff…

AND and, david, you don’t need me to explain how awesome you are, but I’m going to say it aloud anyway… indeed, I’ll shout it… YOU ARE AWESOME! THANK YOU!

Note to self…

The inherit behavior DOES NOT pass through the #inlude.

Problem solved, and david55 continues to be AWESOME!

Your pointer to the chan_dahdi caused me to copy the

usecallerid=yes
hidecallerid=no
useincomingcalleridondahditransfer = yes

from chan_dahdi into the chan_dahdi_additional like so.

[code];;;;;;[180]
signalling=fxo_ks
pickupgroup=60
mailbox=180@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <180>
busydetect=no
busycount=7
accountcode=

usecallerid=yes
hidecallerid=no
useincomingcalleridondahditransfer = yes

channel=>9
[/code]

The inherit behavior carries through from channel 9 all the way through to channel 12.

Question: Best practice is to repeat this code for each port and not rely on the inherit, right?
Q2: Best NOT repeat code like

rxgain=4.5
txgain=4.5

because as you go down 3 channels you have 13.5 dB cumulative gain… right?

Again, Thank you soooooooo much.!

spoke too soon… Changes made to chan_dahdi_additional get stomped out by FreePBX during a reload… So I moved the changes to dahdi_channels.conf where will only get stomped by /usr/sbin/dahdi_genconf.

;;; line="9 FXS/1/8"
signalling=fxo_ks
callerid="Channel 9" <4009>
usecallerid=yes
hidecallerid=no
useincomingcalleridondahditransfer = yes
..   ..