Problemas con E1 Telmex

Discussion in 'Elastix 2.x' started by rramos2k, Nov 12, 2009.

  1. rramos2k

    Joined:
    Nov 11, 2009
    Messages:
    6
    Likes Received:
    0
    Tengo una tarjeta sangoma a102de con elastix 1.6,

    ya configure el wanpipe, dahdi y asterisk, pero trato de marcar a cualquier numero y no me da tono este es mi log de la llamada, ya tengo los canales como IDLE, y ya no se donde buscar muchas gracias, al final agrege los archivos de configuracion


    -- Executing [s@macro-dialout-trunk:20] Dial("SIP/1182-12da2820", "DAHDI/g1/1723436|300|") in new stack
    [Nov 11 16:56:32] NOTICE[11088]: app_dial.c:1185 dial_exec_full: Hey! chan SIP/1182-12da2820's context='macro-dialout-trunk', and exten='s'
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:1264 dahdi_r2_get_channel_category: no MFC/R2 category specified for chan DAHDI/1-1, using default National Subscriber
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Attempting to make call (ANI=1182, DNIS=1723436, category=National Subscriber)
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Call started at Wed Nov 11 16:56:32 2009 on chan 1 [openr2 version 1.2.0, revision exported]
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Tx >> [SEIZE] 0x00
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Raw Tx >> 0x01
    -- Called g1/1723436
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:4707 dahdi_handle_event: bits changed in chan 1
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Bits changed from 0x08 to 0x0C
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Rx << [SEIZE ACK] 0x0C
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Sending DNIS digit 1
    [Nov 11 16:56:32] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - MF Tx >> 1 [ON]
    [Nov 11 16:56:35] DEBUG[11088]: chan_dahdi.c:3490 dahdi_hangup: disconnecting MFC/R2 call on chan 1
    [Nov 11 16:56:35] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Tx >> [CLEAR FORWARD] 0x08
    [Nov 11 16:56:35] DEBUG[11088]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Raw Tx >> 0x09

    Estos son los archivos de configuración

    wanpipe1.conf

    [devices]
    wanpipe1 = WAN_AFT_TE1, Comment

    [interfaces]
    w1g1 = wanpipe1, , TDM_VOICE, Comment

    [wanpipe1]
    CARD_TYPE = AFT
    S514CPU = A
    CommPort = PRI
    AUTO_PCISLOT = NO
    PCISLOT = 4
    PCIBUS = 12
    FE_MEDIA = E1
    FE_LCODE = HDB3
    FE_FRAME = NCRC4
    FE_LINE = 1
    TE_CLOCK = NORMAL
    TE_REF_CLOCK = 0
    TE_SIG_MODE = CAS
    TE_HIGHIMPEDANCE= NO
    LBO = 120OH
    FE_TXTRISTATE = NO
    MTU = 1500
    UDPPORT = 9000
    TTL = 255
    IGNORE_FRONT_END = NO
    TDMV_SPAN = 1
    TDMV_DCHAN = 16
    #TDMV_HW_DTMF = YES
    #TDMV_HW_FAX_DETECT = YES
    #HWEC_CLKSRC = YES

    [w1g1]
    ACTIVE_CH = 1-16
    TDMV_HWEC = YES
    TDMV_ECHO_OFF = YES

    /etc/dahdi/system.conf
    # Span 2: WPE1/0 "wanpipe1 card 0" (MASTER) HDB3//CRC4
    span=1,1,0,cas,hdb3,crc4
    cas=1-10:1101
    dchan=16
    #echocanceller=oslec,1-10

    # Global data

    loadzone = mx
    defaultzone = mx

    /etc/asterisk/chan-dahdi.conf
    [trunkgroups]

    [channels]
    context=from-pstn
    switchtype=national
    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
    mfcr2_logdir=span1
    mfcr2_logging=all
    mfcr2_mfback_timeout=-1
    mfcr2_metering_pulse_timeout=-1
    group=1
    channel => 1-10
    usecallerid=yes
    hidecallerid=no
    callwaiting=yes
    usecallingpres=yes
    callwaitingcallerid=yes
    threewaycalling=yes
    transfer=yes
    canpark=yes
    cancallforward=yes
    callreturn=yes
    echocancel=yes
    echocancelwhenbridged=no
    faxdetect=incoming
    echotraining=800
    rxgain=0.0
    txgain=0.0
    cid_rxgain=5
    callgroup=1
    pickupgroup=1

    ;Uncomment these lines if you have problems with the disconection of your analog lines
    busydetect=yes
    busycount=3
    immediate=no
     
  2. abundismty

    Joined:
    Jul 2, 2009
    Messages:
    23
    Likes Received:
    0
    si recibes llamadas ?
     
  3. rramos2k

    Joined:
    Nov 11, 2009
    Messages:
    6
    Likes Received:
    0
    nop, si me cambia el estatus del canal a SAIZE ACK pero igual no recibo sonido

    este es log de una llamada entrante.

    [18:27:54:418] [Thread: 1099622720] [Chan 7] - Call started at Wed Nov 11 18:27:54 2009 on chan 7 [openr2 version 1.2.0, revision exported]
    [18:27:54:418] [Thread: 1099622720] [Chan 7] - CAS Tx >> [SEIZE ACK] 0x0C
    [18:27:54:418] [Thread: 1099622720] [Chan 7] - CAS Raw Tx >> 0x0D
    [18:28:01:729] [Thread: 1099622720] [Chan 7] - Bits changed from 0x00 to 0x08
    [18:28:01:730] [Thread: 1099622720] [Chan 7] - CAS Rx << [CLEAR FORWARD] 0x08
    [18:28:01:730] [Thread: 1099622720] [Chan 7] - Far end disconnected. Reason: Normal Clearing
    [18:28:01:730] [Thread: 1099622720] [Chan 7] - Call ended
    [18:28:01:730] [Thread: 1099622720] [Chan 7] - Attempting to cancel timer timer 0
    [18:28:01:730] [Thread: 1099622720] [Chan 7] - Cannot cancel timer 0

    GRACIAS
     
  4. abundismty

    Joined:
    Jul 2, 2009
    Messages:
    23
    Likes Received:
    0
    en /etc/asterisk/chan-dahdi.conf

    tienes una line que esta asi

    mfcr2_max_dnis=8
    cambia el 8 por un 4
    mfcr2_max_dnis=4
     
  5. abundismty

    Joined:
    Jul 2, 2009
    Messages:
    23
    Likes Received:
    0
    y el contexto ponlo como from-zaptel
     
  6. rramos2k

    Joined:
    Nov 11, 2009
    Messages:
    6
    Likes Received:
    0
    ya cambie el contexo a zaptel y cambie el parametro a mfcr2_max_dnis=8,lamentablemente sigo sin oir ninguna voz cuando trato de marcar a cualquier numero

    voip*CLI> dahdi show channels
    Chan Extension Context Language MOH Interpret
    pseudo default default
    1 from-zaptel es default
    2 from-zaptel es default
    3 from-zaptel es default
    4 from-zaptel es default
    5 from-zaptel es default
    6 from-zaptel es default
    7 from-zaptel es default
    8 from-zaptel es default
    9 from-zaptel es default
    10 from-zaptel es default

    voip*CLI> mfcr2 show channels
    Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS
    1 MX 10 4 No No IDLE IDLE
    2 MX 10 4 No No IDLE IDLE
    3 MX 10 4 No No IDLE IDLE
    4 MX 10 4 No No IDLE IDLE
    5 MX 10 4 No No IDLE IDLE
    6 MX 10 4 No No IDLE IDLE
    7 MX 10 4 No No IDLE IDLE
    8 MX 10 4 No No IDLE IDLE
    9 MX 10 4 No No IDLE IDLE
    10 MX 10 4 No No IDLE IDLE

    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:1264 dahdi_r2_get_channel_category: no MFC/R2 category specified for chan DAHDI/1-1, using default National Subscriber
    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Attempting to make call (ANI=1182, DNIS=1723436, category=National Subscriber)
    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Call started at Thu Nov 12 13:35:55 2009 on chan 1 [openr2 version 1.2.0, revision exported]
    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Tx >> [SEIZE] 0x00
    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Raw Tx >> 0x01 -- Called g1/1723436
    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:4707 dahdi_handle_event: bits changed in chan 1
    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Bits changed from 0x08 to 0x0C
    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Rx << [SEIZE ACK] 0x0C
    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Sending DNIS digit 1
    [Nov 12 13:35:55] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - MF Tx >> 1 [ON]
    [Nov 12 13:41:11] DEBUG[4041]: chan_dahdi.c:3490 dahdi_hangup: disconnecting MFC/R2 call on chan 1
    [Nov 12 13:41:11] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Tx >> [CLEAR FORWARD] 0x08
    [Nov 12 13:41:11] DEBUG[4041]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Raw Tx >> 0x09
    [Nov 12 13:41:11] DEBUG[3987]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Bits changed from 0x0C to 0x08
    [Nov 12 13:41:11] DEBUG[3987]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Rx << [IDLE] 0x08
    [Nov 12 13:41:11] DEBUG[3987]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - Call ended
    [Nov 12 13:41:11] DEBUG[3987]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Tx >> [IDLE] 0x08
    [Nov 12 13:41:11] DEBUG[3987]: chan_dahdi.c:1533 dahdi_r2_write_log: Chan 1 - CAS Raw Tx >> 0x09
    [Nov 12 13:41:11] NOTICE[3987]: chan_dahdi.c:1388 dahdi_r2_on_call_end: MFC/R2 call end on chan 1
     
  7. rramos2k

    Joined:
    Nov 11, 2009
    Messages:
    6
    Likes Received:
    0
    Despues de estar haciedo pruebas marcando a diferentes numeros de telefono me marco este error.

    [Nov 12 18:49:27] DEBUG[3971] chan_dahdi.c: Chan 1 - MF Rx << F [ON]
    [Nov 12 18:49:27] DEBUG[3971] chan_dahdi.c: Chan 1 - MF Tx >> 1 [OFF]
    [Nov 12 18:49:27] DEBUG[3971] chan_dahdi.c: Chan 1 - MF Rx << F [OFF]
    [Nov 12 18:49:27] ERROR[3971] chan_dahdi.c: Chan 1 - Protocol error. Reason = Invalid Multi Frequency Tone, R2 State = Seize ACK Received, MF state = DNIS Digit Transmitted, MF Group = Forward Group I, CAS = 0x0C
    DNIS = 1723435, ANI = 1184, MF = 0x46
    [Nov 12 18:49:27] DEBUG[3971] chan_dahdi.c: Chan 1 - CAS Tx >> [IDLE] 0x08
    [Nov 12 18:49:27] DEBUG[3971] chan_dahdi.c: Chan 1 - CAS Raw Tx >> 0x09
    [Nov 12 18:49:27] ERROR[3971] chan_dahdi.c: MFC/R2 protocol error on chan 1: Invalid Multi Frequency Tone
    [Nov 12 18:49:27] DEBUG[3971] chan_dahdi.c: disconnecting MFC/R2 call on chan 1
    [Nov 12 18:49:27] ERROR[3971] chan_dahdi.c: Chan 1 - Cannot disconnect call when we dont have a call to disconnect
    [Nov 12 18:49:27] VERBOSE[3971] logger.c: -- Hungup 'DAHDI/1-1'
     

Share This Page