Project

General

Profile

Anomalie #1533

Remettre sur Asterisk l'affichage des membres

Added by Benjamin Drieu over 9 years ago. Updated over 2 years ago.

Status:
Rejeté
Priority:
Normale
Category:
-
Target version:
Start date:
07/11/2014
Due date:
% Done:

80%

Estimated time:
Difficulté:
2 Facile

Description

J'ai configuré l'appel à un script AGI dans le dialplan (à reporter pour chaque téléphone concerné)"

@@exten = 80,n,AGI

Puis le script suivant a été développé :

#!/bin/bash

declare -a array
while read -e ARG && [ "$ARG" ] ; do
        array=(` echo $ARG | sed -e 's/://'`)
        export ${array[0]}="${array[1]}" 
done

newcaller=$(echo $agi_callerid | sed -e 's/^0\([0-9]\{9\}\)$/33\1/g')
if test "$newcaller" != "$agi_callerid" ; then
    agi_callerid=$newcaller
fi

callerid=$(grep ":$agi_callerid\$" /etc/asterisk/phone.csv | sed -e 's/:.*//g')

if test -z "$callerid" ; then
    echo "SET CALLERID \"$agi_callerid\"<$agi_callerid>" 
else
    echo "SET CALLERID \"$callerid\"<$agi_callerid>" 
fi

Le fichier phone.csv contient une association clef/valeur entre nom et téléphone.

History

#1

Updated by Benjamin Drieu over 9 years ago

  • Assignee set to Benjamin Drieu
  • % Done changed from 0 to 80

Ne reste plus qu'à importer les contacts de dotproject

#2

Updated by François Poulain about 7 years ago

  • Description updated (diff)

Est-ce toujours d'actualité ?

#3

Updated by Frédéric Couchet about 7 years ago

je crois que c'est corrigé. Vérifier auprès d'Isa ou Benj.

#4

Updated by Benjamin Drieu almost 7 years ago

Il faudrait surtout que la mise à jour soit automatique, actuellement je me bouge tous les ans pour faire une mise à jour manuelle.

#5

Updated by François Poulain almost 7 years ago

MaJ par rapport à quoi du coup ? Valise ? DTC ?

#6

Updated by Benjamin Drieu almost 6 years ago

  • Status changed from Nouveau to Confirmé

DTC

#7

Updated by François Poulain about 3 years ago

Donc ça signifie, depuis DTC export le fichier phone.csv au bon format et croner le tout. Le format de /etc/asterisk/phone.csv est :

Prénom NOM:336nnnnnnnn

#8

Updated by Quentin Gibeaux over 2 years ago

  • Status changed from Confirmé to Rejeté

ça semble appartenir plus au passé qu'à l'avenir

Also available in: Atom PDF