probleme synchronisation T2

Discussion in 'Elastix 2.x' started by segadiarrah, Oct 15, 2009.

  1. segadiarrah

    Joined:
    Jun 18, 2009
    Messages:
    16
    Likes Received:
    0
    bonjour,

    je dispose de 2 T2 et d'une carte digium TE410P (2ports). le problème est que la carte ne synchronise pas avec le boitier livré par l'opérateur. le câblage est correct (1245) et l'alarme est jaune rouge sur le span1 et jaune rouge en recovering sur le span 2.

    voici le fichier system.conf

    # Dahdi Configuration File
    #
    # This file is parsed by the Dahdi Configurator, dahdi_cfg
    #
    # Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER) HDB3/CCS YELLOW RED
    span=1,1,0,ccs,hdb3
    # termtype: te
    bchan=1-15,17-31
    dchan=16
    echocanceller=oslec,1-15,17-31

    # Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" HDB3/CCS YELLOW RED
    span=2,2,0,ccs,hdb3
    # termtype: te
    bchan=32-46,48-62
    dchan=47
    echocanceller=oslec,32-46,48-62

    # Global data

    loadzone = us
    defaultzone = us
    ~
    __________________________________________________ ___

    j'ai deja essayé :

    span=2,0,0,ccs,hdb3
    span=1,0,0,ccs,hdb3
    résultat : les alarmes deviennent rouges

    aussi
    pan=2,2,0,ccs,hdb3
    span=1,2,0,ccs,hdb3
    résultat : les alarmes sont rouges

    loadzone = fr
    defaultzone = fr
    Aucun effet
     
  2. danardf

    Joined:
    Dec 3, 2007
    Messages:
    8,069
    Likes Received:
    12
    Je ne suis pas spécialiste des cartes Digium (ou autre) T2 / TO.
    Mais il me semble bien qu'un T2 à 2 canaux D et non 1. (Soit: 30B à 64K + 2D à 64k). ;)
    Là entre autre, il y a 1 canal D en 16 et le 32?

    Le termtype: TE me semble t-il.
    Il faudra mettre le type de protocole (VN / EuroISDN), mais ou..?
     
  3. danardf

    Joined:
    Dec 3, 2007
    Messages:
    8,069
    Likes Received:
    12
  4. echelon75

    Joined:
    Dec 27, 2009
    Messages:
    75
    Likes Received:
    0
    Bonjour,

    voici un tutorial que je prepare, ne pas l'utiliser comme reference pour l'instant !
    La conf est la suivante :
    Span1 vers T2 FT ------ Elastix ----- span2 vers omnipx
    En gros il y avait un omnipcx avec un T2 FT et le serveur Elastix est maintenant entre les 2
    Normalement la bonne conf est SPAN1 en esclave/TE (FT donne la synchro) et span2 en maitre/NT (Elastix donne la synchro au PABX

    ENCORE UNE FOIS NE PAS PRENDRE LES INFORMATIONS CI DESSOUS COMME REFERENCE CAR J'AIS ENCORE DES PROBLèME de CONF ENTRE ELASTIX ET L'OMNIPCX

    [root@xxxxxxx]# vi /etc/asterisk/dahdi-channels.conf
    ; Autogenerated by /usr/sbin/dahdi_genconf on Sat Jul 10 13:30:36 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/CRC4 RED
    context=from-pstn
    ;switchtype = national
    switchtype = euroisdn
    pridialplan = unknown
    prilocaldialplan = unknown
    group=1
    echocancel=yes
    signalling = pri_cpe
    channel => 1-15,17-31
    pridialplan=local
    callprogress=yes

    context=from-pstn
    ;switchtype = national
    switchtype = euroisdn
    pridialplan = unknown
    prilocaldialplan = unknown
    group=2
    echocancel=yes
    signalling = pri_net
    channel => 32-46,48-62
    pridialplan=local
    callprogress=yes


    [root@ ~]# vi /etc/dahdi/system.conf
    # Autogenerated by /usr/sbin/dahdi_genconf on Sat Jul 10 13:30:36 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/CRC4 RED

    span=1,0,0,ccs,hdb3
    bchan=1-15,17-31
    dchan=16
    loadzone=fr
    defaultzone=fr

    span=2,1,0,ccs,hdb3
    bchan=32-46,48-62
    dchan=47
    loadzone=fr
    defaultzone=fr


    Cablage du T2/E1 a realiser :
    1-5
    2-4
    4-2
    5-1

    Quelques commandes pour debugger :
    Dans les exemples ci-après le T2 span=1 va sur un T2 FT en 15 canaux
    Le second T2 span=2 va vers un PABX Alcatel
    T2 FT -------- (span1)Elastix(span2) -------- T2 omnipcx
    C'est juste pour faire remarquer dans les commandes de degug qu'il manque les canaux de 17 A 31 que vous avez plus haut dans les confs

    [root@~]# /etc/init.d/dahdi start
    Loading DAHDI hardware modules:
    wct4xxp: [ OK ]
    wcte12xp: [ OK ]
    wct1xxp: [ OK ]
    wcte11xp: [ OK ]
    wctdm24xxp: [ OK ]
    wcfxo: [ OK ]
    wctdm: [ OK ]
    wcb4xxp: [ OK ]
    wctc4xxp: [ OK ]
    xpp_usb: [ OK ]
    opvxa1200: [ OK ]
    ystdm8xx: [ OK ]
    ystdm16xx: [ OK ]
    ap400: [ OK ]
    dahdi_dynamic_eth: [ OK ]
    dahdi_dynamic_ethmf: [ OK ]
    ax1600p: [ OK ]
    rxt1: [ OK ]
    r1t1: [ OK ]
    rcbfx: [ OK ]
    opvxd115: [ OK ]

    Running dahdi_cfg: [ OK ]

    Si après cette commande vous avez des erreurs il faudra verifier vos fichiers de conf et relancer la commande.

    Si la commande DAHDI ne marche pas sous le serveur asterisk c'est que vous devez avoir une erreur dans les fichiers de conf. Donc il suffira de corriger et de refaire '/etc/init.d/dahdi start' et sous asterisk un 'restart gracefully'

    ____________________________
    *CLI> dahdi restart
    Destroying channels and reloading DAHDI configuration.
    == Unregistered channel -2
    == Unregistered channel 1
    == Unregistered channel 2
    == Unregistered channel 3
    == Unregistered channel 4
    == Unregistered channel 5
    == Unregistered channel 6
    == Unregistered channel 7
    == Unregistered channel 8
    == Unregistered channel 9
    == Unregistered channel 10
    == Unregistered channel 11
    == Unregistered channel 12
    == Unregistered channel 13
    == Unregistered channel 14
    == Unregistered channel 15
    == Unregistered channel 17
    == Unregistered channel 18
    == Unregistered channel 19
    == Unregistered channel 20
    == Unregistered channel 21
    == Unregistered channel 22
    == Unregistered channel 23
    == Unregistered channel 24
    == Unregistered channel 25
    == Unregistered channel 26
    == Unregistered channel 27
    == Unregistered channel 28
    == Unregistered channel 29
    == Unregistered channel 30
    == Unregistered channel 31
    == Unregistered channel 32
    == Unregistered channel 33
    == Unregistered channel 34
    == Unregistered channel 35
    == Unregistered channel 36
    == Unregistered channel 37
    == Unregistered channel 38
    == Unregistered channel 39
    == Unregistered channel 40
    == Unregistered channel 41
    == Unregistered channel 42
    == Unregistered channel 43
    == Unregistered channel 44
    == Unregistered channel 45
    == Unregistered channel 46
    == Unregistered channel 48
    == Unregistered channel 49
    == Unregistered channel 50
    == Unregistered channel 51
    == Unregistered channel 52
    == Unregistered channel 53
    == Unregistered channel 54
    == Unregistered channel 55
    == Unregistered channel 56
    == Unregistered channel 57
    == Unregistered channel 58
    == Unregistered channel 59
    == Unregistered channel 60
    == Unregistered channel 61
    == Unregistered channel 62
    == Parsing '/etc/asterisk/chan_dahdi.conf': Found
    == Parsing '/etc/asterisk/dahdi-channels.conf': Found
    == Parsing '/etc/asterisk/chan_dahdi_additional.conf': Found
    -- Reconfigured channel 1, ISDN PRI signalling
    -- Reconfigured channel 2, ISDN PRI signalling
    -- Reconfigured channel 3, ISDN PRI signalling
    -- Reconfigured channel 4, ISDN PRI signalling
    -- Reconfigured channel 5, ISDN PRI signalling
    -- Reconfigured channel 6, ISDN PRI signalling
    -- Reconfigured channel 7, ISDN PRI signalling
    -- Reconfigured channel 8, ISDN PRI signalling
    -- Reconfigured channel 9, ISDN PRI signalling
    -- Reconfigured channel 10, ISDN PRI signalling
    -- Reconfigured channel 11, ISDN PRI signalling
    -- Reconfigured channel 12, ISDN PRI signalling
    -- Reconfigured channel 13, ISDN PRI signalling
    -- Reconfigured channel 14, ISDN PRI signalling
    -- Reconfigured channel 15, ISDN PRI signalling
    -- Reconfigured channel 32, ISDN PRI signalling
    -- Reconfigured channel 33, ISDN PRI signalling
    -- Reconfigured channel 34, ISDN PRI signalling
    -- Reconfigured channel 35, ISDN PRI signalling
    -- Reconfigured channel 36, ISDN PRI signalling
    -- Reconfigured channel 37, ISDN PRI signalling
    -- Reconfigured channel 38, ISDN PRI signalling
    -- Reconfigured channel 39, ISDN PRI signalling
    -- Reconfigured channel 40, ISDN PRI signalling
    -- Reconfigured channel 41, ISDN PRI signalling
    -- Reconfigured channel 42, ISDN PRI signalling
    -- Reconfigured channel 43, ISDN PRI signalling
    -- Reconfigured channel 44, ISDN PRI signalling
    -- Reconfigured channel 45, ISDN PRI signalling
    -- Reconfigured channel 46, ISDN PRI signalling
    -- Reconfigured channel 48, ISDN PRI signalling
    -- Reconfigured channel 49, ISDN PRI signalling
    -- Reconfigured channel 50, ISDN PRI signalling
    -- Reconfigured channel 51, ISDN PRI signalling
    -- Reconfigured channel 52, ISDN PRI signalling
    -- Reconfigured channel 53, ISDN PRI signalling
    -- Reconfigured channel 54, ISDN PRI signalling
    -- Reconfigured channel 55, ISDN PRI signalling
    -- Reconfigured channel 56, ISDN PRI signalling
    -- Reconfigured channel 57, ISDN PRI signalling
    -- Reconfigured channel 58, ISDN PRI signalling
    -- Reconfigured channel 59, ISDN PRI signalling
    -- Reconfigured channel 60, ISDN PRI signalling
    -- Reconfigured channel 61, ISDN PRI signalling
    -- Reconfigured channel 62, ISDN PRI signalling
    -- Automatically generated pseudo channel
    == Parsing '/etc/asterisk/users.conf': Found
    == Starting D-Channel on span 1
    == Starting D-Channel on span 2
    == Primary D-Channel on span 1 up
    == Primary D-Channel on span 2 up

    ______________________________________
    *CLI> dahdi show status
    Description Alarms IRQ bpviol CRC4
    T2XXP (PCI) Card 0 Span 1 OK 0 0 0
    T2XXP (PCI) Card 0 Span 2 OK 0 0 0

    ________________________________________
    *CLI> dahdi show channels
    Chan Extension Context Language MOH Interpret
    pseudo default default
    1 from-pstn fr default
    2 from-pstn fr default
    3 from-pstn fr default
    4 from-pstn fr default
    5 from-pstn fr default
    6 from-pstn fr default
    7 from-pstn fr default
    8 from-pstn fr default
    9 from-pstn fr default
    10 from-pstn fr default
    11 from-pstn fr default
    12 from-pstn fr default
    13 from-pstn fr default
    14 from-pstn fr default
    15 from-pstn fr default
    32 from-pstn fr default
    33 from-pstn fr default
    34 from-pstn fr default
    35 from-pstn fr default
    36 from-pstn fr default
    37 from-pstn fr default
    38 from-pstn fr default
    39 from-pstn fr default
    40 from-pstn fr default
    41 from-pstn fr default
    42 from-pstn fr default
    43 from-pstn fr default
    44 from-pstn fr default
    45 from-pstn fr default
    46 from-pstn fr default
    48 from-pstn fr default
    49 from-pstn fr default
    50 from-pstn fr default
    51 from-pstn fr default
    52 from-pstn fr default
    53 from-pstn fr default
    54 from-pstn fr default
    55 from-pstn fr default
    56 from-pstn fr default
    57 from-pstn fr default
    58 from-pstn fr default
    59 from-pstn fr default
    60 from-pstn fr default
    61 from-pstn fr default
    62 from-pstn fr default

    ______________________________
    *CLI> pri show span 1
    Primary D-channel: 16
    Status: Provisioned, Up, Active
    Switchtype: EuroISDN
    Type: CPE
    Overlap Dial: 0
    Logical Channel Mapping: 0
    Timer and counter settings:
    N200: 3
    N202: 3
    K: 7
    T200: 1000
    T202: 10000
    T203: 10000
    T303: 4000
    T305: 30000
    T308: 4000
    T309: 6000
    T313: 4000
    T-HOLD: 4000
    T-RETRIEVE: 4000
    T-RESPONSE: 4000
    Overlap Recv: No

    ______________________________
    Trace sous le serveur asterisk
    Je telephone du poste 2005 avec une OUTBOUND route 905 qui pointe sur g1 (group=1) vers mon numero de GSM le 062052xxxx
    Le clip du trunk g1 ou ZAP/g1 est "testE" <55644xxxx>", vous remarquerez que le clip numero est sous la forme 55644xxxx et pas 055644xxxx sinon sur appel sortant le distant recevra un 0055644xxxx

    -- Executing [905062052xxxx@from-internal:1] Macro("SIP/2005-00000043", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/2005-00000043", "AMPUSER=2005") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2005-00000043", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2005-00000043", "1|Set|REALCALLERIDNUM=2005") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/2005-00000043", "AMPUSER=2005") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/2005-00000043", "AMPUSERCIDNAME=Poste 2005") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2005-00000043", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/2005-00000043", "AMPUSERCID=2005") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/2005-00000043", "CALLERID(all)="Poste 2005" <2005>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2005-00000043", "1|Set|CHANNEL(language)=fr") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2005-00000043", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/2005-00000043", "Using CallerID "Poste 2005" <2005>") in new stack
    -- Executing [905062052xxxx@from-internal:2] Set("SIP/2005-00000043", "_NODEST=") in new stack
    -- Executing [905062052xxxx@from-internal:3] Macro("SIP/2005-00000043", "record-enable|2005|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/2005-00000043", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/2005-00000043", "recordingcheck|20100724-161343|1279980823.77") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    recordingcheck|20100724-161343|1279980823.77: Outbound recording enabled.
    recordingcheck|20100724-161343|1279980823.77: CALLFILENAME=OUT2005-20100724-161343-1279980823.77
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:999] MixMonitor("SIP/2005-00000043", "OUT2005-20100724-161343-1279980823.77.gsm||") in new stack
    == Begin MixMonitor Recording SIP/2005-00000043
    -- Executing [905062052xxxx@from-internal:4] Macro("SIP/2005-00000043", "dialout-trunk|1|062052xxxx||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/2005-00000043", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/2005-00000043", "0?sub-pincheck|s|1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2005-00000043", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/2005-00000043", "DIAL_NUMBER=062052xxxx") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/2005-00000043", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/2005-00000043", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2005-00000043", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/2005-00000043", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2005-00000043", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/2005-00000043", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/2005-00000043", "outbound-callerid|1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/2005-00000043", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/2005-00000043", "0|Set|REALCALLERIDNUM=2005") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/2005-00000043", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/2005-00000043", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/2005-00000043", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/2005-00000043", "TRUNKOUTCID="testE" <55644xxxx>") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/2005-00000043", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/2005-00000043", "1|Set|CALLERID(all)=testE <55644xxxx>") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/2005-00000043", "0|Set|CALLERID(all)=") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/2005-00000043", "0|SetCallerPres|prohib_passed_screen") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/2005-00000043", "0|AGI|fixlocalprefix") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/2005-00000043", "OUTNUM=062052xxxx") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/2005-00000043", "custom=DAHDI/g1") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/2005-00000043", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/2005-00000043", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/2005-00000043", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/2005-00000043", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2005-00000043", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/2005-00000043", "DAHDI/g1/062052xxxx|300|") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called g1/062052xxxx
    -- DAHDI/2-1 is proceeding passing it to SIP/2005-00000043
    test*CLI>
    -- DAHDI/2-1 is ringing <<<<<<<<<<< sonnerie sur le distant
    test*CLI>
    test*CLI>
    test*CLI>
    test*CLI>
    test*CLI>
    test*CLI>
    test*CLI>
    test*CLI>
    -- DAHDI/2-1 answered SIP/2005-00000043 <<<<<<<<<<<< Etablissement de la commnication
    test*CLI>
    test*CLI>
    test*CLI>
    test*CLI>
    test*CLI>
    -- Executing [h@macro-dialout-trunk:1] Macro("SIP/2005-00000043", "hangupcall|") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2005-00000043", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/2005-00000043", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/2005-00000043", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("SIP/2005-00000043", "") in new stack
    == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/2005-00000043' in macro 'hangupcall'
    == Spawn h extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/2005-00000043'
    -- Hungup 'DAHDI/2-1'
    == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/2005-00000043' in macro 'dialout-trunk'
    == Spawn extension (from-internal, 905062052xxxx, 4) exited non-zero on 'SIP/2005-00000043'
    == MixMonitor close filestream
    == End MixMonitor Recording SIP/2005-00000043

    Je complete prochainement avec la version definitive

    Richard
     

Share This Page