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 00:0a.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface Subsystem: Unknown device b100:0003 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 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 [Jan 18 00:51:47] VERBOSE[3111] logger.c: == Using SIP RTP TOS bits 184 [Jan 18 00:51:47] VERBOSE[3111] logger.c: == Using SIP RTP CoS mark 5 [Jan 18 00:51:47] VERBOSE[3111] logger.c: == Using SIP VRTP TOS bits 136 [Jan 18 00:51:47] VERBOSE[3111] logger.c: == Using SIP VRTP CoS mark 6 [Jan 18 00:51:47] VERBOSE[3113] logger.c: -- Launching Sendsms(dahdi/1,610410395,hola) on SIP/0830102008-00000007 [Jan 18 00:51:47] VERBOSE[3114] logger.c: -- Launching DoSms(610410XXX hola) on DAHDI/1-1 [Jan 18 00:51:51] WARNING[3114] chan_dahdi.c: gsm send sms sucess [Jan 18 00:51:51] VERBOSE[3114] logger.c: -- Hungup 'DAHDI/1-1' Des del prompt es pot fer directament amb: # asterisk -rx "sendsms SIP/0830102008 dahdi/1 610410395 hola" ====== ELASTIX ====== Miramos si detecta el canal: [root@PBX-Cuba tmp]# rasterisk -vvvvgcr Asterisk 1.8.11.0, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.11.0 currently running on PBX-Cuba (pid = 2661) Verbosity is at least 5 PBX-Cuba*CLI> dahdi show channels Chan Extension Context Language MOH Interpret Blocked State pseudo default default In Service 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 CPU0 0: 19606539 IO-APIC-edge timer 1: 2 IO-APIC-edge i8042 6: 6 IO-APIC-edge floppy 7: 2 IO-APIC-edge parport0 8: 1 IO-APIC-edge rtc 9: 0 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 Nos bajamos los drivers de http://www.atcom.cn/cn/download/cards/ax4g/ax4g_elastix2.0.3.tar.gz y los instalamos. 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: S'està instal·lant elastix-2.0.0-57.noarch # ./ax4g_install.sh ************************************************************************** @@ ATCOM AX4G Card Install Script @@ @@ V1.0.1 @@ @@ Welcome to Use AX4G @@ @@ Copyright(c) 2010-2012 ATCOM Co., Ltd. @@ ************************************************************************** Error: The current version was not support the instal·lant 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