informatica:telefonia:trixbox:x100p
Instalación X100P
# lspci -vvv
00:0e.0 Communication controller: Motorola Wildcard X100P Subsystem: Efar Microsystems Unknown device 0001 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 64 (250ns min, 32000ns max) Interrupt: pin A routed to IRQ 5 Region 0: I/O ports at 1400 [size=256] Region 1: Memory at e8008000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] Power Management version 2 Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mA PME(D0+,D1-,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Mierda Mierda, esta huevada no funciona
#dmesg
zaptel: no version for "oslec_echo_can_traintap" found: kernel tainted. Zapata Telephony Interface Registered on major 196 Zaptel Version: 1.4.12.1 ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 5 PCI: setting IRQ 5 as level-triggered ACPI: PCI Interrupt 0000:00:0e.0[A] -> Link [LNKB] -> GSI 5 (level, low) -> IRQ 5 NOTICE-wcfxo: WCFXO/0: Unknown DAA chip revision: REVB=0 Failed to initailize DAA, giving up... wcfxo: probe of 0000:00:0e.0 failed with error -5
Al llamar da error: “it's so busy now, please try later”
/var/log/asterisk/full
[May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [610410XXX@from-internal:1] Set("SIP/2001007-096008d8", "EMERGENCYROUTE=YES") in new stack [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [610410XXX@from-internal:2] Set("SIP/2001007-096008d8", "INTRACOMPANYROUTE=YES") in new stack [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [610410XXX@from-internal:3] Macro("SIP/2001007-096008d8", "user-callerid|SKIPTTL|") in new stack [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:1] Set("SIP/2001007-096008d8", "AMPUSER=2001007") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2001007-096008d8", "0?report") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2001007-096008d8", "1|Set|REALCALLERIDNUM=2001007") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: ExecIf [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:4] Set("SIP/2001007-096008d8", "AMPUSER=2001007") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:5] Set("SIP/2001007-096008d8", "AMPUSERCIDNAME=Jose") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2001007-096008d8", "0?report") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:7] Set("SIP/2001007-096008d8", "AMPUSERCID=2001007") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:8] Set("SIP/2001007-096008d8", "CALLERID(all)="Jose" <2001007>") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:9] Set("SIP/2001007-096008d8", "REALCALLERIDNUM=2001007") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:10] ExecIf("SIP/2001007-096008d8", "0|Set|CHANNEL(language)=") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: ExecIf [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:11] GotoIf("SIP/2001007-096008d8", "1?continue") in new stack [May 13 00:36:43] VERBOSE[2772] logger.c: -- Goto (macro-user-callerid,s,20) [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-user-callerid:20] NoOp("SIP/2001007-096008d8", "Using CallerID "Jose" <2001007>") in new stack [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: Noop [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [610410XXX@from-internal:4] Set("SIP/2001007-096008d8", "_NODEST=") in new stack [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [610410XXX@from-internal:5] Macro("SIP/2001007-096008d8", "record-enable|2001007|OUT|") in new stack [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/2001007-096008d8", "1?check") in new stack [May 13 00:36:43] VERBOSE[2772] logger.c: -- Goto (macro-record-enable,s,4) [May 13 00:36:43] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:43] VERBOSE[2772] logger.c: -- Executing [s@macro-record-enable:4] AGI("SIP/2001007-096008d8", "recordingcheck|20090513-003643|1242167803.1") in new stack [May 13 00:36:43] VERBOSE[2772] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck [May 13 00:36:44] VERBOSE[2772] logger.c: recordingcheck|20090513-003643|1242167803.1: Outbound recording not enabled [May 13 00:36:44] VERBOSE[2772] logger.c: -- AGI Script recordingcheck completed, returning 0 [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: AGI [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-record-enable:5] MacroExit("SIP/2001007-096008d8", "") in new stack [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [610410XXX@from-internal:6] Macro("SIP/2001007-096008d8", "dialout-trunk|1|10410395||") in new stack [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/2001007-096008d8", "DIAL_TRUNK=1") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:44] DEBUG[2772] func_db.c: DB: AMPUSER/2001007/pinless not found in database. [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/2001007-096008d8", "0?sub-pincheck|s|1") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: GosubIf [May 13 00:36:44] DEBUG[2772] func_db.c: DB: AMPUSER/2001007/pinless not found in database. [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2001007-096008d8", "0?disabletrunk|1") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/2001007-096008d8", "DIAL_NUMBER=10410395") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/2001007-096008d8", "DIAL_TRUNK_OPTIONS=tr") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/2001007-096008d8", "OUTBOUND_GROUP=OUT_1") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2001007-096008d8", "1?nomax") in new stack [May 13 00:36:44] VERBOSE[2772] logger.c: -- Goto (macro-dialout-trunk,s,9) [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2001007-096008d8", "1?skipoutcid") in new stack [May 13 00:36:44] VERBOSE[2772] logger.c: -- Goto (macro-dialout-trunk,s,12) [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/2001007-096008d8", "0|AGI|fixlocalprefix") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: ExecIf [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/2001007-096008d8", "OUTNUM=10410395") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/2001007-096008d8", "custom=ZAP/g0") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Set [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/2001007-096008d8", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)tr") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: ExecIf [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/2001007-096008d8", "dialout-trunk-predial-hook|") in new stack [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/2001007-096008d8", "") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Macro [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/2001007-096008d8", "0?bypass|1") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2001007-096008d8", "0?customtrunk") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/2001007-096008d8", "ZAP/g0/10410395|300|tr") in new stack [May 13 00:36:44] WARNING[2772] app_dial.c: Unable to create channel of type 'ZAP' (cause 0 - Unknown) [May 13 00:36:44] VERBOSE[2772] logger.c: == Everyone is busy/congested at this time (1:0/0/1) [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Dial [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-dialout-trunk:20] Goto("SIP/2001007-096008d8", "s-CHANUNAVAIL|1") in new stack [May 13 00:36:44] VERBOSE[2772] logger.c: -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1) [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Goto [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/2001007-096008d8", "1?noreport") in new stack [May 13 00:36:44] VERBOSE[2772] logger.c: -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3) [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/2001007-096008d8", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack [May 13 00:36:44] DEBUG[2772] app_macro.c: Executed application: Noop [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [610410XXX@from-internal:7] Macro("SIP/2001007-096008d8", "outisbusy|") in new stack [May 13 00:36:44] VERBOSE[2772] logger.c: -- Executing [s@macro-outisbusy:1] Playback("SIP/2001007-096008d8", "all-circuits-busy-now|noanswer") in new stack [May 13 00:36:44] VERBOSE[2772] logger.c: -- <SIP/2001007-096008d8> Playing 'all-circuits-busy-now' (language 'en') [May 13 00:36:46] DEBUG[2772] app_macro.c: Executed application: Playback [May 13 00:36:46] VERBOSE[2772] logger.c: -- Executing [s@macro-outisbusy:2] Playback("SIP/2001007-096008d8", "pls-try-call-later|noanswer") in new stack [May 13 00:36:46] VERBOSE[2772] logger.c: -- <SIP/2001007-096008d8> Playing 'pls-try-call-later' (language 'en') [May 13 00:36:48] DEBUG[2772] app_macro.c: Executed application: Playback [May 13 00:36:48] VERBOSE[2772] logger.c: -- Executing [s@macro-outisbusy:3] Macro("SIP/2001007-096008d8", "hangupcall") in new stack [May 13 00:36:48] VERBOSE[2772] logger.c: -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/2001007-096008d8", "w") in new stack [May 13 00:36:48] DEBUG[2772] app_macro.c: Executed application: ResetCDR [May 13 00:36:48] VERBOSE[2772] logger.c: -- Executing [s@macro-hangupcall:2] NoCDR("SIP/2001007-096008d8", "") in new stack [May 13 00:36:48] DEBUG[2772] app_macro.c: Executed application: NoCDR [May 13 00:36:48] VERBOSE[2772] logger.c: -- Executing [s@macro-hangupcall:3] GotoIf("SIP/2001007-096008d8", "1?skiprg") in new stack [May 13 00:36:48] VERBOSE[2772] logger.c: -- Goto (macro-hangupcall,s,6) [May 13 00:36:48] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:48] VERBOSE[2772] logger.c: -- Executing [s@macro-hangupcall:6] GotoIf("SIP/2001007-096008d8", "1?skipblkvm") in new stack [May 13 00:36:48] VERBOSE[2772] logger.c: -- Goto (macro-hangupcall,s,9) [May 13 00:36:48] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:48] VERBOSE[2772] logger.c: -- Executing [s@macro-hangupcall:9] GotoIf("SIP/2001007-096008d8", "1?theend") in new stack [May 13 00:36:48] VERBOSE[2772] logger.c: -- Goto (macro-hangupcall,s,11) [May 13 00:36:48] DEBUG[2772] app_macro.c: Executed application: GotoIf [May 13 00:36:48] VERBOSE[2772] logger.c: -- Executing [s@macro-hangupcall:11] Hangup("SIP/2001007-096008d8", "") in new stack [May 13 00:36:48] VERBOSE[2772] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2001007-096008d8' in macro 'hangupcall' [May 13 00:36:48] VERBOSE[2772] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2001007-096008d8' in macro 'outisbusy' [May 13 00:36:48] VERBOSE[2772] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2001007-096008d8'
Para configurarla hacemos:
# genzaptelconf # ztcfg # zttool
Ahora se nos abre una ventana donde debemos seleccionar la tarjeta:
Alarms Span UNCONFIGURED ZTDUMMY/1 (source: RTC) 1
Entramos en el cli de asterisk con asterisk -r Listar canales:
trixbox1*CLI> zap show channels Chan Extension Context Language MOH Interpret pseudo from-zaptel en default
Con dahdi
trixbox1*CLI> dahdi show channels Chan Extension Context Language MOH Interpret Blocked State pseudo from-zaptel en default In Service
informatica/telefonia/trixbox/x100p.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1