[asterisk-r2] "mfcr2_max_dnis" problems on asterisk 11.4.0

Marcelo Eduardo marceloeduardo12345678 at hotmail.com
Fri Jun 28 13:17:46 CDT 2013


Hola, normalmente en implementaciones donde mantengo viejos PBXs conectados a asterisk los uno con una trama E1 R2.En los archivos de configuracion el spam referente a la trama que interconecta ambos equipos el parámetro "mfcr2_max_dnis" lo dejo con valor 15 para que tome cualquier cantidad de dígitos que el viejo equipo le quiera enviar al asterisk.Esto es importante por ejemplo cuando hay internos en el asterisk con distinta cantidad de dígitos (algunos con 3, otros con 4) o tambien cuando se cursarán llamadas haciendo tránsito por el asterisk.Nunca he tenido problemas con hasta con asterisk 1.8Sucede que ahora se me presenta una instalacion con asterisk 11.4.0 y aparentemente éste parámetro se comporta distinto y sólo me permite gestionar llamadas que coincidan con la cantidad  exacta de digitos declaradas.Es como si en vez de ser "max_dnis" fuera "exact_dnis".Por ejemplo, si mfcr2_max_dnis=4no puedo cursar llamadas de 5 dígitos porque las trunca pero tampoco puedo cursar llamadas de 3 digitos porque da error.
Abajo adjunto un ejemplo del error generado con asterisk 11.4.0 con un elastix 2.4 con placas de trama sangoma:con:mfcr2_max_dnis=15 marcando 4401

*************************************************************************************[13:28:41:909] [Thread: 3061119888] [Chan 35] - Call started at Fri Jun 28 13:28:41 2013 on chan 35 [openr2 version 1.3.2, revision exported][13:28:41:909] [Thread: 3061119888] [Chan 35] - Initialized R2 MF detector[13:28:41:909] [Thread: 3061119888] [Chan 35] - CAS Tx >> [SEIZE ACK] 0x0C[13:28:41:909] [Thread: 3061119888] [Chan 35] - CAS Raw Tx >> 0x0D[13:28:42:443] [Thread: 3061119888] [Chan 35] - MF Rx << 4 [ON][13:28:42:443] [Thread: 3061119888] [Chan 35] - Attempting to cancel timer timer 0[13:28:42:443] [Thread: 3061119888] [Chan 35] - Cannot cancel timer 0[13:28:42:443] [Thread: 3061119888] [Chan 35] - Getting DNIS digit 4[13:28:42:443] [Thread: 3061119888] [Chan 35] - DNIS so far: 4, expected length: 15[13:28:42:443] [Thread: 3061119888] [Chan 35] - Requesting next DNIS with signal 0x31.[13:28:42:443] [Thread: 3061119888] [Chan 35] - MF Tx >> 1 [ON][13:28:42:443] [Thread: 3061119888] [Chan 35] - scheduled timer id 2 (mf_back_cycle)[13:28:42:523] [Thread: 3061119888] [Chan 35] - MF Rx << 4 [OFF][13:28:42:523] [Thread: 3061119888] [Chan 35] - MF Tx >> 1 [OFF][13:28:42:623] [Thread: 3061119888] [Chan 35] - MF Rx << 4 [ON][13:28:42:623] [Thread: 3061119888] [Chan 35] - Attempting to cancel timer timer 2[13:28:42:623] [Thread: 3061119888] [Chan 35] - timer id 2 found, cancelling it now[13:28:42:623] [Thread: 3061119888] [Chan 35] - Getting DNIS digit 4[13:28:42:623] [Thread: 3061119888] [Chan 35] - DNIS so far: 44, expected length: 15[13:28:42:623] [Thread: 3061119888] [Chan 35] - Requesting next DNIS with signal 0x31.[13:28:42:623] [Thread: 3061119888] [Chan 35] - MF Tx >> 1 [ON][13:28:42:623] [Thread: 3061119888] [Chan 35] - scheduled timer id 3 (mf_back_cycle)[13:28:42:723] [Thread: 3061119888] [Chan 35] - MF Rx << 4 [OFF][13:28:42:723] [Thread: 3061119888] [Chan 35] - MF Tx >> 1 [OFF][13:28:42:823] [Thread: 3061119888] [Chan 35] - MF Rx << 0 [ON][13:28:42:823] [Thread: 3061119888] [Chan 35] - Attempting to cancel timer timer 3[13:28:42:823] [Thread: 3061119888] [Chan 35] - timer id 3 found, cancelling it now[13:28:42:823] [Thread: 3061119888] [Chan 35] - Getting DNIS digit 0[13:28:42:823] [Thread: 3061119888] [Chan 35] - DNIS so far: 440, expected length: 15[13:28:42:823] [Thread: 3061119888] [Chan 35] - Requesting next DNIS with signal 0x31.[13:28:42:823] [Thread: 3061119888] [Chan 35] - MF Tx >> 1 [ON][13:28:42:823] [Thread: 3061119888] [Chan 35] - scheduled timer id 4 (mf_back_cycle)[13:28:42:903] [Thread: 3061119888] [Chan 35] - MF Rx << 0 [OFF][13:28:42:903] [Thread: 3061119888] [Chan 35] - MF Tx >> 1 [OFF][13:28:43:003] [Thread: 3061119888] [Chan 35] - MF Rx << 1 [ON][13:28:43:003] [Thread: 3061119888] [Chan 35] - Attempting to cancel timer timer 4[13:28:43:003] [Thread: 3061119888] [Chan 35] - timer id 4 found, cancelling it now[13:28:43:003] [Thread: 3061119888] [Chan 35] - Getting DNIS digit 1[13:28:43:003] [Thread: 3061119888] [Chan 35] - DNIS so far: 4401, expected length: 15[13:28:43:003] [Thread: 3061119888] [Chan 35] - Requesting next DNIS with signal 0x31.[13:28:43:003] [Thread: 3061119888] [Chan 35] - MF Tx >> 1 [ON][13:28:43:003] [Thread: 3061119888] [Chan 35] - scheduled timer id 5 (mf_back_cycle)[13:28:43:103] [Thread: 3061119888] [Chan 35] - MF Rx << 1 [OFF][13:28:43:103] [Thread: 3061119888] [Chan 35] - MF Tx >> 1 [OFF][13:28:43:803] [Thread: 3061119888] [Chan 35] - MF Rx << F [ON][13:28:43:803] [Thread: 3061119888] [Chan 35] - Attempting to cancel timer timer 5[13:28:43:803] [Thread: 3061119888] [Chan 35] - timer id 5 found, cancelling it now[13:28:43:803] [Thread: 3061119888] [Chan 35] - Protocol error. Reason = Invalid Multi Frequency Tone, R2 State = Seize ACK Transmitted, MF state = DNIS Request Transmitted, MF Group = Backward Group A, CAS = 0x00DNIS = 4401, ANI = , MF = 0x46[13:28:43:803] [Thread: 3061119888] [Chan 35] - Attempting to cancel timer timer 0[13:28:43:803] [Thread: 3061119888] [Chan 35] - Cannot cancel timer 0
*************************************************************************************

Abajo el mismo llamado pero exitoso con el unico cambio del parametro mas_dnis:mfcr2_max_dnis=4 marcando 4401 

*************************************************************************************[13:32:57:883] [Thread: 3063397264] [Chan 36] - Call started at Fri Jun 28 13:32:57 2013 on chan 36 [openr2 version 1.3.2, revision exported][13:32:57:884] [Thread: 3063397264] [Chan 36] - Initialized R2 MF detector[13:32:57:884] [Thread: 3063397264] [Chan 36] - CAS Tx >> [SEIZE ACK] 0x0C[13:32:57:884] [Thread: 3063397264] [Chan 36] - CAS Raw Tx >> 0x0D[13:32:58:391] [Thread: 3063397264] [Chan 36] - MF Rx << 4 [ON][13:32:58:391] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 0[13:32:58:391] [Thread: 3063397264] [Chan 36] - Cannot cancel timer 0[13:32:58:391] [Thread: 3063397264] [Chan 36] - Getting DNIS digit 4[13:32:58:391] [Thread: 3063397264] [Chan 36] - DNIS so far: 4, expected length: 4[13:32:58:391] [Thread: 3063397264] [Chan 36] - Requesting next DNIS with signal 0x31.[13:32:58:391] [Thread: 3063397264] [Chan 36] - MF Tx >> 1 [ON][13:32:58:391] [Thread: 3063397264] [Chan 36] - scheduled timer id 2 (mf_back_cycle)[13:32:58:471] [Thread: 3063397264] [Chan 36] - MF Rx << 4 [OFF][13:32:58:471] [Thread: 3063397264] [Chan 36] - MF Tx >> 1 [OFF][13:32:58:571] [Thread: 3063397264] [Chan 36] - MF Rx << 4 [ON][13:32:58:571] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 2[13:32:58:571] [Thread: 3063397264] [Chan 36] - timer id 2 found, cancelling it now[13:32:58:571] [Thread: 3063397264] [Chan 36] - Getting DNIS digit 4[13:32:58:571] [Thread: 3063397264] [Chan 36] - DNIS so far: 44, expected length: 4[13:32:58:571] [Thread: 3063397264] [Chan 36] - Requesting next DNIS with signal 0x31.[13:32:58:571] [Thread: 3063397264] [Chan 36] - MF Tx >> 1 [ON][13:32:58:571] [Thread: 3063397264] [Chan 36] - scheduled timer id 3 (mf_back_cycle)[13:32:58:671] [Thread: 3063397264] [Chan 36] - MF Rx << 4 [OFF][13:32:58:671] [Thread: 3063397264] [Chan 36] - MF Tx >> 1 [OFF][13:32:58:771] [Thread: 3063397264] [Chan 36] - MF Rx << 0 [ON][13:32:58:771] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 3[13:32:58:771] [Thread: 3063397264] [Chan 36] - timer id 3 found, cancelling it now[13:32:58:771] [Thread: 3063397264] [Chan 36] - Getting DNIS digit 0[13:32:58:771] [Thread: 3063397264] [Chan 36] - DNIS so far: 440, expected length: 4[13:32:58:771] [Thread: 3063397264] [Chan 36] - Requesting next DNIS with signal 0x31.[13:32:58:771] [Thread: 3063397264] [Chan 36] - MF Tx >> 1 [ON][13:32:58:771] [Thread: 3063397264] [Chan 36] - scheduled timer id 4 (mf_back_cycle)[13:32:58:871] [Thread: 3063397264] [Chan 36] - MF Rx << 0 [OFF][13:32:58:871] [Thread: 3063397264] [Chan 36] - MF Tx >> 1 [OFF][13:32:58:991] [Thread: 3063397264] [Chan 36] - MF Rx << 1 [ON][13:32:58:991] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 4[13:32:58:991] [Thread: 3063397264] [Chan 36] - timer id 4 found, cancelling it now[13:32:58:991] [Thread: 3063397264] [Chan 36] - Getting DNIS digit 1[13:32:58:991] [Thread: 3063397264] [Chan 36] - DNIS so far: 4401, expected length: 4[13:32:58:991] [Thread: 3063397264] [Chan 36] - Done getting DNIS![13:32:58:991] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [ON][13:32:58:991] [Thread: 3063397264] [Chan 36] - scheduled timer id 5 (mf_back_cycle)[13:32:59:071] [Thread: 3063397264] [Chan 36] - MF Rx << 1 [OFF][13:32:59:071] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [OFF][13:32:59:771] [Thread: 3063397264] [Chan 36] - MF Rx << 1 [ON][13:32:59:771] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 5[13:32:59:771] [Thread: 3063397264] [Chan 36] - timer id 5 found, cancelling it now[13:32:59:771] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [ON][13:32:59:771] [Thread: 3063397264] [Chan 36] - scheduled timer id 6 (mf_back_cycle)[13:32:59:851] [Thread: 3063397264] [Chan 36] - MF Rx << 1 [OFF][13:32:59:851] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [OFF][13:32:59:951] [Thread: 3063397264] [Chan 36] - MF Rx << 2 [ON][13:32:59:951] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 6[13:32:59:951] [Thread: 3063397264] [Chan 36] - timer id 6 found, cancelling it now[13:32:59:951] [Thread: 3063397264] [Chan 36] - Getting ANI digit 2[13:32:59:951] [Thread: 3063397264] [Chan 36] - ANI so far: 2, expected length: 10[13:32:59:951] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [ON][13:32:59:951] [Thread: 3063397264] [Chan 36] - scheduled timer id 7 (mf_back_cycle)[13:33:00:051] [Thread: 3063397264] [Chan 36] - MF Rx << 2 [OFF][13:33:00:051] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [OFF][13:33:00:151] [Thread: 3063397264] [Chan 36] - MF Rx << 5 [ON][13:33:00:151] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 7[13:33:00:151] [Thread: 3063397264] [Chan 36] - timer id 7 found, cancelling it now[13:33:00:151] [Thread: 3063397264] [Chan 36] - Getting ANI digit 5[13:33:00:151] [Thread: 3063397264] [Chan 36] - ANI so far: 25, expected length: 10[13:33:00:151] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [ON][13:33:00:151] [Thread: 3063397264] [Chan 36] - scheduled timer id 8 (mf_back_cycle)[13:33:00:231] [Thread: 3063397264] [Chan 36] - MF Rx << 5 [OFF][13:33:00:231] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [OFF][13:33:00:351] [Thread: 3063397264] [Chan 36] - MF Rx << 0 [ON][13:33:00:351] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 8[13:33:00:351] [Thread: 3063397264] [Chan 36] - timer id 8 found, cancelling it now[13:33:00:351] [Thread: 3063397264] [Chan 36] - Getting ANI digit 0[13:33:00:351] [Thread: 3063397264] [Chan 36] - ANI so far: 250, expected length: 10[13:33:00:351] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [ON][13:33:00:351] [Thread: 3063397264] [Chan 36] - scheduled timer id 9 (mf_back_cycle)[13:33:00:431] [Thread: 3063397264] [Chan 36] - MF Rx << 0 [OFF][13:33:00:431] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [OFF][13:33:00:531] [Thread: 3063397264] [Chan 36] - MF Rx << 0 [ON][13:33:00:531] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 9[13:33:00:531] [Thread: 3063397264] [Chan 36] - timer id 9 found, cancelling it now[13:33:00:531] [Thread: 3063397264] [Chan 36] - Getting ANI digit 0[13:33:00:531] [Thread: 3063397264] [Chan 36] - ANI so far: 2500, expected length: 10[13:33:00:531] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [ON][13:33:00:531] [Thread: 3063397264] [Chan 36] - scheduled timer id 10 (mf_back_cycle)[13:33:00:631] [Thread: 3063397264] [Chan 36] - MF Rx << 0 [OFF][13:33:00:631] [Thread: 3063397264] [Chan 36] - MF Tx >> 5 [OFF][13:33:00:731] [Thread: 3063397264] [Chan 36] - MF Rx << F [ON][13:33:00:731] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 10[13:33:00:731] [Thread: 3063397264] [Chan 36] - timer id 10 found, cancelling it now[13:33:00:731] [Thread: 3063397264] [Chan 36] - Got end of ANI[13:33:00:731] [Thread: 3063397264] [Chan 36] - ANI is restricted[13:33:00:731] [Thread: 3063397264] [Chan 36] - Requesting change to Group II with signal 0x33[13:33:00:731] [Thread: 3063397264] [Chan 36] - MF Tx >> 3 [ON][13:33:00:731] [Thread: 3063397264] [Chan 36] - scheduled timer id 11 (mf_back_cycle)[13:33:00:831] [Thread: 3063397264] [Chan 36] - MF Rx << F [OFF][13:33:00:831] [Thread: 3063397264] [Chan 36] - MF Tx >> 3 [OFF][13:33:01:531] [Thread: 3063397264] [Chan 36] - MF Rx << 1 [ON][13:33:01:531] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 11[13:33:01:531] [Thread: 3063397264] [Chan 36] - timer id 11 found, cancelling it now[13:33:01:531] [Thread: 3063397264] [Chan 36] - MF Tx >> 6 [ON][13:33:01:531] [Thread: 3063397264] [Chan 36] - scheduled timer id 12 (mf_back_cycle)[13:33:01:631] [Thread: 3063397264] [Chan 36] - MF Rx << 1 [OFF][13:33:01:631] [Thread: 3063397264] [Chan 36] - MF Tx >> 6 [OFF][13:33:01:631] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 12[13:33:01:631] [Thread: 3063397264] [Chan 36] - timer id 12 found, cancelling it now[13:33:01:631] [Thread: 3063397264] [Chan 36] - scheduled timer id 13 (r2_answer_delay)[13:33:01:791] [Thread: 3063397264] [Chan 36] - Attempting to cancel timer timer 13[13:33:01:791] [Thread: 3063397264] [Chan 36] - timer id 13 found, cancelling it now[13:33:01:791] [Thread: 3063397264] [Chan 36] - calling timer 13 (r2_answer_delay) callback[13:33:12:201] [Thread: 3056417680] [Chan 36] - CAS Tx >> [ANSWER] 0x04[13:33:12:201] [Thread: 3056417680] [Chan 36] - CAS Raw Tx >> 0x05[13:33:38:224] [Thread: 3056417680] [Chan 36] - Bits changed from 0x00 to 0x08[13:33:38:224] [Thread: 3056417680] [Chan 36] - CAS Rx << [CLEAR FORWARD] 0x08[13:33:38:224] [Thread: 3056417680] [Chan 36] - Far end disconnected. Reason: Normal Clearing[13:33:38:380] [Thread: 3056417680] [Chan 36] - Call ended[13:33:38:380] [Thread: 3056417680] [Chan 36] - Attempting to cancel timer timer 0[13:33:38:380] [Thread: 3056417680] [Chan 36] - Cannot cancel timer 0*************************************************************************************

Los archivos de configuracion abajo. El span en cuestion es el 2:

*************************************************************************************;Sangoma A102 port 1 [slot:4 bus:17 span:1] <wanpipe1>; context=publicacontext=from-pstngroup=0echocancel=yessignalling=mfcr2mfcr2_variant=armfcr2_get_ani_first=nomfcr2_max_ani=10mfcr2_max_dnis=4mfcr2_category=national_subscribermfcr2_mfback_timeout=-1mfcr2_mete_pulse_timeout=-1channel =>1-15,17-31
;Sangoma A102 port 2 [slot:4 bus:17 span:2] <wanpipe2>; context=neccontext=from-pstngroup=1echocancel=yessignalling=mfcr2mfcr2_variant=armfcr2_get_ani_first=nomfcr2_max_ani=10mfcr2_max_dnis=4mfcr2_category=national_subscribermfcr2_mfback_timeout=-1mfcr2_mete_pulse_timeout=-1
mfcr2_logdir=span2mfcr2_call_files=yesloglevel=error,warning,debug,notice,cas,mf
channel =>32-46,48-62
*************************************************************************************




Y el system.conf:
*************************************************************************************#Sangoma A102 port 1 [slot:4 bus:17 span:1] <wanpipe1>span=1,1,0,cas,hdb3cas=1-15,17-31:1101echocanceller=mg2,1-15,17-31

#Sangoma A102 port 2 [slot:4 bus:17 span:2] <wanpipe2>span=2,0,0,cas,hdb3cas=32-46,48-62:1101echocanceller=mg2,32-46,48-62*************************************************************************************
Desde ya muy agradecido por el tiempo dispensado.





 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-r2/attachments/20130628/aaa9154f/attachment-0001.html>


More information about the asterisk-r2 mailing list