----------------------------------------
the following of configuration steps:
----------------------------------------
step1: creat 2 dahdi trunk
trunk name: dahdi 13 dhadi identifier: 13
trunk name: dahdi 14 dhadi identifier: 14
all on trunk CID is empty blank
step2: creat zap channels DID
channel: 13
description: channel 13
DID: 848013 (not line number, it just is an any number)
channel: 14
description: channel 14
DID: 848014 (not line number, it just is an any number)
step3: creat inbound route
setup DID : 848013 / CID {leave empty} and at the end destination 100 (softphone to register extension-SIP)
setup DID : 848014 / CID {leave empty} and at the end destination 101 (softphone to register extension-SIP)
step4: edit dahdi-channel.conf
change context=from-pstn to be context=from-zaptel
OK. reboot..yeah
I make a call from inside Ext 100 to outside -> OK.
But a call from outside to inside (Ext 100) -> notice busy, no answer and no CID.
--------------------------------------------
Code: a call from outside into inside Ext 100
--------------------------------------------
-- Starting simple switch on 'DAHDI/13-1'
-- Executing [s@from-zaptel:1] NoOp("DAHDI/13-1", "Entering from-dahdi with DID == ") in new stack
-- Executing [s@from-zaptel:2] Ringing("DAHDI/13-1", "") in new stack
-- Executing [s@from-zaptel:3] Set("DAHDI/13-1", "DID=s") in new stack
-- Executing [s@from-zaptel:4] NoOp("DAHDI/13-1", "DID is now s") in new stack
-- Executing [s@from-zaptel:5] GotoIf("DAHDI/13-1", "1?dahdiok:checkzap") in new stack
-- Goto (from-zaptel,s,9)
-- Executing [s@from-zaptel:9] NoOp("DAHDI/13-1", "Is a DAHDI Channel") in new stack
-- Executing [s@from-zaptel:10] Set("DAHDI/13-1", "CHAN=13-1") in new stack
-- Executing [s@from-zaptel:11] Set("DAHDI/13-1", "CHAN=13") in new stack
-- Executing [s@from-zaptel:12] Macro("DAHDI/13-1", "from-dahdi-13,s,1") in new stack
-- Executing [s@macro-from-dahdi-13:1] NoOp("DAHDI/13-1", "Entering macro-from-dahdi-13 with DID = s and setting to: 848013") in new stack
-- Executing [s@macro-from-dahdi-13:2] Set("DAHDI/13-1", "__FROM_DID=848013") in new stack
-- Executing [s@macro-from-dahdi-13:3] Goto("DAHDI/13-1", "from-trunk,848013,1") in new stack
-----------------------------------------------------
-- Goto (from-trunk,848013,1)
== Channel 'DAHDI/13-1' jumping out of macro 'from-dahdi-13'
-- Executing [848013@from-trunk:1] Set("DAHDI/13-1", "__FROM_DID=848013") in new stack
-- Executing [848013@from-trunk:2] Gosub("DAHDI/13-1", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/13-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("DAHDI/13-1", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("DAHDI/13-1", "") in new stack
-- Executing [848013@from-trunk:3] ExecIf("DAHDI/13-1", "1 ?Set(CALLERID(name)=)") in new stack
<--- no CID from Telco
-- Executing [848013@from-trunk:4] Set("DAHDI/13-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [848013@from-trunk:5] Set("DAHDI/13-1", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [848013@from-trunk:6] Goto("DAHDI/13-1", "from-did-direct,100,1") in new stack
-------------------------------------------------------
-- Goto (from-did-direct,100,1)
-- Executing [100@from-did-direct:1] Macro("DAHDI/13-1", "exten-vm,novm,100") in new stack
-- Executing [s@macro-exten-vm:1] Macro("DAHDI/13-1", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/13-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/13-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/13-1", "1?Set(REALCALLERIDNUM=)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/13-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/13-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/13-1", "1?report") in new stack
........
........
-- Goto (macro-dial-one,s,41)
-- Executing [s@macro-dial-one:41] ExecIf("DAHDI/13-1", "1?Set(DIALSTATUS=NOANSWER)") in new stack
<--- 3CX Ext 100 does not receive call
-- Executing [s@macro-dial-one:42] NoOp("DAHDI/13-1", "Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER") in new stack
-- Executing [s@macro-dial-one:43] MacroExit("DAHDI/13-1", "") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("DAHDI/13-1", "0?exit") in new stack
-- Executing [s@macro-exten-vm:11] Set("DAHDI/13-1", "SV_DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("DAHDI/13-1", "0?docfu,1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("DAHDI/13-1", "0?docfb,1") in new stack
-- Executing [s@macro-exten-vm:14] Set("DAHDI/13-1", "DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("DAHDI/13-1", "Voicemail is 'novm'") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("DAHDI/13-1", "1?s-NOANSWER,1") in new stack

???