No Caller ID information on Inbound PSTN Call

Hi,

I was using a 10 year+ old FreePBX version working perfectly with the Greek provider COSMOTE and an analog Digium TDM2400P card until I experienced motherboard failure. The MB was changed and the latest version of FreePBX is now installed. Everything seems to work perfectly fine with the exception of inbound Caller ID that is not received anymore.

I followed the Digium guide for “Troubleshooting missing caller ID on Analog calls" and from the audio recording it is clear that I am receiving a short Dial-Up Modem sound between first and second ring (as expected since I was receiving CID with my old setup). I have added in following lines via the FreePBX GUI related to CID and FSK modulation:

  • Cidsignalling = v23 (also tried bell)
  • Cidstart = ring (also tried polarity and polarity_IN)
  • Callerid = asreceived

The complete chan_dahdi.conf is as follows:
[general]

; generated by module
#include chan_dahdi_general.conf

; for user additions not provided by module
#include chan_dahdi_general_custom.conf

[channels]
language=gr
busydetect=yes
busycount=10
usecallerid=yes
callwaiting=yes
usecallingpres=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=no
immediate=no
faxdetect=no
rxgain=0.0
txgain=0.0
alawoverride=0
alawoverride_checkbox=0
boostringer=0
boostringer_checkbox=0
callerid=asreceived
cidsignalling=v23
cidstart=ring
echocan_nlp_max_supp=
echocan_nlp_threshold=
echocan_nlp_type=0
fastringer=0
fastringer_checkbox=0
fxs_honor_mode=0
fxs_honor_mode_checkbox=0
lowpower=0
lowpower_checkbox=0
module_name=wctdm24xxp
mwi=none
mwi_checkbox=0
neon_offlimit=
neon_voltage=
opermode=TBR21
opermode_checkbox=1
ringdetect=1
ringdetect_checkbox=1

; for user additions not provided by module
#include chan_dahdi_channels_custom.conf

; include dahdi groups defined by DAHDI module of FreePBX
#include chan_dahdi_groups.conf

; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf

And the log I am getting from the incoming call is:

– Starting simple switch on ‘DAHDI/1-1’
– Executing [[email protected]:1] NoOp(“DAHDI/1-1”, "Entering from-dahdi with DID == ") in new stack
– Executing [[email protected]:2] Ringing(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/1-1”, “DID=s”) in new stack
– Executing [[email protected]:4] NoOp(“DAHDI/1-1”, “DID is now s”) in new stack
– Executing [[email protected]:5] GotoIf(“DAHDI/1-1”, “1?dahdiok:checkzap”) in new stack
– Goto (from-analog,s,9)
– Executing [[email protected]:9] NoOp(“DAHDI/1-1”, “Is a DAHDi Channel”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/1-1”, “CHAN=1-1”) in new stack
– Executing [[email protected]:11] Set(“DAHDI/1-1”, “CHAN=1”) in new stack
– Executing [[email protected]:12] Macro(“DAHDI/1-1”, “from-dahdi-1,s,1”) in new stack
[2021-08-20 14:13:39] WARNING[5181][C-00000001]: app_macro.c:274 _macro_exec: Macro() is deprecated and will be removed from a future version of Asterisk.
[2021-08-20 14:13:39] WARNING[5181][C-00000001]: app_macro.c:275 _macro_exec: Dialplan should be updated to use Gosub instead.
– Executing [[email protected]:1] NoOp(“DAHDI/1-1”, “Entering macro-from-dahdi-1 with DID = s and setting to: +302612345678”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “__FROM_DID=+302612345678”) in new stack
– Executing [[email protected]:3] Goto(“DAHDI/1-1”, “from-trunk,+302612345678,1”) in new stack
– Goto (from-trunk,+302612345678,1)
== Channel ‘DAHDI/1-1’ jumping out of macro ‘from-dahdi-1’
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “__DIRECTION=INBOUND”) in new stack
– Executing [[email protected]:2] Gosub(“DAHDI/1-1”, “sub-record-check,s,1(in,+302612345678,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/1-1”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/1-1”, “NOW=1629458019”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “__DAY=20”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “__MONTH=08”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/1-1”, “__YEAR=2021”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/1-1”, “__TIMESTR=20210820-141339”) in new stack
– Executing [[email protected]:8] Set(“DAHDI/1-1”, “__FROMEXTEN=unknown”) in new stack
– Executing [[email protected]:9] Set(“DAHDI/1-1”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“DAHDI/1-1”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“DAHDI/1-1”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“DAHDI/1-1”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“DAHDI/1-1”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“DAHDI/1-1”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“DAHDI/1-1”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [[email protected]:1] NoOp(“DAHDI/1-1”, “Inbound Recording Check to +302612345678”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “FROMEXTEN=unknown”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “0?Set(FROMEXTEN=)”) in new stack
– Executing [[email protected]:4] Gosub(“DAHDI/1-1”, “recordcheck,1(dontcare,in,+302612345678)”) in new stack
– Executing [[email protected]:1] NoOp(“DAHDI/1-1”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“DAHDI/1-1”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:5] Return(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/1-1”, “CHANNEL(tonezone)=gr”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “__FROM_DID=+302612345678”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “returnhere=1”) in new stack
– Executing [[email protected]:6] Gosub(“DAHDI/1-1”, “app-blacklist-check,s,1()”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/1-1”, “0?blacklisted”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:3] Return(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/1-1”, “CDR(did)=+302612345678”) in new stack
– Executing [[email protected]:8] GotoIf(“DAHDI/1-1”, “0?”) in new stack
– Executing [[email protected]:9] ExecIf(“DAHDI/1-1”, “1 ?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/1-1”, “__MOHCLASS=”) in new stack
– Executing [[email protected]:11] Set(“DAHDI/1-1”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [[email protected]:12] GotoIf(“DAHDI/1-1”, “1?post-reverse-charge”) in new stack
– Goto (from-trunk,+302612345678,14)
– Executing [[email protected]:14] NoOp(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:15] Set(“DAHDI/1-1”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:16] Set(“DAHDI/1-1”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:17] Set(“DAHDI/1-1”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:18] Set(“DAHDI/1-1”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:19] NoOp(“DAHDI/1-1”, “CallerID Entry Point”) in new stack
– Executing [[email protected]:20] Set(“DAHDI/1-1”, “__CRM_DIRECTION=INBOUND”) in new stack
– Executing [[email protected]:21] Set(“DAHDI/1-1”, “__CRM_SOURCE=”) in new stack
– Executing [[email protected]:22] Set(“DAHDI/1-1”, “__CRM_LINKEDID=1629458018.0”) in new stack
– Executing [[email protected]:23] AGI(“DAHDI/1-1”, “agi://127.0.0.1/sangomacrm.agi,true”) in new stack
– <DAHDI/1-1>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
– Executing [[email protected]:24] ExecIf(“DAHDI/1-1”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:25] Goto(“DAHDI/1-1”, “from-did-direct,27,1”) in new stack
– Goto (from-did-direct,27,1)
– Executing [[email protected]:1] GotoIf(“DAHDI/1-1”, “1?ext-local,27,1:followme-check,27,1”) in new stack
– Goto (ext-local,27,1)
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “__RINGTIMER=15”) in new stack
– Executing [[email protected]:2] ExecIf(“DAHDI/1-1”, “0?Set(__CWIGNORE=)”) in new stack
– Executing [[email protected]:3] Macro(“DAHDI/1-1”, “exten-vm,novm,27,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“DAHDI/1-1”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “TOUCH_MONITOR=1629458018.0”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “CHANCONTEXT=”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/1-1”, “CHANCONTEXT=”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “CHANEXTENCONTEXT=1-1”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “CHANEXTEN=1-1”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/1-1”, “CALLERID(number)=”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
– Executing [[email protected]:8] Set(“DAHDI/1-1”, “HOTDESCKCHAN=1-1”) in new stack
– Executing [[email protected]:9] Set(“DAHDI/1-1”, “HOTDESKEXTEN=1”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/1-1”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:11] ExecIf(“DAHDI/1-1”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:12] ExecIf(“DAHDI/1-1”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:13] GotoIf(“DAHDI/1-1”, “0?report”) in new stack
– Executing [[email protected]:14] ExecIf(“DAHDI/1-1”, “1?Set(REALCALLERIDNUM=)”) in new stack
– Executing [[email protected]:15] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
– Executing [[email protected]:16] GotoIf(“DAHDI/1-1”, “0?limit”) in new stack
– Executing [[email protected]:17] Set(“DAHDI/1-1”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:18] ExecIf(“DAHDI/1-1”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:19] GotoIf(“DAHDI/1-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [[email protected]:28] NoOp(“DAHDI/1-1”, “Macro Depth is 2”) in new stack
– Executing [[email protected]:29] GotoIf(“DAHDI/1-1”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,30)
– Executing [[email protected]:30] GotoIf(“DAHDI/1-1”, “0?continue”) in new stack
– Executing [[email protected]:31] ExecIf(“DAHDI/1-1”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [[email protected]:32] Set(“DAHDI/1-1”, “__TTL=64”) in new stack
– Executing [[email protected]:33] GotoIf(“DAHDI/1-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,49)
– Executing [[email protected]:49] Set(“DAHDI/1-1”, “CALLERID(number)=”) in new stack
– Executing [[email protected]:50] Set(“DAHDI/1-1”, “CALLERID(name)=”) in new stack
– Executing [[email protected]:51] GotoIf(“DAHDI/1-1”, “1?cnum”) in new stack
– Goto (macro-user-callerid,s,53)
– Executing [[email protected]:53] Set(“DAHDI/1-1”, “CDR(cnum)=”) in new stack
– Executing [[email protected]:54] Set(“DAHDI/1-1”, “CHANNEL(language)=gr”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/1-1”, “__EXTTOCALL=27”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “__PICKUPMARK=27”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “RT=”) in new stack
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:6] ExecIf(“DAHDI/1-1”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:7] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:8] ExecIf(“DAHDI/1-1”, “0?Gosub(ext-intercom,*8027,1())”) in new stack
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:9] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:10] ExecIf(“DAHDI/1-1”, “0?ChanSpy(PJSIP/27,q)”) in new stack
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:11] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
– Executing [[email protected]:12] ExecIf(“DAHDI/1-1”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
– Executing [[email protected]:13] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
– Executing [[email protected]:14] ExecIf(“DAHDI/1-1”, “0?Gosub(ext-intercom,*8027,1())”) in new stack
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
– Executing [[email protected]:15] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
– Executing [[email protected]:16] ExecIf(“DAHDI/1-1”, “0?ChanSpy(PJSIP/27,q)”) in new stack
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
– Executing [[email protected]:17] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:18] ExecIf(“DAHDI/1-1”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:19] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2021-08-20 14:13:40] WARNING[5181][C-00000001]: chan_sip.c:23254 func_header_read: This function can only be used on SIP channels.
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
– Executing [[email protected]:20] ExecIf(“DAHDI/1-1”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
– Executing [[email protected]:21] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2021-08-20 14:13:40] ERROR[5181][C-00000001]: res_pjsip_header_funcs.c:454 func_read_header: This function requires a PJSIP channel.
– Executing [[email protected]:22] Gosub(“DAHDI/1-1”, “sub-record-check,s,1(exten,27,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/1-1”, “7?initialized”) in new stack
– Goto (sub-record-check,s,10)
– Executing [[email protected]:10] NoOp(“DAHDI/1-1”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“DAHDI/1-1”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“DAHDI/1-1”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“DAHDI/1-1”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“DAHDI/1-1”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“DAHDI/1-1”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] NoOp(“DAHDI/1-1”, “Exten Recording Check between unknown and 27”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “CALLTYPE=external”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “0?Set(CALLTYPE=)”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “CALLEE=dontcare”) in new stack
– Executing [[email protected]:5] ExecIf(“DAHDI/1-1”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [[email protected]:6] GotoIf(“DAHDI/1-1”, “1?callee”) in new stack
– Goto (sub-record-check,exten,11)
– Executing [[email protected]:11] Gosub(“DAHDI/1-1”, “recordcheck,1(dontcare,external,27)”) in new stack
– Executing [[email protected]:1] NoOp(“DAHDI/1-1”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“DAHDI/1-1”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:12] Return(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:23] GotoIf(“DAHDI/1-1”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,29)
– Executing [[email protected]:29] GosubIf(“DAHDI/1-1”, “0?clrheader,1()”) in new stack
– Executing [[email protected]:30] Macro(“DAHDI/1-1”, “dial-one,HhTtr,27”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “DEXTEN=27”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “__CRM_SOURCE=”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “0?Set(__EXTTOCALL=27)”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:5] GosubIf(“DAHDI/1-1”, “0?screen,1()”) in new stack
– Executing [[email protected]:6] GosubIf(“DAHDI/1-1”, “0?cf,1()”) in new stack
– Executing [[email protected]:7] GotoIf(“DAHDI/1-1”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,10)
– Executing [[email protected]:10] GotoIf(“DAHDI/1-1”, “0?nodial”) in new stack
– Executing [[email protected]:11] GotoIf(“DAHDI/1-1”, “0?continue”) in new stack
– Executing [[email protected]:12] Set(“DAHDI/1-1”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:13] GotoIf(“DAHDI/1-1”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [[email protected]:25] GotoIf(“DAHDI/1-1”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,27)
– Executing [[email protected]:27] GotoIf(“DAHDI/1-1”, “0?nodial”) in new stack
– Executing [[email protected]:28] GosubIf(“DAHDI/1-1”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “DEVICES=27”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“DAHDI/1-1”, “0?Set(DEVICES=7)”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/1-1”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/1-1”, “THISDIAL=PJSIP/27”) in new stack
– Executing [[email protected]:8] GotoIf(“DAHDI/1-1”, “0?docheck”) in new stack
– Executing [[email protected]:9] NoOp(“DAHDI/1-1”, “Debug: Found PJSIP Destination PJSIP/27”) in new stack
– Executing [[email protected]:10] GotoIf(“DAHDI/1-1”, “0?doset”) in new stack
– Executing [[email protected]:11] NoOp(“DAHDI/1-1”, “Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS”) in new stack
– Executing [[email protected]:12] Set(“DAHDI/1-1”, “THISDIAL=PJSIP/27/sip:[email protected]:49740;x-ast-orig-host=192.168.11.5:5060”) in new stack
– Executing [[email protected]:13] ExecIf(“DAHDI/1-1”, “0?Set(DIALSTATUS=CHANUNAVAIL)”) in new stack
– Executing [[email protected]:14] GotoIf(“DAHDI/1-1”, “0?skipset”) in new stack
– Executing [[email protected]:15] Set(“DAHDI/1-1”, “DSTRING=PJSIP/27/sip:[email protected]:49740;x-ast-orig-host=192.168.11.5:5060&”) in new stack
– Executing [[email protected]:16] Set(“DAHDI/1-1”, “ITER=2”) in new stack
– Executing [[email protected]:17] GotoIf(“DAHDI/1-1”, “0?begin”) in new stack
– Executing [[email protected]:18] ExecIf(“DAHDI/1-1”, “0?Return()”) in new stack
– Executing [[email protected]:19] Set(“DAHDI/1-1”, “DSTRING=PJSIP/27/sip:[email protected]:49740;x-ast-orig-host=192.168.11.5:5060”) in new stack
– Executing [[email protected]:20] Return(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:29] GotoIf(“DAHDI/1-1”, “0?nodial”) in new stack
– Executing [[email protected]:30] GotoIf(“DAHDI/1-1”, “0?skiptrace”) in new stack
– Executing [[email protected]:31] GosubIf(“DAHDI/1-1”, “0?ctset,1():ctclear,1()”) in new stack
– Executing [[email protected]:1] NoOp(“DAHDI/1-1”, "Deleting: CALLTRACE/27 ") in new stack
– Executing [[email protected]:2] Return(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:32] Set(“DAHDI/1-1”, “D_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:33] GosubIf(“DAHDI/1-1”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:34] NoOp(“DAHDI/1-1”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
– Executing [[email protected]:35] ExecIf(“DAHDI/1-1”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:36] ExecIf(“DAHDI/1-1”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:37] ExecIf(“DAHDI/1-1”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:38] ExecIf(“DAHDI/1-1”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:39] ExecIf(“DAHDI/1-1”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:40] GosubIf(“DAHDI/1-1”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:41] ExecIf(“DAHDI/1-1”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:42] GosubIf(“DAHDI/1-1”, “0?qwait,1()”) in new stack
– Executing [[email protected]:43] Set(“DAHDI/1-1”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:44] Set(“DAHDI/1-1”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]:45] GotoIf(“DAHDI/1-1”, “0?usegoto,1”) in new stack
– Executing [[email protected]:46] GotoIf(“DAHDI/1-1”, “1?godial”) in new stack
– Goto (macro-dial-one,s,51)
– Executing [[email protected]:51] Macro(“DAHDI/1-1”, “dialout-one-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:52] ExecIf(“DAHDI/1-1”, “1?Set(D_OPTIONS=HhtrI)”) in new stack
– Executing [[email protected]:53] ExecIf(“DAHDI/1-1”, “0?Set(CWRING=r(callwaiting)):Set(CWRING=)”) in new stack
– Executing [[email protected]:54] NoOp(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:55] ExecIf(“DAHDI/1-1”, “0?Set(D_OPTIONS=HhtrIg)”) in new stack
– Executing [[email protected]:56] Dial(“DAHDI/1-1”, “PJSIP/27/sip:[email protected]:49740;x-ast-orig-host=192.168.11.5:5060,HhtrIb(func-apply-sipheaders^s^1)”) in new stack
– PJSIP/27-00000000 Internal Gosub(func-apply-sipheaders,s,1) start
.
.
.
.
.
.
– Hanging up on ‘DAHDI/1-1’
– Hungup ‘DAHDI/1-1’

Can anyone spot a mistake in my configuration or provide ideas on how to further troubleshoot this problem?

Observations:

  • The above log is generated immediately on the first ring and I have the feeling that the CID information has not been delivered yet to the DigiumTDM card at this time.

  • Setting the “Callerid” property to a specific number (e.g. callerid=123456) instead of “asreceived” has no effect. I was expecting that this will force the CID in the logs to be 123456 but instead there is no CID information again that makes me wonder if the chan_dahdi.conf is parsed properly.

It is this. You need to change the settings to not actually accept the call until the second ring. Not sure how to do that on this channel.

Hi Sorvani,
Thank you for your response.
I was suspecting that this may be the issue but I have not found a way to force the TDM card to wait for CID data before deliver the call. Hopefully someone can provide some information on how to introduce this delay in FreePBX.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.