Тогда пойдем по изначальному предложению.
Вот логи моего звонка:
Код: Выделить всё
[2011-03-11 13:45:59] VERBOSE[24486] logger.c: -- Accepting call from '9037833172' to '722' on channel 0/4, span 1
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [722@from-trunk:1] Set("DAHDI/4-1", "__FROM_DID=722") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [722@from-trunk:2] Gosub("DAHDI/4-1", "app-blacklist-check,s,1") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/4-1", "0?blacklisted") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@app-blacklist-check:2] Return("DAHDI/4-1", "") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [722@from-trunk:3] ExecIf("DAHDI/4-1", "1 ?Set(CALLERID(name)=9037833172)") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [722@from-trunk:4] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [722@from-trunk:5] Set("DAHDI/4-1", "CALLERPRES()=allowed_not_screened") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [722@from-trunk:6] Goto("DAHDI/4-1", "from-did-direct,2304,1") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Goto (from-did-direct,2304,1)
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [2304@from-did-direct:1] Macro("DAHDI/4-1", "exten-vm,novm,2304") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-exten-vm:1] Macro("DAHDI/4-1", "user-callerid") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:1] Set("DAHDI/4-1", "AMPUSER=9037833172") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/4-1", "0?report") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/4-1", "1?Set(REALCALLERIDNUM=9037833172)") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:4] Set("DAHDI/4-1", "AMPUSER=") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:5] Set("DAHDI/4-1", "AMPUSERCIDNAME=") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/4-1", "1?report") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Goto (macro-user-callerid,s,10)
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/4-1", "0?continue") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:11] Set("DAHDI/4-1", "__TTL=64") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/4-1", "1?continue") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Goto (macro-user-callerid,s,19)
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-user-callerid:19] NoOp("DAHDI/4-1", "Using CallerID "9037833172" <9037833172>") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-exten-vm:2] Set("DAHDI/4-1", "RingGroupMethod=none") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-exten-vm:3] Set("DAHDI/4-1", "VMBOX=novm") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-exten-vm:4] Set("DAHDI/4-1", "EXTTOCALL=2304") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-exten-vm:5] Set("DAHDI/4-1", "CFUEXT=") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-exten-vm:6] Set("DAHDI/4-1", "CFBEXT=") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-exten-vm:7] Set("DAHDI/4-1", "RT=""") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-exten-vm:8] Macro("DAHDI/4-1", "record-enable,2304,IN") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-record-enable:1] GotoIf("DAHDI/4-1", "1?check") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Goto (macro-record-enable,s,4)
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-record-enable:4] AGI("DAHDI/4-1", "recordingcheck,20110311-134559,1299840359.144") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: recordingcheck,20110311-134559,1299840359.144: Inbound recording not enabled
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- <DAHDI/4-1>AGI Script recordingcheck completed, returning 0
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-record-enable:5] MacroExit("DAHDI/4-1", "") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-exten-vm:9] Macro("DAHDI/4-1", "dial,"",tr,2304") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-dial:1] GotoIf("DAHDI/4-1", "1?dial") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Goto (macro-dial,s,3)
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-dial:3] AGI("DAHDI/4-1", "dialparties.agi") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: dialparties.agi: Starting New Dialparties.agi
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: dialparties.agi: Caller ID name is '9037833172' number is '9037833172'
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: > dialparties.agi: USE_CONFIRMATION: 'FALSE'
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: > dialparties.agi: RINGGROUP_INDEX: ''
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: dialparties.agi: Methodology of ring is 'none'
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- dialparties.agi: Added extension 2304 to extension map
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: > dialparties.agi: Extension 2304 has call screening off
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- dialparties.agi: Extension 2304 cf is disabled
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- dialparties.agi: Extension 2304 do not disturb is disabled
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: > dialparties.agi: extnum 2304 has: cw: 1; hascfb: 0 [] hascfu: 0 []
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: dialparties.agi: EXTENSION_STATE: 4 (UNAVAILABLE)
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- dialparties.agi: dbset CALLTRACE/2304 to 9037833172
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- dialparties.agi: Filtered ARG3: 2304
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- <DAHDI/4-1>AGI Script dialparties.agi completed, returning 0
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Executing [s@macro-dial:7] Dial("DAHDI/4-1", "DAHDI/g2/2304,"",tr") in new stack
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Requested transfer capability: 0x00 - SPEECH
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- Called g2/2304
[2011-03-11 13:45:59] VERBOSE[24982] logger.c: -- DAHDI/34-1 is proceeding passing it to DAHDI/4-1
[2011-03-11 13:46:00] VERBOSE[24982] logger.c: -- DAHDI/34-1 is ringing
cidlookup вообще не вижу.
И еще.
Правильно ли я понимаю, что для вербозности 5 можно просто подключиться как asterisk -rvvvvv, а дебажность 3 я не понял, как сделать