# 01 - Description

## **1) Architecture du projet**

Le projet IRS-SI déploie une infrastructure VoIP complète sur un réseau local segmenté en VLAN. Le serveur Asterisk est hébergé sur une machine virtuelle Debian 12 sur le serveur Proxmox, accessible depuis le VLAN 99 (LAN VMs) à l'adresse 192.168.10.69.  
Les deux téléphones IP sont connectés via le switch PoE du projet et s'enregistrent automatiquement sur le serveur Asterisk au démarrage. Les appels internes transitent entièrement par le réseau local sans passer par l'extérieur.

  
Le schéma de communication est le suivant : lorsqu'un téléphone compose un numéro interne, il envoie une requête PJSIP au serveur Asterisk qui consulte son plan de numérotation (extensions.conf), identifie le poste destinataire et établit la communication. Le flux audio (RTP) circule ensuite directement entre les deux téléphones sans transiter par Asterisk.

  
Les deux postes configurés sont les suivants :

<table cellpadding="4" cellspacing="0" id="bkmrk-extension-t%C3%A9l%C3%A9phone-" width="100%"><colgroup><col width="85*"></col> <col width="85*"></col> <col width="85*"></col> </colgroup><tbody><tr valign="top"><td bgcolor="#003d73" style="background: #003d73; border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0.1cm 0cm 0.1cm 0.1cm;" width="33%"><span style="font-family: Calibri, sans-serif; color: rgb(236, 240, 241);">**Extension**</span>

</td><td bgcolor="#003d73" style="background: #003d73; border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0.1cm 0cm 0.1cm 0.1cm;" width="33%"><span style="font-family: Calibri, sans-serif; color: rgb(236, 240, 241);">**Téléphone**</span>

</td><td bgcolor="#003d73" style="background: #003d73; border: 1px solid #000000; padding: 0.1cm;" width="33%"><span style="font-family: Calibri, sans-serif; color: rgb(236, 240, 241);">**Protocole**</span>

</td></tr><tr valign="top"><td bgcolor="#dee6ef" style="background: #dee6ef; border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm 0cm 0.1cm 0.1cm;" width="33%"><span style="font-family: Calibri, sans-serif;">1000</span>

</td><td bgcolor="#dee6ef" style="background: #dee6ef; border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm 0cm 0.1cm 0.1cm;" width="33%"><span style="font-family: Calibri, sans-serif;">Yealink T31P</span>

</td><td bgcolor="#dee6ef" style="background: #dee6ef; border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm 0.1cm 0.1cm 0.1cm;" width="33%"><span style="font-family: Calibri, sans-serif;">PJSIP</span>

</td></tr><tr valign="top"><td bgcolor="#dee6ef" style="background: #dee6ef; border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm 0cm 0.1cm 0.1cm;" width="33%"><span style="font-family: Calibri, sans-serif;">1001</span>

</td><td bgcolor="#dee6ef" style="background: #dee6ef; border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm 0cm 0.1cm 0.1cm;" width="33%"><span style="font-family: Calibri, sans-serif;">Yealink T41P</span>

</td><td bgcolor="#dee6ef" style="background: #dee6ef; border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm 0.1cm 0.1cm 0.1cm;" width="33%"><span style="font-family: Calibri, sans-serif;">PJSIP</span>

</td></tr></tbody></table>

## **2) Qu'est ce que Asterisk**

Asterisk est un logiciel open source de téléphonie IP développé par Digium (aujourd'hui Sangoma), disponible sous licence GPL. Il s'agit du serveur IPBX (IP Private Branch Exchange) le plus répandu dans le monde, utilisé aussi bien dans les PME que dans les grandes entreprises.

  
Son rôle est de gérer les appels téléphoniques internes d'une infrastructure : il reçoit les demandes d'appel des téléphones IP, les route vers le bon destinataire et gère la signalisation entre les postes.

  
Asterisk supporte plusieurs protocoles de téléphonie IP, dont PJSIP (le module recommandé depuis Asterisk 13), SIP (l'ancien module chan\_sip) et IAX2. Il est compatible avec une très large gamme de téléphones IP physiques et de softphones.  
Dans le cadre du projet IRS-SI, Asterisk est déployé sur une machine virtuelle Debian 12 hébergée sur le serveur Proxmox. Il gère les communications entre les trois téléphones IP du site et constitue le cœur de l'infrastructure de téléphonie.

### **Matériels utilisés**  


<table border="1" cellpadding="7" cellspacing="0" id="bkmrk-%C3%89quipement-r%C3%B4le-rout" style="border-collapse: collapse; width: 605px; border-width: 1px; border-spacing: 0px; background-color: rgb(222, 230, 239); height: 237.969px;" width="605"><colgroup><col width="212"></col><col width="363"></col></colgroup><tbody><tr style="height: 23.7969px;" valign="top"><td bgcolor="#1f547d" style="background: rgb(31, 84, 125); border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="color: #ffffff;"><span style="font-family: Arial, serif;"><span style="font-size: small;">**Équipement**</span></span></span>

</td><td bgcolor="#1f547d" style="background: rgb(31, 84, 125); border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="color: #ffffff;"><span style="font-family: Arial, serif;"><span style="font-size: small;">**Rôle**</span></span></span>

</td></tr><tr style="height: 23.7969px;" valign="top"><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Routeur Cisco ISR 4321</span></span></span>

</td><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Routage, DHCP, gateway VLAN 20</span></span></span>

</td></tr><tr style="height: 23.7969px;" valign="top"><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Switch managé</span></span></span>

</td><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Segmentation VLAN</span></span></span>

</td></tr><tr style="height: 23.7969px;" valign="top"><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Proxmox</span></span></span>

</td><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Hyperviseur hébergeant la VM Asterisk</span></span></span>

</td></tr><tr style="height: 23.7969px;" valign="top"><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Debian 12 (VM)</span></span></span>

</td><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Système hôte du serveur Asterisk</span></span></span>

</td></tr><tr style="height: 23.7969px;" valign="top"><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Asterisk 18</span></span></span>

</td><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Serveur de téléphonie IP (PJSIP)</span></span></span>

</td></tr><tr style="height: 23.7969px;" valign="top"><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Yealink T41P (poste 1000)</span></span></span>

</td><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Téléphone IP SIP</span></span></span>

</td></tr><tr style="height: 23.7969px;" valign="top"><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Yealink T31P (poste 1001)</span></span></span>

</td><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Téléphone IP SIP</span></span></span>

</td></tr><tr style="height: 23.7969px;" valign="top"><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Cisco CP-7811-3PCC (poste 1002)</span></span></span>

</td><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Téléphone IP SIP</span></span></span>

</td></tr><tr style="height: 23.7969px;" valign="top"><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="212"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Zabbix</span></span></span>

</td><td style="border: 1px solid rgb(0, 0, 0); padding: 0cm 0.19cm; height: 23.7969px;" width="363"><span style="font-family: Arial, serif;"><span style="font-size: small;"><span style="font-weight: normal;">Supervision réseau</span></span></span>

</td></tr></tbody></table>

### **Réseau**

 • VLAN 20 dédié à la téléphonie : 192.168.10.64/26  
 • IP Asterisk (VM) : 192.168.99.9  
 • IP Yealink T41P (1000) : 192.168.10.66  
 • IP Yealink T31P (1001) : 192.168.10.67  
 • Port SIP Asterisk : 5160/UDP (PJSIP)  
 • DHCP assuré par le Cisco ISR avec réservations par adresse MAC