PDA

Voir la version complète : Red alarm sur carte FXO clone


TiTi
31/01/2006, 12h50
Bonjour à vous tous, je viens de découvrir ce site, c'est vraiment cool

Voilà, je débute avec Asterisk et j'ai commandé une carte clone X100P sur ebay.
Je l'ai recu, et c'est là que les soucis ont commencé :

1. problème de ports pci [détectée en Display device - résolu]
2. problème d'irq [désactivé la carte son intégrée - résolu]
3. il y a toujours une RED alarme sur la carte :-(

asterisk:/var/log/asterisk# cat /proc/zaptel/1
Span 1: WCFXO/0 "Generic Clone Board 1" RED

1 WCFXO/0/0 FXSKS

Sinon d'un point de vue hard et soft, il s'agit d'un celeron500 + 64mo ram sur une debian sarge avec le dernier kernel qui va bien, asterisk 1.2.3, zaptel 1.2.2.

Voici d'autres infos :

Ma ligne freeboite est branchée sur l'entrée Line de la carte, rien sur l'entrée Phone.

###############################

asterisk:/usr/src/zaptel-1.2.2# ./ztcfg -vvvvvvvvvvvv

Zaptel Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)

1 channels configured.

###############################

asterisk:/usr/src/zaptel-1.2.2# ./zttest
Opened pseudo zap interface, measuring accuracy...
99.975586% 99.987793% 99.987793% 99.987793% 99.987793% 99.987793% 99.987793%
99.987793% 99.987793% 99.987793% 99.987793% 99.987793%
--- Results after 12 passes ---
Best: 99.987793 -- Worst: 99.975586 -- Average: 99.986776
asterisk:/usr/src/zaptel-1.2.2#

###############################

asterisk:/usr/src/zaptel-1.2.2# cat /proc/zaptel/*
Span 1: WCFXO/0 "Generic Clone Board 1" RED

1 WCFXO/0/0 FXSKS
asterisk:/usr/src/zaptel-1.2.2

################################

asterisk:/usr/src/zaptel-1.2.2# ./ztspeed
Count: 273371

###############################

asterisk:/usr/src/zaptel-1.2.2# ./ztmonitor 1 -v

Visual Audio Levels.
--------------------
Use zapata.conf file to adjust the gains if needed.

( # = Audio Level * = Max Audio Hit )
<----------------(RX)----------------> <----------------(TX)---------------->

###############################
dmesg :

wcfxo: DAA mode is 'FCC'
Found a Wildcard FXO: Generic Clone
Registered tone zone 2 (France)

###############################

asterisk:/usr/src/zaptel-1.2.2# cat /proc/interrupts
CPU0
0: 688932 XT-PIC timer
1: 8 XT-PIC i8042
2: 0 XT-PIC cascade
7: 1 XT-PIC parport0
9: 4743 XT-PIC eth0
11: 2310288 XT-PIC wcfxo
12: 127 XT-PIC i8042
14: 3716 XT-PIC ide0
15: 31 XT-PIC ide1
NMI: 0
LOC: 0
ERR: 0
MIS: 0

###############################

asterisk:/usr/src/zaptel-1.2.2# pourquoi_ma_carte_fxo_marche_pas
-bash: pourquoi_ma_carte_fxo_marche_pas: command not found

LOL


Il y a t'il quelque chose que j'ai zappé ? :roll:

TiTi
31/01/2006, 13h04
Et biensur dans la CLI d'Asterisk :

-- Executing Dial("SIP/302-f525", "Zap/1/03832777800") in new stack
Jan 31 15:06:11 NOTICE[3525]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel 'SIP/302-f525' status is 'CHANUNAVAIL'
-- Executing Dial("SIP/302-f525", "Zap/1/h") in new stack
Jan 31 15:06:11 NOTICE[3525]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Dial("SIP/302-933f", "Zap/1/123456789") in new stack
Jan 31 15:06:17 NOTICE[3529]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel 'SIP/302-933f' status is 'CHANUNAVAIL'
-- Executing Dial("SIP/302-933f", "Zap/1/h") in new stack
Jan 31 15:06:17 NOTICE[3529]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)

taymoh
31/01/2006, 15h58
Bonsoir.
Essayes zaptel-1.2.3
A +.

TiTi
31/01/2006, 20h24
Merci énormement pour vos réponses !

J'ai branché à tout hasard la ligne FT et je n'ai plus d'alarme mais toujours les mêmes messages CLI ...

En gros dans zapata.conf :

[channels]

language=fr
signalling=fxo_ks ; X100P
echocancel=yes ; You can set this to 32, 64, or 128, tweak to your needs.
echocancelwhenbridged=yes
echotraining=400 ; Asterisk trains to the beginning of the call, number is in milliseconds
callerid=outgoing ;asreceived
group=1
context= outgoing; Points to the default context of your extensions.conf
channel => 1


Dans extensions.conf :

[outgoing]

exten => _.,1,Dial,Zap/1/${EXTEN}


Dans la console :


Et biensur dans la CLI d'Asterisk :

-- Executing Dial("SIP/302-f525", "Zap/1/03832777800") in new stack
Jan 31 15:06:11 NOTICE[3525]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel 'SIP/302-f525' status is 'CHANUNAVAIL'
-- Executing Dial("SIP/302-f525", "Zap/1/h") in new stack
Jan 31 15:06:11 NOTICE[3525]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Dial("SIP/302-933f", "Zap/1/123456789") in new stack
Jan 31 15:06:17 NOTICE[3529]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel 'SIP/302-933f' status is 'CHANUNAVAIL'
-- Executing Dial("SIP/302-933f", "Zap/1/h") in new stack
Jan 31 15:06:17 NOTICE[3529]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)


Et enfin zaptel.conf :

fxsls=1
loadzone=fr
defaultzone=fr


Et là tout de suite je met à jour zaptel : 1.2.2 -> 1.2.3

Je vous tiens au courant, et merci encore.

TiTi
31/01/2006, 21h00
Ecoutez, a priori ca fonctionne bien mieux avec zaptel 1.2.3

J'ai un message audio qui me demande une carte télphonique quand j'essaye de sortir :

-- Executing Dial("SIP/300-054c", "Zap/1/0618304500") in new stack
-- Called 1/0618304500
-- Zap/1-1 answered SIP/300-054c
-- Hungup 'Zap/1-1'
== Spawn extension (sip, 0618304500, 1) exited non-zero on 'SIP/300-054c'
-- Executing Dial("SIP/300-054c", "Zap/1/h") in new stack
Jan 31 23:01:55 NOTICE[5334]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)

Ca avance, je reste positif !!!

DWAM
31/01/2006, 21h01
Salut

il me semble que dans le zaptel.conf, tu devrais avoir :

fxsks=1
loadzone=fr
defaultzone=fr

TiTi
31/01/2006, 21h05
C'est bien ca le probleme, en modifiant mon zaptel j'obtiens ceci :

Jan 31 23:07:53 ERROR[5510]: chan_zap.c:6872 mkintf: Signalling requested on channel 1 is FXS Loopstart but line is in FXS Kewlstart signalling
Jan 31 23:07:53 ERROR[5510]: chan_zap.c:10264 setup_zap: Unable to register channel '1'
Jan 31 23:07:53 WARNING[5510]: loader.c:414 __load_resource: chan_zap.so: load_module failed, returning -1
Jan 31 23:07:53 WARNING[5510]: loader.c:554 load_modules: Loading module chan_zap.so failed!
asterisk*CLI>
Disconnected from Asterisk server
asterisk:~# Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.

TiTi
31/01/2006, 21h27
Ok, j'ai réussi à peu pres :

Les mobiles ne passent pas, mais les fixes oui (a priori)

J'ai quand meme un unable to create channel of type 'zap' comme d'hab ... et quand je branche ma ligne free en live le pc plante !!!

Ca avance ^^

TiTi
31/01/2006, 22h17
edit : repost

TiTi
31/01/2006, 22h28
On est d'accord :

asterisk:/usr/src/zaptel-1.2.3# ./ztcfg -vvvvvvvvvv

Zaptel Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)

1 channels configured.




Ensuite :

zapata.conf :

[channels]

language=fr
signalling=fxs_ks ; X100P
echocancel=yes ; You can set this to 32, 64, or 128, tweak to your needs.
echocancelwhenbridged=yes
echotraining=400 ; Asterisk trains to the beginning of the call, number is in milliseconds
callerid=outgoing ;asreceived
group=1
context= outgoing; Points to the default context of your extensions.conf
channel => 1



Et mon extensions.conf

[general]

static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no

[globals]

[default]

include => appel-interne
include => test

[sip]

include => outgoing
include => appel-interne
include => test

[appel-interne]

exten => _30X,1,Wait(1)
exten => _30X,n,SetMusicOnHold(${EXTEN})
exten => _30X,n,Dial(SIP/${EXTEN})
exten => _30X,n,Hangup

[outgoing]

exten => _.,1,Dial,Zap/1/${EXTEN}

[test]

exten => 123,1,Wait(1)
exten => 123,n,Answer
exten => 123,n,Playback(tt-weasels)
exten => 123,n,Playback(tt-somethingwrong)
exten => 123,n,Playback(tt-monkeysintro)
exten => 123,n,Playback(tt-monkeys)
exten => 123,n,Hangup

exten => 6000,1,Wait(1)
exten => 6000,n,SetMusicOnHold(default)
exten => 6000,n,Answer
exten => 6000,n,MusicOnHold()
exten => 6000,n,Hangup

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Je suis en red alarm car pas de FT de branché, pas d'* en route ...

Je branche ... direct zttool me met un beau ok !!! ... du coup je débranche ...je suis red, tout va bien ... je met free ... ca reste red (on verra plus tard) ... je rebranche FT ... paf ! direct ok, hmmmm ... je lance l'* en -vvvvvvc:

2/3 warnings a cause de mes parametres de noobist ... rien de grave hein ! ... mes postes (1 local et 1 disant) se registrent nikel ! (hé ui sip peut passer les NAT, je confirme)


Donc vu l'heure, je fais une rechere google vite fait sur un fixe et dans la CLI (depuis le début je met des 00 à la fin des numéros de tel):

Feb 1 00:05:50 NOTICE[2944]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Dial("SIP/300-55c8", "Zap/1/0383411300") in new stack
-- Called 1/0383411300
-- Zap/1-1 answered SIP/300-55c8
-- Hungup 'Zap/1-1'
== Spawn extension (sip, 0383411300, 1) exited non-zero on 'SIP/300-55c8'
-- Executing Dial("SIP/300-55c8", "Zap/1/h") in new stack
Feb 1 00:09:12 NOTICE[2954]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)

Bon j'ai qd mm un message grave : Unable to create channel of type 'Zap' mais ca a marché !!!


J'essaye à l'arrache avec la free sur le meme numéro :


Feb 1 00:11:39 WARNING[2886]: chan_zap.c:6328 handle_init_event: Detected alarm on channel 1: Red Alarm
-- Executing Dial("SIP/300-2f82", "Zap/1/0383411384") in new stack
Feb 1 00:11:42 NOTICE[2979]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel 'SIP/300-2f82' status is 'CHANUNAVAIL'
-- Executing Dial("SIP/300-2f82", "Zap/1/h") in new stack
Feb 1 00:11:42 NOTICE[2979]: app_dial.c:1011 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)


Vous pouvez d'ailleur contaté que j'ai mis 3 secondes à numéroté ...





En conclusion, mes parametres hardware son a priori bons, mes parametres soft sont à revoirs car je n'arrive pas à joindre des mobiles, je suis plus ou moins instable en switchant les lignes au qq de ma carte, donc je dis : VICTOIRE (partielle) !!!!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Merci encore ! je pense revenir d'ici peu si je trouve pas comment tout parametrer comme je veux. A terme si tout va bien je compte faire un tuto pour ce site pour les francophones utilisateurs d'* (promis le code du tuto sera certifié w3c ;-) )

Encore bravo pour ce site que j'ai eu le bonheur de découvrir, et vive la communauté asterisquo-linuxienne !!! héhé




Pour finir merci à tous ;-)


Bonsoir.
Essayes zaptel-1.2.3
A +.

Ca a vraiment aidé ! j'ai enlevé la red alarm grace à ca



Salut

il me semble que dans le zaptel.conf, tu devrais avoir :

fxsks=1
loadzone=fr
defaultzone=fr

De la 1.2.2 à la 1.2.3 de zaptel la signalisation de la carte a effectivement changé !


Au cas où ça pourrait t'aider, quand j'ai branché le même genre de carte la première fois, par un cable rj11 passant par mon onduleur, j'avais le même problème.

Ne voulant pas aller jusqu'à l'onduleur pour débrancher, j'ai testé avec un autre câble, et là, ça a fonctionné.

Je ne sais donc pas si c'est du au cable lui même, ou au passage par l'onduleur, mais c'est nécessairement un des 2, alors si ça peut te donner une piste de réflexion...

Bon courage.

Je teste demain si le probleme de free vient de la !

taymoh
01/02/2006, 13h14
Bonjour.
Tu peux m'en dire plus sur ça? "Zap/1/h" A +.

TiTi
01/02/2006, 14h17
Bonjour.
Tu peux m'en dire plus sur ça? "Zap/1/h" A +.

Salut, hélas non car je n'ai plus le problème. Il s'agissait du cordon téléphonique ^^

Donc maintenant ma ligne free marche au top en in et out !

Je suis passé entre temps à asterisk 1.2.4 et zaptel 1.2.3

J'ai bossé ensuite sur l'écho, et je suis arrivé à un résultat satisfaisant !!!

zconfig.h -> décommenter cette ligne : #define ECHO_CAN_MG2

zapata.conf :

[channels]

;----- carte -----
language=fr
signalling=fxs_ks ; X100P
busydetect=yes
busycount=1
;hanguponpolarityswitch=yes
;usedistinctiveringdetection=yes

;----- niveau sonore -----
;rxwink=300
;rxgain=4.5
;txgain=4.5

;----- traitement echo -----
echocancel=yes ; You can set this to 32, 64, or 128, tweak to your needs.
echocancelwhenbridged=yes
echotraining=900 ; Asterisk trains to the beginning of the call, number is in milliseconds

;----- callerid stuff -----
usecallerid=yes
hidecallerid=no
;callerid=outgoing ;asreceived

;----- routage -----
group=1
context= outgoing
channel => 1

Mais j'ai pas fini il me reste à regler des trucs dont les timings :

[1]. Lors d'un appel sortant, si la partie adverse raccroche, la mienne raccroche seulement 5 à 10 secondes apres.

[2]Lors d'un appel entrant, asterisk décroche qu'au bout de 2 sonneries.

[3]Parfois lorsque je sors ca décroche dans le vide .... il faut alors recommencer pour que ca sonne sur le tel distant .... chelou

[4] un warning sur la signalisation au boot de l'asterisk

[5] ajouter le codec speex

[6] fignoler et finir mon extensions.conf

Donc pour l'instant, tout se passe bien, la machine, plus que vétuste suporte nikel asterisk + postgresql (cdr) + apache2 (stats cdr)
Héhé, je peux même utiliser ma ligne free de n'importe ou dans le monde (modif sip.conf + ajout routage plage de ports déclarés dans rtp.conf dans l'interface d'admin freebox + iptables solides).

taymoh
01/02/2006, 14h52
Bonjour.
Félicitations. :idea:
Pour le reste, je te suggère d'ouvrir un sujet pour chaque, dans la bonne rubrique.
A +.