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 23:08] 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.\\ Puede que tengamos que descargar primero los drivers.\\
-http://www.atcom.cn/cn/download/cards/ax4g/ax4g_trixbox2.8.0.4.tar.gz+{{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:\\ Manual de configuración:\\
-http://www.voipon.co.uk/documents/atcom_ax4g_user_manual.pdf +{{informatica:telefonia:trixbox:atcom_ax4g_user_manual.pdf|Manual ax4g}} 
-http://www.atcom.cn/cn/download/cards/ax4g/How%20to%20Install%20and%20Configure%20AX4G%20in%20Trixbox2.8.0.4.pdf+ 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
  
  
Line 27: Line 29:
   /etc/dahdi/modules   /etc/dahdi/modules
  
-# atcom ax4g: gsm pci card +  # atcom ax4g: gsm pci card 
-ax4g +  ax4g 
- +   
-# Digium TDM400P: up to 4 analog ports +  # Digium TDM400P: up to 4 analog ports 
-#wctdm+  #wctdm
  
 Reiniciamos dahdi Reiniciamos dahdi
Line 54: Line 56:
    pseudo            default         en         default                         In Service    pseudo            default         en         default                         In Service
         1            from-pstn       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 
 +
 +<code>
 +[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'
 +</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>
 +[root@PBX-Cuba tmp]# rasterisk -vvvvgcr
 +Asterisk 1.8.11.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
 +Created by Mark Spencer <markster@digium.com>
 +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
 +
 +</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>
 +           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
 +</code>
 +
 +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
 +
 +
 +<code>
 +# ./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
 +
 +</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.1358464089.txt.gz · Last modified: 2015/04/13 20:19 (external edit)