Cursos Servidores con Centos 6
Sistema Operativo ALDOS
Dezoft

Si algunos de nuestros foros, manuales, ALDOS, paquetería o proyectos te han resultado de ayuda, apreciaremos mucho nos apoyes con un donativo.

 Índice > Todo acerca de Linux > Asterisk y VoIP Nuevo tema Publicar Respuesta
 Problema con libopenr2
Tema anterior Tema siguiente
   
rudy
Publicado en 11/09/09 04:59 (Leído 5232 veces)  

Nuevo
Forum User

Inscrito: 02/09/09 Publicaciones: 10
País:Mexico D.F.
En un proyecto tenia que conectar un conmutador Panasonic TDA-200, con un Asterisk version 1.4.25, con librerias dahdi, una tarjeta Digium TE212 de dos puertos E1, la interconexion se haria con Openr2 ya que en el panasonic, por medio de uno de los puertos de E1 de la tarjeta Digium, por el otro puerto lo iva a enlazar al E1 de voz con un proveedor XXX, el e1 de el proveedor funciono muy bien, el chiste es que conecte el conmutador Panasonic al otro puerto para recibir las peticiones de llamadas pero sucedio lo siguiente

[00:00:38:251] [Thread: 3078634384] [Chan 62] - Call started at Fri Aug 14 00:00:38 2009 on chan 62
[00:00:38:251] [Thread: 3078634384] [Chan 62] - CAS Tx >> [SEIZE ACK] 0x0C
[00:00:38:251] [Thread: 3078634384] [Chan 62] - CAS Raw Tx >> 0x0D
[00:00:39:233] [Thread: 3078634384] [Chan 62] - MF Rx << 5 [ON]
[00:00:39:233] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 0
[00:00:39:233] [Thread: 3078634384] [Chan 62] - Cannot cancel timer 0
[00:00:39:233] [Thread: 3078634384] [Chan 62] - Getting DNIS digit 5
[00:00:39:233] [Thread: 3078634384] [Chan 62] - DNIS so far: 5, expected length: 16
[00:00:39:234] [Thread: 3078634384] [Chan 62] - Requesting next DNIS with signal 0x31.
[00:00:39:234] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [ON]
[00:00:39:313] [Thread: 3078634384] [Chan 62] - MF Rx << 5 [OFF]
[00:00:39:313] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [OFF]
[00:00:39:653] [Thread: 3078634384] [Chan 62] - MF Rx << 2 [ON]
[00:00:39:653] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 2
[00:00:39:653] [Thread: 3078634384] [Chan 62] - timer id 2 found, cancelling it now
[00:00:39:653] [Thread: 3078634384] [Chan 62] - Getting DNIS digit 2
[00:00:39:653] [Thread: 3078634384] [Chan 62] - DNIS so far: 52, expected length: 16
[00:00:39:654] [Thread: 3078634384] [Chan 62] - Requesting next DNIS with signal 0x31.
[00:00:39:654] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [ON]
[00:00:39:713] [Thread: 3078634384] [Chan 62] - MF Rx << 2 [OFF]
[00:00:39:713] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [OFF]
[00:00:40:553] [Thread: 3078634384] [Chan 62] - MF Rx << 3 [ON]
[00:00:40:553] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 3
[00:00:40:553] [Thread: 3078634384] [Chan 62] - timer id 3 found, cancelling it now
[00:00:40:553] [Thread: 3078634384] [Chan 62] - Getting DNIS digit 3
[00:00:40:553] [Thread: 3078634384] [Chan 62] - DNIS so far: 523, expected length: 16
[00:00:40:553] [Thread: 3078634384] [Chan 62] - Requesting next DNIS with signal 0x31.
[00:00:40:553] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [ON]
[00:00:40:613] [Thread: 3078634384] [Chan 62] - MF Rx << 3 [OFF]
[00:00:40:613] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [OFF]
[00:00:40:933] [Thread: 3078634384] [Chan 62] - MF Rx << 2 [ON]
[00:00:40:933] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 4
[00:00:40:933] [Thread: 3078634384] [Chan 62] - timer id 4 found, cancelling it now
[00:00:40:933] [Thread: 3078634384] [Chan 62] - Getting DNIS digit 2
[00:00:40:933] [Thread: 3078634384] [Chan 62] - DNIS so far: 5232, expected length: 16
[00:00:40:933] [Thread: 3078634384] [Chan 62] - Requesting next DNIS with signal 0x31.
[00:00:40:933] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [ON]
[00:00:40:993] [Thread: 3078634384] [Chan 62] - MF Rx << 2 [OFF]
[00:00:40:993] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [OFF]
[00:00:41:313] [Thread: 3078634384] [Chan 62] - MF Rx << 5 [ON]
[00:00:41:313] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 5
[00:00:41:313] [Thread: 3078634384] [Chan 62] - timer id 5 found, cancelling it now
[00:00:41:313] [Thread: 3078634384] [Chan 62] - Getting DNIS digit 5
[00:00:41:313] [Thread: 3078634384] [Chan 62] - DNIS so far: 52325, expected length: 16
[00:00:41:313] [Thread: 3078634384] [Chan 62] - Requesting next DNIS with signal 0x31.
[00:00:41:313] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [ON]
[00:00:41:393] [Thread: 3078634384] [Chan 62] - MF Rx << 5 [OFF]
[00:00:41:393] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [OFF]
[00:00:41:653] [Thread: 3078634384] [Chan 62] - MF Rx << 8 [ON]
[00:00:41:653] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 6
[00:00:41:653] [Thread: 3078634384] [Chan 62] - timer id 6 found, cancelling it now
[00:00:41:653] [Thread: 3078634384] [Chan 62] - Getting DNIS digit 8
[00:00:41:653] [Thread: 3078634384] [Chan 62] - DNIS so far: 523258, expected length: 16
[00:00:41:653] [Thread: 3078634384] [Chan 62] - Requesting next DNIS with signal 0x31.
[00:00:41:653] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [ON]
[00:00:41:733] [Thread: 3078634384] [Chan 62] - MF Rx << 8 [OFF]
[00:00:41:733] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [OFF]
[00:00:41:993] [Thread: 3078634384] [Chan 62] - MF Rx << 9 [ON]
[00:00:41:993] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 7
[00:00:41:993] [Thread: 3078634384] [Chan 62] - timer id 7 found, cancelling it now
[00:00:41:993] [Thread: 3078634384] [Chan 62] - Getting DNIS digit 9
[00:00:41:993] [Thread: 3078634384] [Chan 62] - DNIS so far: 5232589, expected length: 16
[00:00:41:993] [Thread: 3078634384] [Chan 62] - Requesting next DNIS with signal 0x31.
[00:00:41:993] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [ON]
[00:00:42:073] [Thread: 3078634384] [Chan 62] - MF Rx << 9 [OFF]
[00:00:42:073] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [OFF]
[00:00:42:273] [Thread: 3078634384] [Chan 62] - MF Rx << 9 [ON]
[00:00:42:273] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 8
[00:00:42:273] [Thread: 3078634384] [Chan 62] - timer id 8 found, cancelling it now
[00:00:42:273] [Thread: 3078634384] [Chan 62] - Getting DNIS digit 9
[00:00:42:273] [Thread: 3078634384] [Chan 62] - DNIS so far: 52325899, expected length: 16
[00:00:42:273] [Thread: 3078634384] [Chan 62] - Requesting next DNIS with signal 0x31.
[00:00:42:273] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [ON]
[00:00:42:353] [Thread: 3078634384] [Chan 62] - MF Rx << 9 [OFF]
[00:00:42:353] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [OFF]
[00:00:42:493] [Thread: 3078634384] [Chan 62] - MF Rx << 9 [ON]
[00:00:42:493] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 9
[00:00:42:493] [Thread: 3078634384] [Chan 62] - timer id 9 found, cancelling it now
[00:00:42:493] [Thread: 3078634384] [Chan 62] - Getting DNIS digit 9
[00:00:42:493] [Thread: 3078634384] [Chan 62] - DNIS so far: 523258999, expected length: 16
[00:00:42:493] [Thread: 3078634384] [Chan 62] - Requesting next DNIS with signal 0x31.
[00:00:42:493] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [ON]
[00:00:42:573] [Thread: 3078634384] [Chan 62] - MF Rx << 9 [OFF]
[00:00:42:573] [Thread: 3078634384] [Chan 62] - MF Tx >> 1 [OFF]
[00:00:42:713] [Thread: 3078634384] [Chan 62] - MF Rx << C [ON]
[00:00:42:713] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 10
[00:00:42:713] [Thread: 3078634384] [Chan 62] - timer id 10 found, cancelling it now
[00:00:42:713] [Thread: 3078634384] [Chan 62] - Protocol error. Reason = Invalid Multi Frequency Tone, R2 State = Seize ACK Transmitted, MF state = DNIS Request Transmitted, MF Group = Backward Group A, CAS = 0x00
DNIS = 523258999, ANI = , MF = 0x43
[00:00:42:713] [Thread: 3078634384] [Chan 62] - Attempting to cancel timer timer 0
[00:00:42:713] [Thread: 3078634384] [Chan 62] - Cannot cancel timer 0


A grandes rasgos, tuve estos dos problemas a la hora de dar de alta mis rutas hacia numeros locales (8 digitos), celulares (13 digitos), larga distancia nacional en internacional (12 y 13 digitos), observe que habia un error, dependiendo de los parametros ANI y DNIS en el archivo chandahdi.conf para el minimo y maximo de los digitos a recibir si si tenia configurado el DNIS en 13 para el maximo permitido, por ejemplo en la ruta de llamadas locales de 8 digitos, vi que decia que le faltaban digitos para llegar al DNIS y me mandaba tono de ocupado a las lineas de el panasonic, de lo contrario si le bajaba la opcion a 8 digitos en el DNIS, me cortaba el numero recibido por ejemplo de un celular 04455XXXXXXXX, me llegaba 04455XXX, me saco canas verdes y termine conectando este escenario con un Cisco 5360 que esta en medio del asterisk y del Panasonic

Anexo mis archivos de asterisk

extension.conf

[from-panasonic]

exten => _.,1,Dial(DAHDI/g0/${EXTEN},60,Ttr)
exten => _.,2,Hangup()

chan_dahdi.conf

;Contexto mcm
group=0
context=from-pstn
signalling=mfcr2
mfcr2_variant=mx
mfcr2_get_ani_first=no
mfcr2_max_ani=10
mfcr2_max_dnis=8
mfcr2_category=national_subscriber
mfcr2_call_files=yes

channel => 1-15,17-31


;Contexto Panasonic#############
group=1
context=from-panasonic
signalling=mfcr2
mfcr2_variant=mx
mfcr2_get_ani_first=yes
mfcr2_max_ani=10
mfcr2_max_dnis=8
mfcr2_metering_pulse_timeout=-1
mfcr2_mfback_timeout=-1
mfcr2_logging=all
mfcr2_category=national_subscriber
mfcr2_immediate_accept=yes

channel => 32-46,48-62

Alguien que tenga experiencia en openr2 que me aconseja ???

Ing. Isaac Sanchez Msn. backstreet_06@hotmail.com
 
Perfil Sitio Web
 Citar
Anónimo fulvous
Publicado en 01/07/11 05:36  
Hola! Nosotros también trabajamos con MCM y nos hemos integrado con conmutadores tradicionales. Mira, lo que puedes hacer es aumentar en número de 13 a un número alto.. por si hay marcaciones a otras partes del mundo.. como 30 dígitos. Y lo que tienes que modificar es el timeout. Por que por lo general esa marcación ya llega de un solo jalón, entonces no vale la pena esperar tanto tiempo. Bájalo y listo, integración completada. Saludos,
 
 Citar
rudy
Publicado en 01/09/11 04:35  

Nuevo
Forum User

Inscrito: 02/09/09 Publicaciones: 10
País:Mexico D.F.
Hola fulvous, fijate que me volvia topar con el mismo problema, pero en esta ocasion con un Nortel Meridian y PSTN en una troncal SIP con IUSACELL (que por cierto es el peorcito de los carriers aqui en el DF) y use esta configuracion:

[trunkgroups]
[channels]
language=en
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
faxdetect=both
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=no

group=1
context=from-internal
signalling=mfcr2
language=en
faxdetect=both
mfcr2_variant=mx
mfcr2_get_ani_first=yes
mfcr2_max_ani=20
mfcr2_max_dnis=20
mfcr2_category=national_subscriber
mfcr2_logdir=span1
mfcr2_logging=all
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
mfcr2_allow_collect_calls=yes
mfcr2_double_answer=no
mfcr2_charge_calls=no
mfcr2_call_files=yes
mfcr2_logdir=span1
mfcr2_logging=cas
channel=1-15,17-25

Despues habia un pequeño problema con los canales que se bloqueban desde un inicio y lo solucionamos asi en el system.conf con dahdi

loadzone = mx
defaultzone=mx


span=1,1,0,cas,hdb3
span=2,0,0,cas,hdb3

cas=1-15:1101
cas=17-25:1101

Como veras solu teniamos habilitados 25 canales .... y la otra diferencia es que usamos una tarjeta de la marca Aligera que nos la vendieron en Brasil ...

Saludos

Ing. Isaac Sanchez Msn. backstreet_06@hotmail.com
 
Perfil Sitio Web
 Citar
Contenido generado en: 0,12 segundos Nuevo tema Publicar Respuesta
 Todas las horas son UTC. Hora actual 03:58 .
Tema normal Tema normal
Tema persistente Tema persistente
Tema cerrado Tema cerrado
Nueva publicación Nueva publicación
Persistente con nueva publicación Persistente con nueva publicación
Cerrado con nueva publicación Cerrado con nueva publicación
Ver publicaciones anónimas 
Usuarios anónimos pueden publicar 
Se permite HTML Filtrado 
Contenido censurado