PDA

Voir la version complète : Dahdi en outgoing



alternatiq
12/04/2012, 23h37
Bonsoir ou Bonjour,

J'ai un serveur asterisk qui s'est arreté comme une "merde" et qui ne réceptionne que les appels désormais ...

lorsque j'émets un appel j'ai ceci (assez classique selon me recherche)


Using SIP RTP CoS mark 5
-- Executing [0618xxxxxx@DLPN_solares:1] Macro("SIP/8100-00000000", "trunkdial-failover-0.3,DAHDI/g4/0618xxxxxx,,span_1,,0388xxxxxx" ) in new stack
-- Executing [s@macro-trunkdial-failover-0.3:1] GotoIf("SIP/8100-00000000", "0?1-fmsetcid,1") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:2] GotoIf("SIP/8100-00000000", "1?1-setgbobname,1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-setgbobname,1)
-- Executing [1-setgbobname@macro-trunkdial-failover-0.3:1] Set("SIP/8100-00000000", "CALLERID(name)=Solares Bauen") in new stack
-- Executing [1-setgbobname@macro-trunkdial-failover-0.3:2] Goto("SIP/8100-00000000", "s,3") in new stack
-- Goto (macro-trunkdial-failover-0.3,s,3)
-- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/8100-00000000", "CALLERID(num)=0388xxxxxx") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:4] Set("SIP/8100-00000000", "CALLERID(all)=0388xxxxxx") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:5] GotoIf("SIP/8100-00000000", "1?1-dial,1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
-- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/8100-00000000", "DAHDI/g4/0618xxxxxx") in new stack
[Apr 12 23:32:19] WARNING[2963]: channel.c:4324 ast_request: No channel type registered for 'DAHDI'
[Apr 12 23:32:19] WARNING[2963]: app_dial.c:1759 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 66 - Channel not implemented)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [1-dial@macro-trunkdial-failover-0.3:2] GotoIf("SIP/8100-00000000", "0 > 0 ?1-CHANUNAVAIL,1:1-out,1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-out,1)
-- Executing [1-out@macro-trunkdial-failover-0.3:1] Hangup("SIP/8100-00000000", "") in new stack
== Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited non-zero on 'SIP/8100-00000000' in macro 'trunkdial-failover-0.3'
== Spawn extension (DLPN_solares, 0618xxxxxx, 1) exited non-zero on 'SIP/8100-00000000'

En gros depuis un phone (Ext 8100) j'appelle un portable 0618xxxxxx

J'ai une carte B410 de Digium, 2 TO groupées ... une cablage qui n'a pas changé ...

j'ai mis à jour en Dahdi 2.6.0 avec un asterisk 1.6.2.16.1
je peux fournir des conf à la demande ....

Je ne supporte plus l'évolution destructive de dahdi avec asterisk ...

...

Merci

Reaper
13/04/2012, 10h08
Unable to create channel of type 'DAHDI' (cause 66 - Channel not implemented)

Dahdi, il n'est pas chargé.

alternatiq
14/04/2012, 14h07
Bonjour,

Dahdi Tourne, mais j'ai finis par trouvé .. c'est la Version d'Asterisk GUI qui fout le merdier ...

ipbx*CLI> dahdi show status
Description Alarms IRQ bpviol CRC4 Fra Codi Options LBO
B4XXP (PCI) Card 0 Span 1 OK 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 2 OK 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 3 RED 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 4 RED 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
ipbx*CLI>


Le GUI écrit dans /etc/dahdi/system.com :

span = 1,1,0,ccs,ami
span = 2,2,0,ccs,ami
span = 3,3,0,ccs,ami
span = 4,4,0,ccs,ami
bchan = 1-2,4-5,7-8,10-11
hardhdlc = 3,6,9,12
echocanceller = mg2,1-240
loadzone = fr
defaultzone = fr

Alors que le dahdi_cfg -vv ecrit dans le même fichier :

# Autogenerated by /usr/sbin/dahdi_genconf on Fri Apr 13 14:15:02 2012
# 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: B4/0/1 "B4XXP (PCI) Card 0 Span 1" AMI/CCS
span=1,1,0,ccs,ami
# termtype: te
bchan=1-2
hardhdlc=3
echocanceller=mg2,1-2

# Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" (MASTER) AMI/CCS
span=2,2,0,ccs,ami
# termtype: te
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
# termtype: te
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
# termtype: te
bchan=10-11
hardhdlc=12
echocanceller=mg2,10-11

# Global data

loadzone = us
defaultzone = us

Je comprends pas que l'on est pas une solution GUI qui ne "parse" pas les files et qui ne sait pas relire sans bidouiller ...

Merci quand même pour l'aide ...

Reaper
14/04/2012, 22h05
Il est impossible d’implémenter un GUI qui parse vos fichier de conf, pour une simple raison que les options sont très nombreuses. Déjà avoir un qui génère du code correctement est difficile.

alternatiq
18/04/2012, 06h24
Je détecte que la sortie ne marche plus après un certain temps indéfini pour l'instant ....

après un asterisk + dahdi stop puis start c'est denouveau opérationnel pour un certain temps indéfini ... QUID ?

En laissant le CLI je m'apperçois un WARNING redondant :

[Apr 18 06:28:51] WARNING[4115]: chan_dahdi.c:4277 pri_find_dchan: No D-channels available! Using Primary channel 6 as D-channel anyway!
== Primary D-Channel on span 2 up
== Primary D-Channel on span 1 down
[Apr 18 06:28:54] WARNING[4114]: chan_dahdi.c:4277 pri_find_dchan: No D-channels available! Using Primary channel 3 as D-channel anyway!
== Primary D-Channel on span 1 up
== Primary D-Channel on span 2 down
[Apr 18 06:29:07] WARNING[4115]: chan_dahdi.c:4277 pri_find_dchan: No D-channels available! Using Primary channel 6 as D-channel anyway!
== Primary D-Channel on span 2 up
== Primary D-Channel on span 1 down

Est-ce la source de mon soucis ? ... pourquoi autant de blabla sur le canal D de signalisation ...

Une fois l'émission impossible je vérifis dans le CLI :

ipbx*CLI> dahdi show status
Description Alarms IRQ bpviol CRC4 Fra Codi Options LBO
B4XXP (PCI) Card 0 Span 1 OK 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 2 OK 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 3 RED 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 4 RED 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
== Primary D-Channel on span 2 down
[Apr 18 06:31:15] WARNING[4115]: chan_dahdi.c:4277 pri_find_dchan: No D-channels available! Using Primary channel 6 as D-channel anyway!
== Primary D-Channel on span 2 up


ipbx*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo default default In Service
1 DID_span_1 fr default In Service
2 DID_span_1 fr default In Service
4 DID_span_2 fr default In Service
5 DID_span_2 fr default In Service
== Primary D-Channel on span 2 down
[Apr 18 06:31:47] WARNING[4115]: chan_dahdi.c:4277 pri_find_dchan: No D-channels available! Using Primary channel 6 as D-channel anyway!
== Primary D-Channel on span 2 up


....

Qui aurait une idée ?

J'ai réinstallé 3x l'ipbx avec juste le fichier users.conf en restauration sans la partie dahdi se trouvant dedans ....

conf : asterisk 1.6.2.23 + dahdi 2.6.0 + libpri 1.4.12 (non patch) + libss7 1.0.2

alternatiq
18/04/2012, 06h50
Re bonjour,

Je lis différentes solutions ...

Pour asterisk avec une carte Digium B410P que faut-il ?

dadhi (complete linux + tools)
libpri
libss7 ? Nécessaire ?
mISDN ? Nécessaire ?

asterisk 1.x.x
asterisk addon 1.x.x ? Nécessaire ?

Merci