Sinon je peux toujours mettre a jour asterisk pour passer du 1.6.2 au 1.8 ??
Sinon je peux toujours mettre a jour asterisk pour passer du 1.6.2 au 1.8 ??
en l'occurance je suis en 1.4......
tu peux faire deja qqch comme cela :
Code:exten = 1234,1,NoOp(Test Database Asterisk) exten = 1234,n,Set(DB(Echec/Appel)=0) exten = 1234,n,NoOp(Valeur Database = ${DB(Echec/Appel)}) exten = 1234,n(Boucle),Set(DB(Echec/Appel)= $[${DB(Echec/Appel)} + 1]) exten = 1234,n,NoOp(Valeur Database = ${DB(Echec/Appel)}) exten = 1234,n,GotoIf($[${DB(Echec/Appel)} = 3]?Suite:Boucle) exten = 1234,n(suite),NoOp(Fin du Test = ${DB(Echec/Appel)})
Cédric
---------------------------------------------------------------
Rejoignez l'Association Asterisk France : http://www.asterisk-france.org
Envie de mettre des étoiles dans les yeux de vos clients : EasyPyro.ch
On a pas inventé l'électricité en cherchant à améliorer la bougie...
---------------------------------------------------------------
falait peu etre ajouter la variable global que je voulais dans globals_custum.conf ??
Peut etre, test et tu verras bien....
Cédric
---------------------------------------------------------------
Rejoignez l'Association Asterisk France : http://www.asterisk-france.org
Envie de mettre des étoiles dans les yeux de vos clients : EasyPyro.ch
On a pas inventé l'électricité en cherchant à améliorer la bougie...
---------------------------------------------------------------
j'ai essaye le fichier globals_custum mais ca na pas marché
sinon j'ai essayer ton dialplan et ca donne ca
l'incrémentation se fait sur un seul appel, je vais essayer de changer caCode:-- Attempting call on SIP/6000 for s@outboundmsg2:1 (Retry 2) == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [failed@outboundmsg2:1] NoOp("OutgoingSpoolFailed", "Test Database Asterisk") in new stack -- Executing [failed@outboundmsg2:2] Set("OutgoingSpoolFailed", "DB(Echec/Appel)=0") in new stack -- Executing [failed@outboundmsg2:3] NoOp("OutgoingSpoolFailed", "Valeur Database = 0") in new stack -- Executing [failed@outboundmsg2:4] Set("OutgoingSpoolFailed", "DB(Echec/Appel)= 1") in new stack -- Executing [failed@outboundmsg2:5] NoOp("OutgoingSpoolFailed", "Valeur Database = 1") in new stack -- Executing [failed@outboundmsg2:6] GotoIf("OutgoingSpoolFailed", "0?Suite:Boucle") in new stack -- Goto (outboundmsg2,failed,4) -- Executing [failed@outboundmsg2:4] Set("OutgoingSpoolFailed", "DB(Echec/Appel)= 2") in new stack -- Executing [failed@outboundmsg2:5] NoOp("OutgoingSpoolFailed", "Valeur Database = 2") in new stack -- Executing [failed@outboundmsg2:6] GotoIf("OutgoingSpoolFailed", "0?Suite:Boucle") in new stack -- Goto (outboundmsg2,failed,4) -- Executing [failed@outboundmsg2:4] Set("OutgoingSpoolFailed", "DB(Echec/Appel)= 3") in new stack -- Executing [failed@outboundmsg2:5] NoOp("OutgoingSpoolFailed", "Valeur Database = 3") in new stack -- Executing [failed@outboundmsg2:6] GotoIf("OutgoingSpoolFailed", "1?Suite:Boucle") in new stack == Spawn extension (outboundmsg2, failed, 6) exited non-zero on 'OutgoingSpoolFailed'
J'ai essayer de faire un truc plus simple tout bete meme, genre
et aprés dans le script principal je compte le nombre d'echec et au bout du troisieme arreter tout et renvoyer le rapportCode:exten = h, i, system(echo -e "echec") exten = failed, i, system(echo -e "echec")
mais si je fais un test pour une personne qui décroche pas j'ai deux echec au lieu d'un seul, comme si l'extension h execute sa commande alors qu'il y a pas de raccrochage
Y'a forcement un hangup, sinon ton appel ne ferait que sonner et ne raccrocherai jamais.....
Cédric
---------------------------------------------------------------
Rejoignez l'Association Asterisk France : http://www.asterisk-france.org
Envie de mettre des étoiles dans les yeux de vos clients : EasyPyro.ch
On a pas inventé l'électricité en cherchant à améliorer la bougie...
---------------------------------------------------------------
bah dans la fichier .call
J'ai mis des limites pour la sonnerie "WaitTime" du coup il sonne 30 secondes puis racroche.Code:echo "Channel: SIP/6000"> $name_file echo "MaxRetries: 2">> $name_file echo "RetryTime: 10">> $name_file echo "WaitTime: 30">> $name_file echo "Context: outboundmsg1">> $name_file echo "Extension: s">> $name_file echo "Priority: 1">> $name_file echo "Set: Mavariable=$2">> $name_file
j'ai contaté ca après plusieurs test :
si j'écris seulement ca à la fin du contexte
et que je ne répond pas a un appel, ca donne ca . Trois tentatives d'appel non aboutit et l'extension h ne s'est pas acctiverCode:exten => h,1,system(echo -e "resultat : Déplacement refusé" >> /tmp/ConvertFile/retour.txt)
alors que si je rajoute une extension FailedCode:-- Attempting call on SIP/6000 for s@outboundmsg1:1 (Retry 1) == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Attempting call on SIP/6000 for s@outboundmsg1:1 (Retry 2) == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Attempting call on SIP/6000 for s@outboundmsg1:1 (Retry 3) == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5
les deux extensions s'active pour appel non aboutitCode:exten => h,1,system(echo -e "resultat : Déplacement refusé" >> /tmp/ConvertFile/retour.txt) exten => failed,1,system(echo -e "resultat : Déplacement refusé" >> /tmp/ConvertFile/retour.txt)
Je comprend pas , l'extension h s'active comme elle veut ?????Code:-- Attempting call on SIP/6000 for s@outboundmsg1:1 (Retry 1) == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [failed@outboundmsg1:1] System("OutgoingSpoolFailed", "echo -e "resultat : Déplacement refusé" >> /tmp/ConvertFile/retour.txt") in new stack -- Auto fallthrough, channel 'OutgoingSpoolFailed' status is 'UNKNOWN' -- Executing [h@outboundmsg1:1] System("OutgoingSpoolFailed", "echo -e "resultat : Déplacement refusé" >> /tmp/ConvertFile/retour.txt") in new stack