Problema con Outbound Caller ID

Discussion in 'Elastix 2.x' started by jdannym, Dec 2, 2010.

  1. jdannym

    Joined:
    Mar 17, 2010
    Messages:
    14
    Likes Received:
    0
    Hola, otra vez molestando por aquí, mi problema es el siguiente:
    Pertenezco a Ecuador, CNT me ha asignado las líneas telefónicas desde 2xxxx00 hasta 2xxxx99, las manejo mediante un E1 PRI, quiero destinar las líneas desde 2xxxx24 hasta 2xxxx30 para el departamento técnico, de tal forma que cuando una llamada entrante vaya a esas líneas se direccione al departamento técnico, de igual manera cuando una persona del departamento técnico realice una llamada saliente esta llamada salga con el ID perteneciente a las líneas asignadas para dicho departamento.

    La parte de las llamadas entrantes la solucione creando una ruta de entrada con DID _2xxxx[24-30]. Pero la parte de las llamadas salientes aun no lo soluciono.

    Para las llamadas salientes siempre que llamo sale el número 2xxxx00 que es el número principal. He generado un grupo g11 en dahdi-cahnnels.conf para así poder crear una troncal de salida y he configurado el Outbound Caller ID en la troncal asociada al grupo g11, además cree una ruta de salida que ocupe dicha troncal también configurando el campo Route CID que deseo, pero no funciona; también he probado cambiando el CID num Alias también a nivel de las extensiones pero sigo obteniendo el
    número 2xxxx00 cuando llamo.

    Ya pregunte con CNT y me dicen que ellos si permiten que asigne un CID.

    Les rogaría si alguien me puede ayudar.

    Los datos de mi central son:

    elastix 2.0.0 release 53
    asterisk 1.6.2.13 release 0
    freePBX 2.7.0 release 9
    tarjeta E1 OpenVOX D110P

    ;*****************************************************************************
    ;*****************************************************************************
    El contenido del archivo
    dahdi-channels.conf es:
    ; Autogenerated by /usr/sbin/dahdi_genconf on Wed Dec 1 17:50:39 2010
    ; If you edit this file and execute /usr/sbin/dahdi_genconf again,
    ; your manual changes will be LOST.
    ; Dahdi Channels Configurations (chan_dahdi.conf)
    ;
    ; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
    ; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
    ;

    ; Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0" (MASTER) HDB3/CCS
    group=0
    context=from-pstn
    switchtype= euroisdn
    signalling= pri_cpe
    channel => 1-15,17-27
    context = default

    group=11
    context=from-pstn
    switchtype= euroisdn
    signalling= pri_cpe
    channel => 28-31
    context = default


    ;*****************************************************************************
    ;*****************************************************************************
    El contenido del archivo
    chan-dahdi.conf es:
    ; Auto-generated by /usr/sbin/hardware_detector
    [trunkgroups]

    [channels]
    context=from-pstn
    signalling=fxs_ks
    rxwink=300 ; Atlas seems to use long (250ms) winks
    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
    callgroup=1
    pickupgroup=1


    ;Uncomment these lines if you have problems with the disconection of your analog lines
    ;busydetect=yes
    ;busycount=3


    immediate=no

    #include dahdi-channels.conf
    #include chan_dahdi_additional.conf


    ;*****************************************************************************
    El archivo
    chan_dahdi_additional.conf se encuentra vacio.


    ;*****************************************************************************
    ;*****************************************************************************
    El contenido del archivo
    /etc/dahdi/system.conf
    # Autogenerated by /usr/sbin/dahdi_genconf on Wed Dec 1 17:50:39 2010
    # If you edit this file and execute /usr/sbin/dahdi_genconf again,
    # your manual changes will be LOST.
    # Dahdi Configuration File
    #
    # This file is parsed by the Dahdi Configurator, dahdi_cfg
    #
    # Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0" (MASTER) HDB3/CCS
    span=1,1,0,ccs,hdb3
    # termtype: te
    bchan=1-15,17-31
    dchan=16
    echocanceller=oslec,1-15,17-31

    # Global data

    loadzone = us
    defaultzone = us


    ;*****************************************************************************
    ;*****************************************************************************
    La salida que el
    CLI de asterisk me me da cuando genero una llamada
    desde la extensión 303 hascia el numero celular 084465110 es:

    Asterisk 1.6.2.13, Copyright (C) 1999 - 2010 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.
    =========================================================================
    Connected to Asterisk 1.6.2.13 currently running on IPservice (pid = 8281)
    Verbosity is at least 3
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Executing [084465110@from-internal:1] Macro("SIP/303-00000002", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/303-00000002", "AMPUSER=303") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/303-00000002", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/303-00000002", "1?Set(REALCALLERIDNUM=303)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/303-00000002", "AMPUSER=303") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/303-00000002", "AMPUSERCIDNAME=Contabilidad") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/303-00000002", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/303-00000002", "AMPUSERCID=303") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/303-00000002", "CALLERID(all)="Contabilidad" <303>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/303-00000002", "1?Set(CHANNEL(language)=es)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/303-00000002", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/303-00000002", "Using CallerID "Contabilidad" <303>") in new stack
    -- Executing [084465110@from-internal:2] Set("SIP/303-00000002", "_NODEST=") in new stack
    -- Executing [084465110@from-internal:3] Macro("SIP/303-00000002", "record-enable,303,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/303-00000002", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/303-00000002", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/303-00000002", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/303-00000002", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("SIP/303-00000002", "1?MacroExit()") in new stack
    -- Executing [084465110@from-internal:4] Macro("SIP/303-00000002", "dialout-trunk,3,084465110,,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/303-00000002", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/303-00000002", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/303-00000002", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/303-00000002", "DIAL_NUMBER=084465110") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/303-00000002", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/303-00000002", "OUTBOUND_GROUP=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/303-00000002", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/303-00000002", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/303-00000002", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/303-00000002", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/303-00000002", "outbound-callerid,3") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/303-00000002", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/303-00000002", "0?Set(REALCALLERIDNUM=303)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/303-00000002", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/303-00000002", "USEROUTCID=<2998804>") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/303-00000002", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/303-00000002", "TRUNKOUTCID="salida" <022998817>") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/303-00000002", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/303-00000002", "1?Set(CALLERID(all)=salida <022998817>)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/303-00000002", "1?Set(CALLERID(all)=<2998804>)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/303-00000002", "1?Set(CALLERID(all)="salida" <022998817>)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/303-00000002", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/303-00000002", "0?AGI(fixlocalprefix)") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/303-00000002", "OUTNUM=084465110") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/303-00000002", "custom=DAHDI/g11") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/303-00000002", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/303-00000002", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/303-00000002", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/303-00000002", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/303-00000002", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/303-00000002", "DAHDI/g11/084465110,300,") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called g11/084465110
    -- DAHDI/28-1 is proceeding passing it to SIP/303-00000002
    -- DAHDI/28-1 is ringing


    Les agradezco de antemano su ayuda.
     
  2. Mike056056

    Joined:
    Aug 25, 2011
    Messages:
    6
    Likes Received:
    0
    Saludos!

    Encontraste una solucion?

    Yo tengo el mismo problema, si lo soluciono te aviso.

    Gracias
     
  3. dariohimo

    Joined:
    Jun 12, 2007
    Messages:
    297
    Likes Received:
    1
    en pbx > trunk > Outbound Caller ID

    ahi colocas el numero que necesitas y revisas.
     
  4. Mike056056

    Joined:
    Aug 25, 2011
    Messages:
    6
    Likes Received:
    0
    OK,

    ya lo solucione.

    El problema era mi Telco, requería que le enviara el caller ID como subscriber o con el numero 1 antes del numero telefónico.

    Yo envio un caller ID por cada extension.

    Gracias
     

Share This Page