User Tools

Site Tools


informatica:telefonia:trixbox:gsm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:telefonia:trixbox:gsm [2013/01/17 22:22] joseinformatica:telefonia:trixbox:gsm [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +Puede que tengamos que descargar primero los drivers.\\
 +{{informatica:telefonia:trixbox:ax4g_trixbox2.8.0.4.tar.gz|Drivers}} http://www.atcom.cn/cn/download/cards/ax4g/ax4g_trixbox2.8.0.4.tar.gz
 +
 +Manual de configuración:\\
 +{{informatica:telefonia:trixbox:atcom_ax4g_user_manual.pdf|Manual ax4g}}
 + http://www.voipon.co.uk/documents/atcom_ax4g_user_manual.pdf \\
 +{{informatica:telefonia:trixbox:how_to_install_and_configure_ax4g_in_trixbox2.8.0.4.pdf|Manual driver}} http://www.atcom.cn/cn/download/cards/ax4g/How%20to%20Install%20and%20Configure%20AX4G%20in%20Trixbox2.8.0.4.pdf
 +
 +
 +Primero miramos si detecta la tarjeta, tiene que salir Tiger3XX
   # lspci -vvv   # lspci -vvv
  
Line 16: Line 26:
  
  
 +Cargamos el módulo correcto, muy importante. Miramos el fichero  /etc/dahdi/modules y quitamos el modulo wctdm y ponemos el módulo ax4g
 +  /etc/dahdi/modules
 +
 +  # atcom ax4g: gsm pci card
 +  ax4g
 +  
 +  # Digium TDM400P: up to 4 analog ports
 +  #wctdm
 +
 +Reiniciamos dahdi
 +  /etc/init.d/dahdi restart
 +
 +Miramos si ha detectado correctamente el driver:
 +  cat /proc/interrupts
 +
 +  193:     548858   IO-APIC-level  ax4g, SiS SI7012
 +
 +Ejecutamos dahdi_genconf para crear el fichero de configuración
 +
 +
 +Ejecutamos asterisk:
 +  asterisk –vvgc
 +  reload
 +
 +Ahora vemos si detecta la tarjeta:
 +  *CLI> dahdi show channels
 +
 +     Chan Extension  Context         Language   MOH Interpret        Blocked    State     
 +   pseudo            default         en         default                         In Service
 +        1            from-pstn       en         default                         In Service
 +
 +
 +Enviar un sms desde CLI:\\
 +Accedemos al CLI de asterisk amb tantes v com nivell de debug:
 +  #asterisk -rvvvvv
 +o
 +  #rasterisk -vvvvvv
 +i des del CLI:
 +  trixbox1*CLI> sendsms SIP/0830102008 dahdi/1 610410XXX hola 
  
-Llamada a móvil, error: 
 <code> <code>
-[Jan 17 16:03:57] VERBOSE[2579] logger.c:   == Using SIP RTP TOS bits 184 +[Jan 18 00:51:47] VERBOSE[3111] logger.c:   == Using SIP RTP TOS bits 184 
-[Jan 17 16:03:57] VERBOSE[2579] logger.c:   == Using SIP RTP CoS mark 5 +[Jan 18 00:51:47] VERBOSE[3111] logger.c:   == Using SIP RTP CoS mark 5 
-[Jan 17 16:03:57] VERBOSE[2579] logger.c:   == Using SIP VRTP TOS bits 136 +[Jan 18 00:51:47] VERBOSE[3111] logger.c:   == Using SIP VRTP TOS bits 136 
-[Jan 17 16:03:57] VERBOSE[2579] logger.c:   == Using SIP VRTP CoS mark 6 +[Jan 18 00:51:47] VERBOSE[3111] logger.c:   == Using SIP VRTP CoS mark 6 
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [610410XXX@from-internal:1] Macro("SIP/0830102008-b7b03198", "user-callerid,SKIPTTL,") in new stack +[Jan 18 00:51:47] VERBOSE[3113] logger.c:     -- Launching Sendsms(dahdi/1,610410395,holaon SIP/0830102008-00000007 
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:1] Set("SIP/0830102008-b7b03198""AMPUSER=0830102008") in new stack +[Jan 18 00:51:47] VERBOSE[3114] logger.c:     -- Launching DoSms(610410XXX holaon DAHDI/1-1 
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:2] GotoIf("SIP/0830102008-b7b03198""0?report"in new stack +[Jan 18 00:51:51] WARNING[3114chan_dahdi.c: gsm send sms sucess 
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:3] ExecIf("SIP/0830102008-b7b03198", "1?Set(REALCALLERIDNUM=0830102008)") in new stack +[Jan 18 00:51:51] VERBOSE[3114] logger.c:     -- Hungup 'DAHDI/1-1'
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:4] Set("SIP/0830102008-b7b03198", "AMPUSER=0830102008") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:5] Set("SIP/0830102008-b7b03198", "AMPUSERCIDNAME=ivan alamos") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:6] GotoIf("SIP/0830102008-b7b03198", "0?report") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:7] Set("SIP/0830102008-b7b03198", "AMPUSERCID=0830102008") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:8] Set("SIP/0830102008-b7b03198", "CALLERID(all)="ivan alamos" <0830102008>") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:9] Set("SIP/0830102008-b7b03198", "REALCALLERIDNUM=0830102008") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:10] ExecIf("SIP/0830102008-b7b03198", "0?Set(CHANNEL(language)=)") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:11] GotoIf("SIP/0830102008-b7b03198", "1?continue") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Goto (macro-user-callerid,s,20) +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-user-callerid:20] NoOp("SIP/0830102008-b7b03198", "Using CallerID "ivan alamos" <0830102008>") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [610410XXX@from-internal:2] Set("SIP/0830102008-b7b03198", "_NODEST="in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [610410XXX@from-internal:3] Macro("SIP/0830102008-b7b03198", "record-enable,0830102008,OUT,") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-record-enable:1] GotoIf("SIP/0830102008-b7b03198", "1?check") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Goto (macro-record-enable,s,4) +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Executing [s@macro-record-enable:4] AGI("SIP/0830102008-b7b03198", "recordingcheck,20130117-160357,1358435037.9") in new stack +
-[Jan 17 16:03:57] VERBOSE[7339] logger.c:     -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck +
-[Jan 17 16:03:57] WARNING[2427] pbx.c: FONALITY: This thread has already held the conlock, skip locking +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:  recordingcheck,20130117-160357,1358435037.9: Outbound recording not enabled +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- <SIP/0830102008-b7b03198>AGI Script recordingcheck completed, returning 0 +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-record-enable:5] MacroExit("SIP/0830102008-b7b03198", "") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [610410XXX@from-internal:4] Macro("SIP/0830102008-b7b03198", "dialout-trunk,610410XXX,,") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:1] Set("SIP/0830102008-b7b03198", "DIAL_TRUNK=4") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/0830102008-b7b03198", "0?sub-pincheck,s,1") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/0830102008-b7b03198", "0?disabletrunk,1") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:4] Set("SIP/0830102008-b7b03198", "DIAL_NUMBER=610410XXX") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:5] Set("SIP/0830102008-b7b03198", "DIAL_TRUNK_OPTIONS=tr") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:6] Set("SIP/0830102008-b7b03198", "OUTBOUND_GROUP=OUT_4") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/0830102008-b7b03198", "1?nomax") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Goto (macro-dialout-trunk,s,9) +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/0830102008-b7b03198", "0?skipoutcid") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:10] Set("SIP/0830102008-b7b03198", "DIAL_TRUNK_OPTIONS=") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:11] Macro("SIP/0830102008-b7b03198", "outbound-callerid,4") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/0830102008-b7b03198", "0?Set(CALLERPRES()=)") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/0830102008-b7b03198", "0?Set(REALCALLERIDNUM=0830102008)") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/0830102008-b7b03198", "1?normcid") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Goto (macro-outbound-callerid,s,6) +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:6] Set("SIP/0830102008-b7b03198", "USEROUTCID=") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:7] Set("SIP/0830102008-b7b03198", "EMERGENCYCID=") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:8] Set("SIP/0830102008-b7b03198", "TRUNKOUTCID=mobil") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/0830102008-b7b03198", "1?trunkcid") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Goto (macro-outbound-callerid,s,12) +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/0830102008-b7b03198", "1?Set(CALLERID(all)=mobil)") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/0830102008-b7b03198", "0?Set(CALLERID(all)=)") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/0830102008-b7b03198", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/0830102008-b7b03198", "1?AGI(fixlocalprefix)") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:        > fixlocalprefix: Using pattern 6XXXXXXXX +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:   == fixlocalprefix: Dialpattern 6XXXXXXXX matched. 610410XXX -> 610410XXX +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- <SIP/0830102008-b7b03198>AGI Script fixlocalprefix completed, returning 0 +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:13] Set("SIP/0830102008-b7b03198", "OUTNUM=610410XXX") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:14] Set("SIP/0830102008-b7b03198", "custom=DAHDI/g0") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/0830102008-b7b03198", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:16] Macro("SIP/0830102008-b7b03198", "dialout-trunk-predial-hook,") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/0830102008-b7b03198", "") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/0830102008-b7b03198", "0?bypass,1") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/0830102008-b7b03198", "0?customtrunk") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:19] Dial("SIP/0830102008-b7b03198", "DAHDI/g0/610410XXX,") in new stack +
-[Jan 17 16:03:58] WARNING[7339app_dial.c: Unable to create channel of type 'DAHDI' (cause 0 - Unknown) +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:   == Everyone is busy/congested at this time (1:0/0/1) +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-dialout-trunk:20] Goto("SIP/0830102008-b7b03198", "s-CHANUNAVAIL,1") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1) +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/0830102008-b7b03198", "1?noreport") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3) +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/0830102008-b7b03198", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [610410XXX@from-internal:5] Macro("SIP/0830102008-b7b03198", "outisbusy,") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- Executing [s@macro-outisbusy:1] Playback("SIP/0830102008-b7b03198", "all-circuits-busy-now,noanswer") in new stack +
-[Jan 17 16:03:58] VERBOSE[7339] logger.c:     -- <SIP/0830102008-b7b03198> Playing 'all-circuits-busy-now.gsm' (language 'ca') +
-[Jan 17 16:04:00] VERBOSE[7339] logger.c    -- Executing [s@macro-outisbusy:2] Playback("SIP/0830102008-b7b03198", "pls-try-call-later,noanswer") in new stack +
-[Jan 17 16:04:00] VERBOSE[7339] logger.c:     -- <SIP/0830102008-b7b03198> Playing 'pls-try-call-later.gsm' (language 'ca'+
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-outisbusy:3] Macro("SIP/0830102008-b7b03198", "hangupcall") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/0830102008-b7b03198", "vw") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:2] NoCDR("SIP/0830102008-b7b03198", "") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:3] GotoIf("SIP/0830102008-b7b03198", "1?skiprg") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Goto (macro-hangupcall,s,6) +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:6] GotoIf("SIP/0830102008-b7b03198", "1?skipblkvm") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Goto (macro-hangupcall,s,9) +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:9] GotoIf("SIP/0830102008-b7b03198", "1?theend") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Goto (macro-hangupcall,s,11) +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:11] Hangup("SIP/0830102008-b7b03198", "") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:   == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/0830102008-b7b03198' in macro 'hangupcall' +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:   == Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/0830102008-b7b03198' in macro 'outisbusy' +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:   == Spawn extension (from-internal, 610410XXX, 5) exited non-zero on 'SIP/0830102008-b7b03198' +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [h@from-internal:1] Macro("SIP/0830102008-b7b03198", "hangupcall") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/0830102008-b7b03198", "vw") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:2] NoCDR("SIP/0830102008-b7b03198", "") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:3] GotoIf("SIP/0830102008-b7b03198", "1?skiprg") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Goto (macro-hangupcall,s,6) +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:6] GotoIf("SIP/0830102008-b7b03198", "1?skipblkvm") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Goto (macro-hangupcall,s,9) +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:9] GotoIf("SIP/0830102008-b7b03198", "1?theend") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Goto (macro-hangupcall,s,11) +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:     -- Executing [s@macro-hangupcall:11] Hangup("SIP/0830102008-b7b03198", "") in new stack +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:   == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/0830102008-b7b03198' in macro 'hangupcall' +
-[Jan 17 16:04:03] VERBOSE[7339] logger.c:   == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/0830102008-b7b03198' +
-[Jan 17 16:04:03] WARNING[2427] pbx.c: FONALITY: This thread has already held the conlock, skip locking+
 </code> </code>
  
 +Des del prompt es pot fer directament amb:
 +  # asterisk -rx "sendsms SIP/0830102008 dahdi/1 610410395 hola"
 +
 +
 +====== ELASTIX ======
 +Miramos si detecta el canal:
  
 <code> <code>
-[trixbox1.localdomain ~]# dahdi_scan  +[root@PBX-Cuba tmp]# rasterisk -vvvvgcr 
-[1] +Asterisk 1.8.11.0, Copyright (C) 1999 - 2012 Digium, Inc. and others. 
-active=yes +Created by Mark Spencer <markster@digium.com> 
-alarms=OK +Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. 
-description=ATCOM AX4G Board 5 +This is free software, with components licensed under the GNU General Public 
-name=WCTDM/4 +License version 2 and other licenses; you are welcome to redistribute it under 
-manufacturer=Digium +certain conditions. Type 'core show license' for details. 
-devicetype=ATCOM AX4G +========================================================================= 
-location=PCI Bus 00 Slot 11 +  == Parsing '/etc/asterisk/asterisk.conf':   == Found 
-basechan=+  == Parsing '/etc/asterisk/extconfig.conf':   == Found 
-totchans=+Connected to Asterisk 1.8.11.0 currently running on PBX-Cuba (pid = 2661) 
-irq=201 +Verbosity is at least 5 
-type=analog + 
-port=1,FXO +PBX-Cuba*CLI> dahdi show channels 
-port=2,none +   Chan Extension  Context         Language   MOH Interpret        Blocked    State      
-port=3,none + pseudo            default                    default                         In Service 
-port=4,none +
-[trixbox1.localdomain ~]# dahdi_hardware  +
-driver should be 'wctdmbut is actually 'ax4g' +
-pci:0000:00:0a.0     wctdm+       e159:0001 Wildcard TDM400P REV E/F+
 </code> </code>
  
 +Mramos si ha cargado el módulo de dahdi:
 +  # cat /etc/dahdi/modules
 +
 +  # Autogenerated by /usr/sbin/dahdi_genconf (Dahdi::Config::Gen::Modules) on Fri Jan 18 02:05:40 2013
 +  # If you edit this file and execute /usr/sbin/dahdi_genconf again,
 +  # your manual changes will be LOST.
 +  wctdm
 +
 +Solo ha cargado el wctdm y no el ax4g
 +
 +Vemos que si ha detectado la tarjeta:
 +  # lspci
 +
 +  00:0a.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
 +
 +Vamos a ver si ha cargado el driver, debería aparecer ax4g:
 +  # cat /proc/interrupts
  
 <code> <code>
-# dahdi_cfg -vvv +           CPU0        
-DAHDI Tools Version - 2.3.0+  0:   19606539    IO-APIC-edge  timer 
 +  1:          2    IO-APIC-edge  i8042 
 +  6:          6    IO-APIC-edge  floppy 
 +  7:             IO-APIC-edge  parport0 
 +  8:          1    IO-APIC-edge  rtc 
 +  9:            IO-APIC-level  acpi 
 + 14:      38254    IO-APIC-edge  ide0 
 + 15:     175625    IO-APIC-edge  ide1 
 +169:          2   IO-APIC-level  ehci_hcd:usb1 
 +177:          0   IO-APIC-level  ohci_hcd:usb2 
 +185:         28   IO-APIC-level  ohci_hcd:usb3 
 +193:      22726   IO-APIC-level  eth0 
 +201:          0   IO-APIC-level  SiS SI7012 
 +NMI:          0  
 +LOC:   19602770  
 +ERR:          0 
 +MIS:          0 
 +</code>
  
-DAHDI Version +Nos bajamos los drivers de http://www.atcom.cn/cn/download/cards/ax4g/ax4g_elastix2.0.3.tar.gz y los instalamos.
-Echo Canceller(s): MG2 +
-Configuration +
-======================+
  
 +Cuidado si es la versión en catalán, tenemos que cambiar una línea del script de instalación ax4g_install.sh, porque sinó no nos detecta correcamente la versión de asterisk, nos sale "instal·lant" en vez de la versión, porque hace un cat del fichero install.log que tiene la línea:
  
-Channel map:+  S'està instal·lant elastix-2.0.0-57.noarch
  
-Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01) 
  
-channels to configure.+<code> 
 +# ./ax4g_install.sh  
 + 
 +************************************************************************** 
 +@@                   ATCOM AX4G Card Install Script                     @@ 
 +@@                             V1.0.                                  @@ 
 +@@                         Welcome to Use AX4G                          @@ 
 +@@                 Copyright(c) 2010-2012 ATCOM  Co., Ltd             @@ 
 +************************************************************************** 
 + 
 + 
 +Error: The current version was not support the instal·lant
  
-Setting echocan for channel 1 to mg2 
 </code> </code>
 +
 +Hay que cambiar:
 +  NOW_ELASTIX_VERSION=`cat /root/install.log | grep elastix-2 | cut -d' ' -f2`
 +Por:
 +  NOW_ELASTIX_VERSION=`cat /root/install.log | grep elastix-2 | cut -d' ' -f3`
 +
 +
 +
 +  201:    3891002   IO-APIC-level  SiS SI7012, ax4g/ax2g4a
informatica/telefonia/trixbox/gsm.1358461374.txt.gz · Last modified: 2015/04/13 20:19 (external edit)