BRI con Telefónica

Discussion in 'Elastix 2.x' started by JoseVelasco, May 11, 2008.

  1. JoseVelasco

    Joined:
    Feb 25, 2008
    Messages:
    111
    Likes Received:
    0
    Hola chicos, tengo problemas para hacer funcionar los BRI con misdn.

    He hecho la configuración correctamente con misdn-init, el resultado con elastix corriendo es:

    misdnportinfo:
    [root@elastix ~]# misdnportinfo

    Port 1: TE-mode BRI S/T interface line (for phone lines)
    -> Interface is Poin-To-Point.
    -> Protocol: DSS1 (Euro ISDN)
    -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
    -> childcnt: 2
    * Port NOT useable for PBX (maybe there is already a PBX running?)
    --------
    Port 2: TE-mode BRI S/T interface line (for phone lines)
    -> Interface is Poin-To-Point.
    -> Protocol: DSS1 (Euro ISDN)
    -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
    -> childcnt: 2
    * Port NOT useable for PBX (maybe there is already a PBX running?)
    --------
    Port 3: TE-mode BRI S/T interface line (for phone lines)
    -> Protocol: DSS1 (Euro ISDN)
    -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
    -> childcnt: 2
    * Port NOT useable for PBX (maybe there is already a PBX running?)
    --------
    Port 4: TE-mode BRI S/T interface line (for phone lines)
    -> Protocol: DSS1 (Euro ISDN)
    -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
    -> childcnt: 2
    * Port NOT useable for PBX (maybe there is already a PBX running?)
    --------

    mISDN_close: fid(3) isize(131072) inbuf(0x80cf060) irp(0x80cf060) iend(0x80cf060)
    ----------------------------------------

    Al parece todo está okey, si ejecuto 'misdn show stacks', obtengo:
    BEGIN STACK_LIST:
    * Port 1 Type TE Prot. PTP L2Link UP L1Link:UP Blocked:0 Debug:10
    * Port 2 Type TE Prot. PTP L2Link UP L1Link:UP Blocked:0 Debug:10
    * Port 3 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:10
    * Port 4 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0 Debug:10

    He puesto el debug a 10 para ver que sucede, si llamo por teléfono al número de la centralita:

    P[ 2] handle_frm: frm->addr:42000203 frm->prim:3f082
    P[ 2] --> lib: NEW_CR Ind with l3id:40005 on this port.
    P[ 2] --> new_process: New L3Id: 40005
    P[ 2] handle_frm: frm->addr:42000203 frm->prim:30582
    P[ 2] set_channel: bc->channel:0 channel:1
    P[ 2] $$$ find_chan: No channel found for oad:655052*** dad:968898***
    P[ 0] get_index: event not found!
    P[ 2] I IND :NEW_CHANNEL oad:655052*** dad:968898*** pid:5 state:none
    P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
    P[ 2] --> info_dad: onumplan:0 dnumplan:2 rnumplan: cpnnumplan:0
    P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
    P[ 2] --> screen:0 --> pres:0
    P[ 2] --> addr:0 l3id:40005 b_stid:0 layer_id:50010280
    P[ 2] --> facility:Fac_None out_facility:Fac_None
    P[ 2] --> urate:0 rate:16 mode:0 user1:0
    P[ 2] --> bc:860dee4 h:0 sh:0
    P[ 2] --> bc_state:BCHAN_CLEANED
    P[ 0] get_index: event not found!
    P[ 2] Chan not existing at the moment bc->l3id:40005 bc:0x860dee4 event:NEW_CHANNEL port:2 channel:1
    P[ 2] NO USERUESRINFO
    P[ 2] find_free_chan: req_chan:1
    P[ 2] --> found chan (preselected): 1
    P[ 2] set_chan_in_stack: 1
    P[ 2] Idx:0 stack->cchan:0 in_use:1 Chan:1
    P[ 2] Idx:1 stack->cchan:0 in_use:0 Chan:2
    P[ 2] Idx:2 stack->cchan:0 in_use:0 Chan:3
    P[ 2] $$$ Setting up bc with stid :10010200
    P[ 2] setup_bc: with dsp
    P[ 2] --> Channel is 1
    P[ 2] --> TRANSPARENT Mode
    P[ 2] $$$ Bchan Activated addr 50010202
    P[ 2] BC_STATE_CHANGE: l3id:40005 from:BCHAN_CLEANED to:BCHAN_ACTIVATED
    P[ 2] lib Got Prim: Addr 42000203 prim 30582 dinfo 40005
    P[ 2] $$$ find_chan: No channel found for oad:655052*** dad:968898***
    P[ 2] I IND :SETUP oad:655052*** dad:968898*** pid:5 state:none
    P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
    P[ 2] --> info_dad: onumplan:0 dnumplan:2 rnumplan: cpnnumplan:0
    P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
    P[ 2] --> screen:0 --> pres:0
    P[ 2] --> addr:50010202 l3id:40005 b_stid:10010200 layer_id:50010280
    P[ 2] --> facility:Fac_None out_facility:Fac_None
    P[ 2] --> urate:0 rate:16 mode:0 user1:0
    P[ 2] --> bc:860dee4 h:0 sh:0
    P[ 2] --> bc_state:BCHAN_ACTIVATED
    P[ 2] $$$ find_chan: No channel found for oad:655052*** dad:968898***
    P[ 2] --> Bearer: Speech
    P[ 2] --> Codec: Alaw
    P[ 2] --> Bearer: Speech
    P[ 2] --> Codec: Alaw
    P[ 0] --> * NEW CHANNEL dad:968898*** oad:655052***
    P[ 2] read_config: Getting Config
    P[ 2] config_jb: Called
    P[ 2] --> * CallGrp: PickupGrp:
    P[ 2] --> CTON: Unknown
    P[ 2] --> EXPORT_PID: pid:5
    P[ 2] --> PRES: Restricted (0)
    P[ 2] --> SCREEN: Unscreened (0)
    P[ 2] * Queuing chan 0x864fd80
    P[ 2] CONTEXT:from-pstn
    P[ 2] SENDEVENT: stack->nt:0 stack->uperid:40000204
    P[ 2] I SEND:RELEASE oad:655052*** dad:0968898*** pid:5
    P[ 2] --> bc_state:BCHAN_ACTIVATED
    P[ 2] --> channel:1 mode:TE cause:16 ocause:1 rad: cad:
    P[ 2] --> info_dad: onumplan:0 dnumplan:2 rnumplan: cpnnumplan:0
    P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
    P[ 2] --> screen:0 --> pres:0
    P[ 2] --> addr:50010202 l3id:40005 b_stid:10010200 layer_id:50010280
    P[ 2] --> facility:Fac_None out_facility:Fac_None
    P[ 2] --> urate:0 rate:16 mode:0 user1:0
    P[ 2] --> bc:860dee4 h:0 sh:0
    P[ 2] Sending msg, prim:34d80 addr:41000204 dinfo:40005
    P[ 2] GOT SETUP OK
    P[ 2] Freeing Msg on prim:30582
    P[ 2] BCHAN: bchan ACT Confirm pid:5
    P[ 0] misdn_jb_empty: Wait...requested:79 p:864f8c0
    P[ 2] Transmitting 79 samples 2 misdn
    P[ 2] writing 79 bytes 2 asterisk
    P[ 0] misdn_jb_empty: Wait...requested:128 p:864f8c0
    P[ 2] Transmitting 128 samples 2 misdn
    P[ 2] writing 128 bytes 2 asterisk
    P[ 0] misdn_jb_empty: Wait...requested:128 p:864f8c0
    P[ 2] Transmitting 128 samples 2 misdn
    P[ 2] writing 128 bytes 2 asterisk
    P[ 0] misdn_jb_empty: Wait...requested:128 p:864f8c0
    P[ 2] Transmitting 128 samples 2 misdn
    P[ 2] writing 128 bytes 2 asterisk
    P[ 0] misdn_jb_empty: Wait...requested:128 p:864f8c0
    P[ 2] Transmitting 128 samples 2 misdn
    P[ 2] writing 128 bytes 2 asterisk
    P[ 0] misdn_jb_empty: Wait...requested:128 p:864f8c0
    P[ 2] Transmitting 128 samples 2 misdn
    P[ 2] writing 128 bytes 2 asterisk
    P[ 0] misdn_jb_empty: Wait...requested:128 p:864f8c0
    P[ 2] Transmitting 128 samples 2 misdn
    P[ 2] writing 128 bytes 2 asterisk
    P[ 2] handle_frm: frm->addr:42000203 frm->prim:35a82
    P[ 2] lib Got Prim: Addr 42000203 prim 35a82 dinfo 40005
    P[ 2] I IND :RELEASE_COMPLETE oad:655052415 dad:0968898420 pid:5 state:EXTCANTMATCH
    P[ 2] --> channel:1 mode:TE cause:16 ocause:1 rad: cad:
    P[ 2] --> info_dad: onumplan:0 dnumplan:2 rnumplan: cpnnumplan:0
    P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
    P[ 2] --> screen:0 --> pres:0
    P[ 2] --> addr:50010202 l3id:40005 b_stid:10010200 layer_id:50010280
    P[ 2] --> facility:Fac_None out_facility:Fac_None
    P[ 2] --> urate:0 rate:16 mode:0 user1:0
    P[ 2] --> bc:860dee4 h:0 sh:0
    P[ 2] --> bc_state:BCHAN_ACTIVATED
    P[ 2] hangup_chan called
    P[ 2] --> hangup
    P[ 2] * IND : HANGUP pid:5 ctx:from-pstn dad:0968898*** oad:655052*** State:EXTCANTMATCH
    P[ 2] --> l3id:40005
    P[ 2] --> cause:16
    P[ 2] --> out_cause:16
    P[ 2] --> state:EXTCANTMATCH
    P[ 2] --> Channel: mISDN/3-u3 hanguped new state:CLEANING
    P[ 2] release_chan: bc with l3id: 40005
    P[ 2] $$$ CLEANUP CALLED pid:5
    P[ 2] $$$ Cleaning up bc with stid :10010200 pid:5
    P[ 2] --> ec_disable
    P[ 2] Sending Control ECHOCAN_OFF
    P[ 2] ph_control: c1:2319 c2:0
    P[ 2] $$$ Bchan deActivated addr 50010202
    P[ 2] BC_STATE_CHANGE: l3id:40005 from:BCHAN_ACTIVATED to:BCHAN_RELEASE
    P[ 2] BC_STATE_CHANGE: l3id:40005 from:BCHAN_RELEASE to:BCHAN_CLEANED
    P[ 2] empty_chan_in_stack: 1
    P[ 2] Idx:0 stack->cchan:0 in_use:1 Chan:1
    P[ 2] Idx:1 stack->cchan:0 in_use:0 Chan:2
    P[ 2] Idx:2 stack->cchan:0 in_use:0 Chan:3
    P[ 2] Freeing Msg on prim:35a82
    P[ 2] handle_frm: frm->addr:42000203 frm->prim:3f182
    P[ 2] --> lib: RELEASE_CR Ind with l3id:40005
    P[ 2] --> lib: CLEANING UP l3id: 40005
    P[ 2] $$$ find_chan: No channel found for oad: dad:
    P[ 0] get_index: event not found!
    P[ 2] I IND :CLEAN_UP oad: dad: pid:5 state:none
    P[ 2] $$$ CLEANUP CALLED pid:5
    P[ 2] $$$ Already cleaned up bc with stid :0
    P[ 2] Idx:0 stack->cchan:0 in_use:0 Chan:1
    P[ 2] Idx:1 stack->cchan:0 in_use:0 Chan:2
    P[ 2] Idx:2 stack->cchan:0 in_use:0 Chan:3
    P[ 2] BCHAN: MGR_DELLAYER|CNF pid:5

    Eso aparece cuando llamo al telefono de la centralita y en el móvil se recibe un mensaje diciendo que "El telefono no existe..." se que el problema es de configuración, alguien me podría echar un cable ?

    Muchas gracias desde ya!!
     
  2. JoseVelasco

    Joined:
    Feb 25, 2008
    Messages:
    111
    Likes Received:
    0
    Bueno pues al parecer todo estaba más que correcto... el fallo venía de que había puesto en el fichero "extension.conf" language=es en un sitio no apropiado... lo he quitado y todo como la seda.

    Ya puedo enviar y recibir llamadas.

    Ciao y gracias.
     

Share This Page