Hi..
I do this:
#vi /etc/asterisk/logger.conf
debug =>debug
console => notice,warning,error,debug
#modprobe wctdm debug=1
Is it OK ?
When I test at Avaya Extension, Caller ID is appear at their Digital Phone / IP Phone. I put Avaya analog Extension to A400P04 FXO modules.
[trixbox1.localdomain asterisk]# modprobe wctdm debug=1
[trixbox1.localdomain asterisk]# asterisk -r
[Apr 29 02:27:30] DEBUG[2492]: dsp.c:1699 ast_dsp_set_busy_pattern: dsp busy pattern set to 0,0
-- Starting simple switch on 'Zap/1-1'
-- Executing [s@from-zaptel:1] NoOp("Zap/1-1", "Entering from-zaptel with DID == ") in new stack
-- Executing [s@from-zaptel:2] Ringing("Zap/1-1", "") in new stack
-- Executing [s@from-zaptel:3] Set("Zap/1-1", "DID=s") in new stack
-- Executing [s@from-zaptel:4] NoOp("Zap/1-1", "DID is now s") in new stack
-- Executing [s@from-zaptel:5] GotoIf("Zap/1-1", "1?zapok:notzap") in new stack
-- Goto (from-zaptel,s,
-- Executing [s@from-zaptel:8] NoOp("Zap/1-1", "Is a Zaptel Channel") in new stack
-- Executing [s@from-zaptel:9] Set("Zap/1-1", "CHAN=1-1") in new stack
-- Executing [s@from-zaptel:10] Set("Zap/1-1", "CHAN=1") in new stack
-- Executing [s@from-zaptel:11] Macro("Zap/1-1", "from-zaptel-1|s|1") in new stack
[Apr 29 02:27:30] WARNING[4048]: app_macro.c:212 _macro_exec: No such context 'macro-from-zaptel-1' for macro 'from-zaptel-1'
-- Executing [s@from-zaptel:12] NoOp("Zap/1-1", "Returned from Macro from-zaptel-1") in new stack
-- Executing [s@from-zaptel:13] Goto("Zap/1-1", "from-pstn|s|1") in new stack
-- Goto (from-pstn,s,1)
-- Executing [s@from-pstn:1] Set("Zap/1-1", "__FROM_DID=s") in new stack
-- Executing [s@from-pstn:2] Gosub("Zap/1-1", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("Zap/1-1", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("Zap/1-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("Zap/1-1", "") in new stack
-- Executing [s@from-pstn:3] GotoIf("Zap/1-1", "0 ?cidok") in new stack
-- Executing [s@from-pstn:4] Set("Zap/1-1", "CALLERID(name)=") in new stack
-- Executing [s@from-pstn:5] NoOp("Zap/1-1", "CallerID is "" <>") in new stack
-- Executing [s@from-pstn:6] Set("Zap/1-1", "FAX_RX=disabled") in new stack
-- Executing [s@from-pstn:7] Set("Zap/1-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@from-pstn:8] SetCallerPres("Zap/1-1", "allowed_not_screened") in new stack
-- Executing [s@from-pstn:9] Goto("Zap/1-1", "from-did-direct|53837|1") in new stack
-- Goto (from-did-direct,53837,1)
-- Executing [53837@from-did-direct:1] Macro("Zap/1-1", "exten-vm|novm|53837") in new stack
-- Executing [s@macro-exten-vm:1] Macro("Zap/1-1", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("Zap/1-1", "user-callerid: ") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Noop
-- Executing [s@macro-user-callerid:2] Set("Zap/1-1", "AMPUSER=") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-user-callerid:3] GotoIf("Zap/1-1", "0?report") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-user-callerid:4] ExecIf("Zap/1-1", "1|Set|REALCALLERIDNUM=") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: ExecIf
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:378 _macro_exec: Last app: Set|REALCALLERIDNUM=
-- Executing [s@macro-user-callerid:5] NoOp("Zap/1-1", "REALCALLERIDNUM is ") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Noop
[Apr 29 02:27:30] DEBUG[4048]: func_db.c:70 function_db_read: DB: DEVICE//user not found in database.
-- Executing [s@macro-user-callerid:6] Set("Zap/1-1", "AMPUSER=") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
[Apr 29 02:27:30] DEBUG[4048]: func_db.c:70 function_db_read: DB: AMPUSER//cidname not found in database.
-- Executing [s@macro-user-callerid:7] Set("Zap/1-1", "AMPUSERCIDNAME=") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-user-callerid:8] GotoIf("Zap/1-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,13)
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-user-callerid:13] NoOp("Zap/1-1", "TTL: ARG1: novm") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Noop
-- Executing [s@macro-user-callerid:14] GotoIf("Zap/1-1", "0?continue") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-user-callerid:15] Set("Zap/1-1", "__TTL=64") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-user-callerid:16] GotoIf("Zap/1-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-user-callerid:23] NoOp("Zap/1-1", "Using CallerID "" <>") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Noop
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Macro
-- Executing [s@macro-exten-vm:2] Set("Zap/1-1", "RingGroupMethod=none") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-exten-vm:3] Set("Zap/1-1", "VMBOX=novm") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-exten-vm:4] Set("Zap/1-1", "EXTTOCALL=53837") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
[Apr 29 02:27:30] DEBUG[4048]: func_db.c:70 function_db_read: DB: CFU/53837 not found in database.
-- Executing [s@macro-exten-vm:5] Set("Zap/1-1", "CFUEXT=") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
[Apr 29 02:27:30] DEBUG[4048]: func_db.c:70 function_db_read: DB: CFB/53837 not found in database.
-- Executing [s@macro-exten-vm:6] Set("Zap/1-1", "CFBEXT=") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-exten-vm:7] Set("Zap/1-1", "RT=""") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-exten-vm:8] Macro("Zap/1-1", "record-enable|53837|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Zap/1-1", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-record-enable:4] AGI("Zap/1-1", "recordingcheck|20100429-022730|1272522450.25") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100429-022730|1272522450.25: Inbound recording enabled.
recordingcheck|20100429-022730|1272522450.25: CALLFILENAME=20100429-022730-1272522450.25
-- AGI Script recordingcheck completed, returning 0
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: AGI
-- Executing [s@macro-record-enable:999] MixMonitor("Zap/1-1", "20100429-022730-1272522450.25.wav") in new stack
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: MixMonitor
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: Macro
-- Executing [s@macro-exten-vm:9] Macro("Zap/1-1", "dial||tr|53837") in new stack
-- Executing [s@macro-dial:1] GotoIf("Zap/1-1", "1?dial") in new stack
-- Goto (macro-dial,s,3)
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-dial:3] AGI("Zap/1-1", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
== Begin MixMonitor Recording Zap/1-1
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 53837 to extension map
-- dialparties.agi: Extension 53837 cf is disabled
-- dialparties.agi: Extension 53837 do not disturb is disabled
-- dialparties.agi: DbDel CALLTRACE/53837 - Caller ID is not defined
-- dialparties.agi: Filtered ARG3: 53837
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
[Apr 29 02:27:30] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: AGI
-- Executing [s@macro-dial:7] Dial("Zap/1-1", "SIP/53837||tr") in new stack
-- Called 53837
-- SIP/53837-096253c8 is ringing
== Spawn extension (macro-dial, s, 7) exited non-zero on 'Zap/1-1' in macro 'dial'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'Zap/1-1' in macro 'exten-vm'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'Zap/1-1'
-- Executing [h@macro-dial:1] Macro("Zap/1-1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("Zap/1-1", "w") in new stack
[Apr 29 02:27:43] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: ResetCDR
-- Executing [s@macro-hangupcall:2] NoCDR("Zap/1-1", "") in new stack
[Apr 29 02:27:43] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: NoCDR
-- Executing [s@macro-hangupcall:3] GotoIf("Zap/1-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
[Apr 29 02:27:43] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-hangupcall:6] GotoIf("Zap/1-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
[Apr 29 02:27:43] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-hangupcall:9] GotoIf("Zap/1-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
[Apr 29 02:27:43] DEBUG[4048]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-hangupcall:11] Hangup("Zap/1-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/1-1' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
== End MixMonitor Recording Zap/1-1
-- Remote UNIX connection disconnected
i] Last edited by samsalim at 2010-4-29 14:29 [/i