Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
tuto:ipasserelle:telephonie:configuration_gateway_patton [24/07/2019 17:20] heuzef [Debug isdn] |
tuto:ipasserelle:telephonie:configuration_gateway_patton [29/07/2019 17:34] (Version actuelle) heuzef |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Passerelles VoIP patton SmartNodes ====== | ====== Passerelles VoIP patton SmartNodes ====== | ||
- | ===== Configuration d'une passerelle Patton SmartNode 4634/4638 ===== | + | ===== Configuration d'une passerelle Patton SmartNode 4634/4638/4131 ===== |
- | Les passerelles | + | Les passerelles |
==== Connecter le boitier au réseau ==== | ==== Connecter le boitier au réseau ==== | ||
- | La première chose à faire est de connecter le boitier au réseau local. Ce boitier disposant de deux interfraces, il faut connecter | + | La première chose à faire est de connecter le boitier au réseau local. Ce boitier disposant de deux interfaces, il faut connecter |
- | Après avoir identifié | + | Après avoir identifiée |
- | Voici un exemple de configuration de base, qui active 4 T0 | + | |
+ | En fonction du système utilisé (SmartWare ou Trinity), la configuration ne sera pas tout à fait la même | ||
+ | |||
+ | <hidden Configuration pour SmartWare> | ||
<file bash config.cfg> | <file bash config.cfg> | ||
# | # | ||
Ligne 117: | Ligne 119: | ||
identity-group default | identity-group default | ||
- | |||
- | authentication inbound | ||
- | |||
- | identity BNAIbc89124OLib2TCizbiCZ | ||
authentication inbound | authentication inbound | ||
Ligne 232: | Ligne 230: | ||
</ | </ | ||
+ | </ | ||
- | Dans cet exemple, voilà les paramètres importants: | + | <hidden Configuration pour Trinity> |
+ | <file bash config.cfg> | ||
+ | # | ||
+ | # # | ||
+ | # Patton Electronics Company | ||
+ | # SN4131/ | ||
+ | # S/N: 00A0BA0F19AC | ||
+ | # Release: 3.15.3-19061 2019/ | ||
+ | # Generated configuration file # | ||
+ | # # | ||
+ | # | ||
- | | + | cli version 4.00 |
- | * secret (asterisk): BNAIbc89124OLib2TCizbiCZ | + | superuser admin password YNMdFwK2XvHf0XXz7ZROdw== encrypted |
- | * ip asterisk: 192.168.10.1 | + | system hostname patton |
+ | clock local default-offset +02:00 | ||
+ | |||
+ | profile aaa DEFAULT | ||
+ | method 1 local | ||
+ | method 2 none | ||
+ | |||
+ | console | ||
+ | use profile aaa DEFAULT | ||
+ | |||
+ | telnet-server | ||
+ | use profile aaa DEFAULT | ||
+ | no shutdown | ||
+ | |||
+ | ssh-server | ||
+ | use profile aaa DEFAULT | ||
+ | no shutdown | ||
+ | |||
+ | snmp-server | ||
+ | community public read-only | ||
+ | host 192.168.38.10 security-name public | ||
+ | no shutdown | ||
+ | |||
+ | web-server | ||
+ | protocol http port 80 | ||
+ | protocol https port 443 | ||
+ | use profile aaa DEFAULT | ||
+ | no shutdown | ||
+ | |||
+ | ntp | ||
+ | server pfsense.mornier.pro | ||
+ | no shutdown | ||
+ | |||
+ | system | ||
+ | clock-source 1 bri 0 0 | ||
+ | clock-source 2 bri 0 1 | ||
+ | clock-source 3 bri 0 2 | ||
+ | clock-source 4 bri 0 3 | ||
+ | |||
+ | profile napt NAPT_WAN | ||
+ | |||
+ | dns-server | ||
+ | relay dns-client | ||
+ | shutdown | ||
+ | |||
+ | profile tls DEFAULT | ||
+ | authentication incoming | ||
+ | authentication outgoing | ||
+ | private-key pki: | ||
+ | own-certificate 1 pki: | ||
+ | diffie-hellman-parameters pki: | ||
+ | |||
+ | profile tone-set DEFAULT | ||
+ | |||
+ | profile voip DEFAULT | ||
+ | codec 1 g711alaw64k rx-length 20 tx-length 20 | ||
+ | codec 2 g711ulaw64k rx-length 20 tx-length 20 | ||
+ | |||
+ | profile pstn DEFAULT | ||
+ | |||
+ | profile rip DEFAULT | ||
+ | |||
+ | profile sip DEFAULT | ||
+ | |||
+ | context ip ROUTER | ||
+ | |||
+ | interface IF_IP_WAN | ||
+ | ipaddress DHCP dhcp | ||
+ | use profile napt NAPT_WAN DHCP | ||
+ | |||
+ | routing-table DEFAULT | ||
+ | |||
+ | bgp | ||
+ | shutdown | ||
+ | |||
+ | rip | ||
+ | shutdown | ||
+ | |||
+ | nodems-client | ||
+ | resource any | ||
+ | shutdown | ||
+ | |||
+ | profile packetsmart DEFAULT | ||
+ | |||
+ | profile ppp DEFAULT | ||
+ | |||
+ | cwmp-client | ||
+ | session-retry-maximum 1 | ||
+ | no shutdown | ||
+ | |||
+ | stun | ||
+ | shutdown | ||
+ | |||
+ | context cs SWITCH | ||
+ | national-prefix 0 | ||
+ | international-prefix 00 | ||
+ | no shutdown | ||
+ | |||
+ | mapping-table calling-e164 to calling-e164 strip_pref | ||
+ | map 0(033)?(.%) to \2 | ||
+ | |||
+ | routing-table called-e164 RT_ISDN_TO_SIP | ||
+ | route T dest-interface IF_SIP | ||
+ | |||
+ | routing-table calling-e164 RT_SIP_TO_ISDN | ||
+ | route default dest-service SV_HUNT_ISDN strip_pref | ||
+ | |||
+ | interface isdn IF_ISDN_0 | ||
+ | route call dest-table RT_ISDN_TO_SIP | ||
+ | |||
+ | interface isdn IF_ISDN_1 | ||
+ | route call dest-table RT_ISDN_TO_SIP | ||
+ | |||
+ | interface isdn IF_ISDN_2 | ||
+ | route call dest-table RT_ISDN_TO_SIP | ||
+ | |||
+ | interface isdn IF_ISDN_3 | ||
+ | route call dest-table RT_ISDN_TO_SIP | ||
+ | |||
+ | interface sip IF_SIP | ||
+ | bind context sip-gateway GW_SIP | ||
+ | route call dest-table RT_SIP_TO_ISDN | ||
+ | remote 10.56.8.10 5060 | ||
+ | |||
+ | service hunt-group SV_HUNT_ISDN | ||
+ | drop-cause normal-unspecified | ||
+ | drop-cause no-circuit-channel-available | ||
+ | drop-cause network-out-of-order | ||
+ | drop-cause temporary-failure | ||
+ | drop-cause switching-equipment-congestion | ||
+ | drop-cause access-info-discarded | ||
+ | drop-cause circuit-channel-not-available | ||
+ | drop-cause resources-unavailable | ||
+ | route call 1 dest-interface IF_ISDN_0 | ||
+ | route call 2 dest-interface IF_ISDN_1 | ||
+ | route call 3 dest-interface IF_ISDN_2 | ||
+ | route call 4 dest-interface IF_ISDN_3 | ||
+ | |||
+ | authentication-service AUTH_ASTERISK | ||
+ | realm 1 smartnode-gw | ||
+ | username patton password LgwK6EtOvBQScY1PLvUXmaZY9Ce4jbB2M+rsrzh3fnY= encrypted | ||
+ | |||
+ | location-service LS_ASTERISK | ||
+ | domain 1 192.168.10.1 5060 | ||
+ | match-any-domain | ||
+ | |||
+ | identity-group default | ||
+ | |||
+ | authentication inbound | ||
+ | |||
+ | context sip-gateway GW_SIP | ||
+ | bind location-service LS_ASTERISK | ||
+ | |||
+ | interface WAN | ||
+ | transport-protocol udp+tcp 5060 | ||
+ | no transport-protocol tls | ||
+ | bind ipaddress ROUTER IF_IP_WAN DHCP | ||
+ | |||
+ | context sip-gateway GW_SIP | ||
+ | no shutdown | ||
+ | |||
+ | sip-survivability | ||
+ | shutdown | ||
+ | |||
+ | port ethernet 0 0 | ||
+ | bind interface ROUTER IF_IP_WAN | ||
+ | no shutdown | ||
+ | |||
+ | port bri 0 0 | ||
+ | |||
+ | q921 | ||
+ | uni-side auto | ||
+ | encapsulation q931 | ||
+ | |||
+ | q931 | ||
+ | protocol dss1 | ||
+ | uni-side user | ||
+ | encapsulation cc-isdn | ||
+ | bind interface SWITCH IF_ISDN_0 | ||
+ | |||
+ | port bri 0 0 | ||
+ | no shutdown | ||
+ | |||
+ | port bri 0 1 | ||
+ | |||
+ | q921 | ||
+ | uni-side auto | ||
+ | encapsulation q931 | ||
+ | |||
+ | q931 | ||
+ | protocol dss1 | ||
+ | uni-side user | ||
+ | encapsulation cc-isdn | ||
+ | bind interface SWITCH IF_ISDN_1 | ||
+ | |||
+ | port bri 0 1 | ||
+ | no shutdown | ||
+ | |||
+ | port bri 0 2 | ||
+ | |||
+ | q921 | ||
+ | uni-side auto | ||
+ | encapsulation q931 | ||
+ | |||
+ | q931 | ||
+ | protocol dss1 | ||
+ | uni-side user | ||
+ | encapsulation cc-isdn | ||
+ | bind interface SWITCH IF_ISDN_2 | ||
+ | |||
+ | port bri 0 2 | ||
+ | no shutdown | ||
+ | |||
+ | port bri 0 3 | ||
+ | |||
+ | q921 | ||
+ | uni-side auto | ||
+ | encapsulation q931 | ||
+ | |||
+ | q931 | ||
+ | protocol dss1 | ||
+ | uni-side user | ||
+ | encapsulation cc-isdn | ||
+ | bind interface SWITCH IF_ISDN_3 | ||
+ | |||
+ | port bri 0 3 | ||
+ | no shutdown | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Dans ces exemples les paramètres importants sont : | ||
+ | |||
+ | | ||
+ | * secret | ||
+ | * ip asterisk : 192.168.10.1 | ||
+ | * ip patton (obtenue par DHCP) : 192.168.10.11 | ||
==== Créer un trunk dans FreePBX ==== | ==== Créer un trunk dans FreePBX ==== | ||
+ | Là encore, la configuration sera différente selon l' | ||
+ | === chan_sip === | ||
Il faut ensuite créer un trunk dans FreePBX (un trunk SIP bien évidemment), | Il faut ensuite créer un trunk dans FreePBX (un trunk SIP bien évidemment), | ||
- | |||
< | < | ||
Ligne 259: | Ligne 505: | ||
</ | </ | ||
+ | === chan_pjsip === | ||
- | En admettant que le boitier patton ait obtenu l'IP 192.168.10.11 par le DHCP (il est d' | + | Le trunk peut être créé en utilisant PJSIP : |
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
==== Debug isdn ==== | ==== Debug isdn ==== | ||
- | il est possible de debuguer les apels isdn, pour cela, il faut se connecter en telnet sur le boitier (login administrator et le même mot de passe que pour l' | + | il est possible de debuguer les appels |
+ | <hidden Debug SmartWare> | ||
< | < | ||
enable | enable | ||
Ligne 273: | Ligne 525: | ||
debug ccisdn signaling | debug ccisdn signaling | ||
</ | </ | ||
+ | </ | ||
- | <note important>Sur les dernières version, les commandes " | + | <hidden Debug Trinity> |
< | < | ||
enable | enable | ||
configure | configure | ||
- | debug context | + | debug sip-transport detail 1 |
- | debug context | + | debug sip-signaling detail 1 |
+ | debug isdn-signaling | ||
</ | </ | ||
+ | </ | ||
+ | |||
===== Configuration d'une passerelle Patton SmartNode 4614 ===== | ===== Configuration d'une passerelle Patton SmartNode 4614 ===== | ||
- | La série SmartNode 461X permet de convertir des lignes analogiques en SIP. Le modèle 4614 par exemple dispose de 4 ports FXS. | + | La série SmartNode 461X permet de "convertir" |
Dans cet exemple: | Dans cet exemple: | ||
Ligne 294: | Ligne 549: | ||
* Le dernier port (3) est utilisé pour le fax, le numéro correspondant est 0502020202 | * Le dernier port (3) est utilisé pour le fax, le numéro correspondant est 0502020202 | ||
+ | <hidden Voir le fichier de configuration> | ||
<file ini patton.cfg> | <file ini patton.cfg> | ||
Ligne 459: | Ligne 715: | ||
no shutdown | no shutdown | ||
</ | </ | ||
+ | </ | ||
Le trunk correspondant serait: | Le trunk correspondant serait: | ||
Ligne 477: | Ligne 734: | ||
On peut maintenant créer des routes entrantes avec le DID 0501010101 ou 0502020202 pour envoyer les appels vers les modules souhaités | On peut maintenant créer des routes entrantes avec le DID 0501010101 ou 0502020202 pour envoyer les appels vers les modules souhaités | ||
- | |||
- | ===== Configuration d'une passerelle Patton SmartNode 4131 ===== | ||
- | |||
- | Dans cet exemple: | ||
- | |||
- | * La passerelle patton obtient ses paramètres réseau par DHCP. | ||
- | * Le serveur Asterisk est 10.56.8.10 | ||
- | * Le peer SIP est patton avec un mot de passe chiffré | ||
- | |||
- | |||
- | <file ini startup-config> | ||
- | |||
- | # | ||
- | # # | ||
- | # Patton Electronics Company | ||
- | # SN4131/ | ||
- | # S/N: 00A0BA0F19AC | ||
- | # Release: 3.15.3-19061 2019/ | ||
- | # Generated configuration file # | ||
- | # # | ||
- | # | ||
- | |||
- | cli version 4.00 | ||
- | superuser admin password YNMdFwK2XvHf0XXz7ZROdw== encrypted | ||
- | system hostname patton | ||
- | |||
- | profile aaa DEFAULT | ||
- | method 1 local | ||
- | method 2 none | ||
- | |||
- | console | ||
- | use profile aaa DEFAULT | ||
- | |||
- | telnet-server | ||
- | use profile aaa DEFAULT | ||
- | shutdown | ||
- | |||
- | ssh-server | ||
- | use profile aaa DEFAULT | ||
- | no shutdown | ||
- | |||
- | snmp-server | ||
- | community public read-only | ||
- | host 192.168.38.10 security-name public | ||
- | no shutdown | ||
- | |||
- | web-server | ||
- | protocol http port 80 | ||
- | protocol https port 443 | ||
- | use profile aaa DEFAULT | ||
- | no shutdown | ||
- | |||
- | ntp | ||
- | server pfsense.mornier.pro | ||
- | no shutdown | ||
- | |||
- | system | ||
- | clock-source 1 bri 0 0 | ||
- | clock-source 2 bri 0 1 | ||
- | clock-source 3 bri 0 2 | ||
- | clock-source 4 bri 0 3 | ||
- | |||
- | profile napt NAPT_WAN | ||
- | |||
- | dns-server | ||
- | relay dns-client | ||
- | shutdown | ||
- | |||
- | profile tls DEFAULT | ||
- | authentication incoming | ||
- | authentication outgoing | ||
- | private-key pki: | ||
- | own-certificate 1 pki: | ||
- | diffie-hellman-parameters pki: | ||
- | |||
- | profile tone-set DEFAULT | ||
- | |||
- | profile voip DEFAULT | ||
- | codec 1 g711alaw64k rx-length 20 tx-length 20 | ||
- | codec 2 g711ulaw64k rx-length 20 tx-length 20 | ||
- | |||
- | profile pstn DEFAULT | ||
- | |||
- | profile rip DEFAULT | ||
- | |||
- | profile sip DEFAULT | ||
- | |||
- | context ip ROUTER | ||
- | |||
- | interface IF_IP_WAN | ||
- | ipaddress DHCP dhcp | ||
- | use profile napt NAPT_WAN DHCP | ||
- | |||
- | routing-table DEFAULT | ||
- | |||
- | bgp | ||
- | shutdown | ||
- | |||
- | rip | ||
- | shutdown | ||
- | |||
- | nodems-client | ||
- | resource any | ||
- | shutdown | ||
- | |||
- | profile packetsmart DEFAULT | ||
- | |||
- | profile ppp DEFAULT | ||
- | |||
- | cwmp-client | ||
- | session-retry-maximum 1 | ||
- | no shutdown | ||
- | |||
- | stun | ||
- | shutdown | ||
- | |||
- | context cs switch | ||
- | national-prefix 0 | ||
- | international-prefix 00 | ||
- | no shutdown | ||
- | |||
- | mapping-table calling-e164 to calling-e164 strip_pref | ||
- | map 0(033)?(.%) to \2 | ||
- | |||
- | routing-table called-e164 RT_ISDN_TO_SIP | ||
- | route T dest-interface IF_SIP | ||
- | |||
- | routing-table calling-e164 RT_SIP_TO_ISDN | ||
- | route default dest-service SV_HUNT_ISDN strip_pref | ||
- | |||
- | interface isdn IF_ISDN_0 | ||
- | route call dest-table RT_ISDN_TO_SIP | ||
- | |||
- | interface isdn IF_ISDN_1 | ||
- | route call dest-table RT_ISDN_TO_SIP | ||
- | |||
- | interface isdn IF_ISDN_2 | ||
- | route call dest-table RT_ISDN_TO_SIP | ||
- | |||
- | interface isdn IF_ISDN_3 | ||
- | route call dest-table RT_ISDN_TO_SIP | ||
- | |||
- | interface sip IF_SIP | ||
- | bind context sip-gateway GW_SIP | ||
- | route call dest-table RT_SIP_TO_ISDN | ||
- | remote 10.56.8.10 5060 | ||
- | |||
- | service hunt-group SV_HUNT_ISDN | ||
- | drop-cause normal-unspecified | ||
- | drop-cause no-circuit-channel-available | ||
- | drop-cause network-out-of-order | ||
- | drop-cause temporary-failure | ||
- | drop-cause switching-equipment-congestion | ||
- | drop-cause access-info-discarded | ||
- | drop-cause circuit-channel-not-available | ||
- | drop-cause resources-unavailable | ||
- | route call 1 dest-interface IF_ISDN_0 | ||
- | route call 2 dest-interface IF_ISDN_1 | ||
- | route call 3 dest-interface IF_ISDN_2 | ||
- | route call 4 dest-interface IF_ISDN_3 | ||
- | |||
- | authentication-service AUTH_ASTERISK | ||
- | realm 1 smartnode-gw | ||
- | username patton password CZY0Fth8WxWPmIqifR/ | ||
- | |||
- | location-service LS_ASTERISK | ||
- | domain 1 10.56.8.10 5060 | ||
- | match-any-domain | ||
- | |||
- | identity-group default | ||
- | |||
- | authentication inbound | ||
- | |||
- | context sip-gateway GW_SIP | ||
- | bind location-service LS_ASTERISK | ||
- | |||
- | interface WAN | ||
- | transport-protocol udp+tcp 5060 | ||
- | no transport-protocol tls | ||
- | bind ipaddress ROUTER IF_IP_WAN DHCP | ||
- | |||
- | context sip-gateway GW_SIP | ||
- | no shutdown | ||
- | |||
- | sip-survivability | ||
- | shutdown | ||
- | |||
- | port ethernet 0 0 | ||
- | bind interface ROUTER IF_IP_WAN | ||
- | no shutdown | ||
- | |||
- | port bri 0 0 | ||
- | |||
- | q921 | ||
- | protocol pmp | ||
- | uni-side auto | ||
- | |||
- | q931 | ||
- | protocol dss1 | ||
- | uni-side user | ||
- | max-calls 2 | ||
- | channel-range 0 1 | ||
- | bind interface IF_ISDN_0 IF_ISDN_0 | ||
- | |||
- | port bri 0 0 | ||
- | no shutdown | ||
- | |||
- | port bri 0 1 | ||
- | |||
- | q921 | ||
- | protocol pmp | ||
- | uni-side auto | ||
- | |||
- | q931 | ||
- | protocol dss1 | ||
- | uni-side user | ||
- | max-calls 2 | ||
- | channel-range 0 1 | ||
- | bind interface IF_ISDN_1 IF_ISDN_1 | ||
- | |||
- | port bri 0 1 | ||
- | no shutdown | ||
- | |||
- | port bri 0 2 | ||
- | |||
- | q921 | ||
- | protocol pmp | ||
- | uni-side auto | ||
- | |||
- | q931 | ||
- | protocol dss1 | ||
- | uni-side user | ||
- | max-calls 2 | ||
- | channel-range 0 1 | ||
- | bind interface IF_ISDN_2 IF_ISDN_2 | ||
- | |||
- | port bri 0 2 | ||
- | no shutdown | ||
- | |||
- | port bri 0 3 | ||
- | |||
- | q921 | ||
- | protocol pmp | ||
- | uni-side auto | ||
- | |||
- | q931 | ||
- | protocol dss1 | ||
- | uni-side user | ||
- | max-calls 2 | ||
- | channel-range 0 1 | ||
- | bind interface IF_ISDN_3 IF_ISDN_3 | ||
- | |||
- | port bri 0 3 | ||
- | shutdown | ||
- | </ | ||
- | |||
- | Le trunk correspondant serait : | ||
- | |||
- | < | ||
- | |||
- | </ |