Bonsoir les noctambules !

Voilà mon problème. J'ai 2 TNR FT avec 3 T0 en tout. Le 1er port de ma B410P est branché sur le 1er TNR. Les 2 ports suivants sur le TNR 2 (ajouté il y a un mois). Les canaux 1 et 2 recoivent bien les appels mais pour des raisons que j'ignorent, parfois, les appels arrivent sur les canaux 4 et 7 en même temps donc forcément, aucun appel ne passe. Et la fois suivante, tout arrive sur le 1 donc tout refonctionne normalement.

Pour info, j'ai un message en place à partir de 17h30 qui dit que la société est fermée, etc. Si je mets le signal en BRI_CPE et que l'appel arrive sur le 4 et 7, le son du message est très haché (ce qui me parait logique). Si je met du BRI_CPE_PTMP, le message se déclenche mais je n'entends rien. Et même si je raccroche, le message passe en boucle et occupe les lignes. Si je ne garde qu'un seul port d'actif, aucun pb. Voici la CLI lors d'un appel entrant :

Code:
-- Accepting call from 'XXXXXXXXX' to '2000' on channel 0/1, span 2
    -- Accepting call from 'XXXXXXXXX' to '2000' on channel 0/1, span 3
    -- Executing [2000@from-pstn:1] Set("DAHDI/4-1", "__FROM_DID=2000") in new stack
    -- Executing [2000@from-pstn:2] ExecIf("DAHDI/4-1", "1 ?Set(CALLERID(name)=XXXXXXXXX)") in new stack
    -- Executing [2000@from-pstn:3] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed") in new stack
    -- Executing [2000@from-pstn:4] Set("DAHDI/4-1", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [2000@from-pstn:5] Goto("DAHDI/4-1", "timeconditions,5,1") in new stack
    -- Goto (timeconditions,5,1)
    -- Executing [5@timeconditions:1] GotoIfTime("DAHDI/4-1", "09:00-12:45,mon-fri,*,*?from-did-direct,1000,1") in new stack
    -- Executing [5@timeconditions:2] Goto("DAHDI/4-1", "timeconditions,4,1") in new stack
    -- Goto (timeconditions,4,1)
    -- Executing [4@timeconditions:1] GotoIfTime("DAHDI/4-1", "13:45-17:45,mon-fri,*,*?from-did-direct,1000,1") in new stack
    -- Executing [4@timeconditions:2] Goto("DAHDI/4-1", "ivr-3,s,1") in new stack
    -- Goto (ivr-3,s,1)
    -- Executing [s@ivr-3:1] Set("DAHDI/4-1", "MSG=custom/fermetureRTC2") in new stack
    -- Executing [s@ivr-3:2] Set("DAHDI/4-1", "LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-3:3] Set("DAHDI/4-1", "__DIR-CONTEXT=") in new stack
    -- Executing [s@ivr-3:4] Set("DAHDI/4-1", "_IVR_CONTEXT_ivr-3=") in new stack
    -- Executing [s@ivr-3:5] Set("DAHDI/4-1", "_IVR_CONTEXT=ivr-3") in new stack
    -- Executing [s@ivr-3:6] GotoIf("DAHDI/4-1", "0?begin") in new stack
    -- Executing [s@ivr-3:7] Answer("DAHDI/4-1", "") in new stack
    -- Executing [s@ivr-3:8] Wait("DAHDI/4-1", "1") in new stack
    -- Executing [2000@from-pstn:1] Set("DAHDI/7-1", "__FROM_DID=2000") in new stack
    -- Executing [2000@from-pstn:2] ExecIf("DAHDI/7-1", "1 ?Set(CALLERID(name)=XXXXXXXXX)") in new stack
    -- Executing [2000@from-pstn:3] Set("DAHDI/7-1", "__CALLINGPRES_SV=allowed") in new stack
    -- Executing [2000@from-pstn:4] Set("DAHDI/7-1", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [2000@from-pstn:5] Goto("DAHDI/7-1", "timeconditions,5,1") in new stack
    -- Goto (timeconditions,5,1)
    -- Executing [5@timeconditions:1] GotoIfTime("DAHDI/7-1", "09:00-12:45,mon-fri,*,*?from-did-direct,1000,1") in new stack
    -- Executing [5@timeconditions:2] Goto("DAHDI/7-1", "timeconditions,4,1") in new stack
    -- Goto (timeconditions,4,1)
    -- Executing [4@timeconditions:1] GotoIfTime("DAHDI/7-1", "13:45-17:45,mon-fri,*,*?from-did-direct,1000,1") in new stack
    -- Executing [4@timeconditions:2] Goto("DAHDI/7-1", "ivr-3,s,1") in new stack
    -- Goto (ivr-3,s,1)
    -- Executing [s@ivr-3:1] Set("DAHDI/7-1", "MSG=custom/fermetureRTC2") in new stack
    -- Executing [s@ivr-3:2] Set("DAHDI/7-1", "LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-3:3] Set("DAHDI/7-1", "__DIR-CONTEXT=") in new stack
    -- Executing [s@ivr-3:4] Set("DAHDI/7-1", "_IVR_CONTEXT_ivr-3=") in new stack
    -- Executing [s@ivr-3:5] Set("DAHDI/7-1", "_IVR_CONTEXT=ivr-3") in new stack
    -- Executing [s@ivr-3:6] GotoIf("DAHDI/7-1", "0?begin") in new stack
    -- Executing [s@ivr-3:7] Answer("DAHDI/7-1", "") in new stack
    -- Executing [s@ivr-3:8] Wait("DAHDI/7-1", "1") in new stack
    -- Executing [s@ivr-3:9] Set("DAHDI/4-1", "TIMEOUT(digit)=3") in new stack
    -- Digit timeout set to 3.000
    -- Executing [s@ivr-3:10] Set("DAHDI/4-1", "TIMEOUT(response)=5") in new stack
    -- Response timeout set to 5.000
    -- Executing [s@ivr-3:11] Set("DAHDI/4-1", "__IVR_RETVM=") in new stack
    -- Executing [s@ivr-3:12] ExecIf("DAHDI/4-1", "1?Background(custom/fermetureRTC2)") in new stack
    -- <DAHDI/4-1> Playing 'custom/fermetureRTC2.slin' (language 'en')
    -- Executing [s@ivr-3:9] Set("DAHDI/7-1", "TIMEOUT(digit)=3") in new stack
    -- Digit timeout set to 3.000
    -- Executing [s@ivr-3:10] Set("DAHDI/7-1", "TIMEOUT(response)=5") in new stack
    -- Response timeout set to 5.000
    -- Executing [s@ivr-3:11] Set("DAHDI/7-1", "__IVR_RETVM=") in new stack
    -- Executing [s@ivr-3:12] ExecIf("DAHDI/7-1", "1?Background(custom/fermetureRTC2)") in new stack
    -- <DAHDI/7-1> Playing 'custom/fermetureRTC2.slin' (language 'en')
Ensuite system.conf :

Code:
# Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" AMI/CCS RED
span=1,1,0,ccs,ami
bchan=1-2
hardhdlc=3
echocanceller=mg2,1-2

# Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" (MASTER) AMI/CCS RED
span=2,2,0,ccs,ami
bchan=4-5
hardhdlc=6
echocanceller=mg2,4-5

# Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3" AMI/CCS RED
span=3,3,0,ccs,ami
bchan=7-8
hardhdlc=9
echocanceller=mg2,7-8

# Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" AMI/CCS RED
span=4,4,0,ccs,ami
bchan=10-11
hardhdlc=12
echocanceller=mg2,10-11

# Global data

loadzone        = fr
defaultzone     = fr
Maintenant le chan_dahdi.conf :

Code:
; Copied from DAHDI Module of FreePBX

[general]

#include chan_dahdi_general.conf

[channels]
#include dahdi-channels.conf
; include dahdi groups defined by DAHDI module of FreePBX
#include chan_dahdi_groups.conf

; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf
echocancel=yes
channel=>1,2,4,5,7,8,10,11
signalling=bri_cpe_ptmp
switchtype=euroisdn
group=0
context=from-pstn
Et enfin dahdi_channels.conf

Code:
; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" AMI/CCS RED
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 1-2
context = default
group = 63

; Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" (MASTER) AMI/CCS RED
group=0,12
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 4-5
context = default
group = 63

; Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3" AMI/CCS RED
group=0,13
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 7-8
context = default
group = 63
J'utilise Freepbx mais ca ne doit pas jouer dans notre cas. J'ai surement du rater une option toute bête mais je n'ai plus trop les yeux en face des trous ! Si quelqu'un a une idée.. Merci !