Hello Everyone ,
i Facing Problem in Asterisk in coming call
i got calls start With number “2” Something like that “20102911475”
i Need to Remove Number “2” i try add new custom context in extension_additional.conf
but no Luck im like nobbi can anyone help me
-- Executing [s@from-pstn:1] Set("DAHDI/6-1", "__FROM_DID=s") in new stack
-- Executing [s@from-pstn:2] Gosub("DAHDI/6-1", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/6-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("DAHDI/6-1", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("DAHDI/6-1", "") in new stack
-- Executing [s@from-pstn:3] ExecIf("DAHDI/6-1", "1 ?Set(CALLERID(name)=201022885517)") in new stack
-- Executing [s@from-pstn:4] SetMusicOnHold("DAHDI/6-1", "MoH-Source") in new stack
-- Executing [s@from-pstn:5] Set("DAHDI/6-1", "__MOHCLASS=MoH-Source") in new stack
-- Executing [s@from-pstn:6] Set("DAHDI/6-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@from-pstn:7] Set("DAHDI/6-1", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@from-pstn:8] Goto("DAHDI/6-1", "ivr-4,s,1") in new stack
-- Goto (ivr-4,s,1)
-- Executing [s@ivr-4:1] Set("DAHDI/6-1", "MSG=custom/AR-Welcome_1") in new stack
-- Executing [s@ivr-4:2] Set("DAHDI/6-1", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-4:3] Set("DAHDI/6-1", "__DIR-CONTEXT=") in new stack
-- Executing [s@ivr-4:4] Set("DAHDI/6-1", "_IVR_CONTEXT_ivr-4=") in new stack
-- Executing [s@ivr-4:5] Set("DAHDI/6-1", "_IVR_CONTEXT=ivr-4") in new stack
-- Executing [s@ivr-4:6] GotoIf("DAHDI/6-1", "0?begin") in new stack
-- Executing [s@ivr-4:7] Answer("DAHDI/6-1", "") in new stack
-- Executing [s@ivr-4:8] Wait("DAHDI/6-1", "1") in new stack
-- Executing [s@ivr-4:9] Set("DAHDI/6-1", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-4:10] Set("DAHDI/6-1", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10.000
-- Executing [s@ivr-4:11] Set("DAHDI/6-1", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-4:12] ExecIf("DAHDI/6-1", "1?Background(custom/AR-Welcome_1)") in new stack
-- <DAHDI/6-1> Playing 'custom/AR-Welcome_1.slin' (language 'en')
-- Executing [1@ivr-4:1] NoOp("DAHDI/6-1", "Deleting: ") in new stack
-- Executing [1@ivr-4:2] Set("DAHDI/6-1", "__NODEST=") in new stack
-- Executing [1@ivr-4:3] Goto("DAHDI/6-1", "ivr-5,s,1") in new stack
-- Goto (ivr-5,s,1)
-- Executing [s@ivr-5:1] Set("DAHDI/6-1", "MSG=custom/AR_Dir") in new stack
-- Executing [s@ivr-5:2] Set("DAHDI/6-1", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-5:3] Set("DAHDI/6-1", "__DIR-CONTEXT=") in new stack
-- Executing [s@ivr-5:4] Set("DAHDI/6-1", "_IVR_CONTEXT_ivr-5=ivr-4") in new stack
-- Executing [s@ivr-5:5] Set("DAHDI/6-1", "_IVR_CONTEXT=ivr-5") in new stack
-- Executing [s@ivr-5:6] GotoIf("DAHDI/6-1", "1?begin") in new stack
-- Goto (ivr-5,s,9)
-- Executing [s@ivr-5:9] Set("DAHDI/6-1", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-5:10] Set("DAHDI/6-1", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10.000
-- Executing [s@ivr-5:11] Set("DAHDI/6-1", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-5:12] ExecIf("DAHDI/6-1", "1?Background(custom/AR_Dir)") in new stack
-- <DAHDI/6-1> Playing 'custom/AR_Dir.slin' (language 'en')
-- Executing [1@ivr-5:1] NoOp("DAHDI/6-1", "Deleting: ") in new stack
-- Executing [1@ivr-5:2] Set("DAHDI/6-1", "__NODEST=") in new stack
-- Executing [1@ivr-5:3] Goto("DAHDI/6-1", "timeconditions,1,1") in new stack
-- Goto (timeconditions,1,1)
-- Executing [1@timeconditions:1] GotoIfTime("DAHDI/6-1", "09:00-18:00,sun-thu,1-31,jan-dec?ext-queues,600,1") in new stack
-- Executing [1@timeconditions:2] Goto("DAHDI/6-1", "from-did-direct,1002,1") in new stack
-- Goto (from-did-direct,1002,1)
-- Executing [1002@from-did-direct:1] GotoIf("DAHDI/6-1", "1?ext-local,1002,1") in new stack
-- Goto (ext-local,1002,1)
-- Executing [1002@ext-local:1] Macro("DAHDI/6-1", "exten-vm,1002,1002") in new stack
-- Executing [s@macro-exten-vm:1] Macro("DAHDI/6-1", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/6-1", "AMPUSER=201022885517") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/6-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/6-1", "1?Set(REALCALLERIDNUM=201022885517)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/6-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/6-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/6-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/6-1", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("DAHDI/6-1", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/6-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("DAHDI/6-1", "CALLERID(number)=201022885517") in new stack
-- Executing [s@macro-user-callerid:20] Set("DAHDI/6-1", "CALLERID(name)=201022885517") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("DAHDI/6-1", "Using CallerID "201022885517" <201022885517>") in new stack
-- Executing [s@macro-exten-vm:2] Set("DAHDI/6-1", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("DAHDI/6-1", "VMBOX=1002") in new stack
-- Executing [s@macro-exten-vm:4] Set("DAHDI/6-1", "__EXTTOCALL=1002") in new stack
-- Executing [s@macro-exten-vm:5] Set("DAHDI/6-1", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("DAHDI/6-1", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("DAHDI/6-1", "RT=15") in new stack
-- Executing [s@macro-exten-vm:8] Macro("DAHDI/6-1", "record-enable,1002,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/6-1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("DAHDI/6-1", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("DAHDI/6-1", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("DAHDI/6-1", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("DAHDI/6-1", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:21] NoOp("DAHDI/6-1", "Recording enable for 1002") in new stack
-- Executing [s@macro-record-enable:22] Set("DAHDI/6-1", "CALLFILENAME=20240803-224140-1722717693.17587") in new stack
-- Executing [s@macro-record-enable:23] MixMonitor("DAHDI/6-1", "20240803-224140-1722717693.17587.wav,,") in new stack
-- Executing [s@macro-record-enable:24] Set("DAHDI/6-1", "CDR(userfield)=audio:20240803-224140-1722717693.17587.wav") in new stack
-- Executing [s@macro-record-enable:25] MacroExit("DAHDI/6-1", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("DAHDI/6-1", "dial-one,15,tr,1002") in new stack
-- Executing [s@macro-dial-one:1] Set("DAHDI/6-1", "DEXTEN=1002") in new stack
== Begin MixMonitor Recording DAHDI/6-1
-- Executing [s@macro-dial-one:2] Set("DAHDI/6-1", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("DAHDI/6-1", "0?screen,1") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("DAHDI/6-1", "0?cf,1") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("DAHDI/6-1", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("DAHDI/6-1", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("DAHDI/6-1", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("DAHDI/6-1", "EXTHASCW=") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("DAHDI/6-1", "1?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,12)
-- Executing [s@macro-dial-one:12] GotoIf("DAHDI/6-1", "0?docfu:skip3") in new stack
-- Goto (macro-dial-one,s,16)
-- Executing [s@macro-dial-one:16] GotoIf("DAHDI/6-1", "1?next2:continue") in new stack
-- Goto (macro-dial-one,s,17)
-- Executing [s@macro-dial-one:17] GotoIf("DAHDI/6-1", "1?continue") in new stack
-- Goto (macro-dial-one,s,25)
-- Executing [s@macro-dial-one:25] GotoIf("DAHDI/6-1", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("DAHDI/6-1", "1?dstring,1:dlocal,1") in new stack
-- Executing [dstring@macro-dial-one:1] Set("DAHDI/6-1", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("DAHDI/6-1", "DEVICES=1002") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("DAHDI/6-1", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("DAHDI/6-1", "0?Set(DEVICES=002)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("DAHDI/6-1", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("DAHDI/6-1", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("DAHDI/6-1", "THISDIAL=SIP/1002") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("DAHDI/6-1", "1?zap2dahdi,1") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("DAHDI/6-1", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("DAHDI/6-1", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("DAHDI/6-1", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("DAHDI/6-1", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("DAHDI/6-1", "THISPART2=SIP/1002") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("DAHDI/6-1", "0?Set(THISPART2=DAHDI/1002)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("DAHDI/6-1", "NEWDIAL=SIP/1002&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("DAHDI/6-1", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("DAHDI/6-1", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("DAHDI/6-1", "THISDIAL=SIP/1002") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("DAHDI/6-1", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("DAHDI/6-1", "DSTRING=SIP/1002&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("DAHDI/6-1", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("DAHDI/6-1", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("DAHDI/6-1", "DSTRING=SIP/1002") in new stack
-- Executing [dstring@macro-dial-one:13] Return("DAHDI/6-1", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("DAHDI/6-1", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("DAHDI/6-1", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:29] GosubIf("DAHDI/6-1", "1?ctset,1:ctclear,1") in new stack
-- Executing [ctset@macro-dial-one:1] Set("DAHDI/6-1", "DB(CALLTRACE/1002)=201022885517") in new stack
-- Executing [ctset@macro-dial-one:2] Return("DAHDI/6-1", "") in new stack
-- Executing [s@macro-dial-one:30] Set("DAHDI/6-1", "D_OPTIONS=tr") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("DAHDI/6-1", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("DAHDI/6-1", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("DAHDI/6-1", "1?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("DAHDI/6-1", "0?qwait,1") in new stack
-- Executing [s@macro-dial-one:35] Set("DAHDI/6-1", "__CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:36] Set("DAHDI/6-1", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] Dial("DAHDI/6-1", "SIP/1002,15,tr") in new stack