Configuration d'Asterisk - Nouveau

Vous trouverez ci-dessous des exemples de configuration pour l'utilisation du service SIP de Vonage avec Astérisque.

Téléchargement de la configuration d'Asterisk

  1. Tout d'abord, vous devez remplir le Assistant SIP Trunkingou choisir de construire à partir d'une configuration manuelle.
  2. Une fois terminé, vous verrez un bouton pour télécharger une configuration Asterisk (PJSIP).
  3. La configuration Asterisk est renvoyée avec les paramètres pertinents tirés de la configuration du trunk SIP que vous avez configurée à l'étape 1.
[transport-udp]
  type=transport
  protocol=udp
  bind=0.0.0.0

[vonage]  
 type = endpoint
  aors = vonage
  outbound_auth = vonage-auth
  context = inbound
  transport=transport-udp
  allow=alaw
  allow=ulaw
  allow=g729
  allow=iLBC
  allow=g722
  allow=speex16

  from_user= <Vonage LVN(447469186226>  (If customer only has 1 number then allocate this here)

[vonage]
  type = aor
  contact = sip:asterisk.sip-eu.vonage.com    -  SIP Domain as created in trunk dashboard
  qualify_frequency = 120

[vonage-auth]
  type = auth
  auth_type = userpass
  username = robcornes - UserKey from trunk config 
  password = SecretSecret24 - Secret from trunk config

[vonage-reg]
  type = registration
  outbound_auth = vonage-auth
  server_uri = sip:asterisk.sip-eu.vonage.com  -  SIP Domain as created in trunk dashboard
  client_uri = sip:asterisk.sip-eu.vonage.com  -  SIP Domain as created in trunk dashboard

[vonage-identify]
  type = identify
  endpoint = vonage
match=5.10.112.122
match=5.10.112.121
match=119.81.44.6
match=119.81.44.7
match=169.60.141.29
match=169.60.141.30
match=169.48.36.56
match=169.55.62.70
match=81.157.184.166
match=216.147.0.0/18

Installation de la configuration Asterisk

Une fois la configuration téléchargée :

  1. Insérer la configuration dans pjsip.confou un fichier de configuration personnalisé.
  2. Rechargez votre configuration Asterisk - à partir de la ligne de commande Asterisk, la commande est la suivante pjsip reload.
  3. Créer un plan de numérotation pour acheminer les appels vers le point d'extrémité Vonage.
  4. Recharger le plan de numérotation.
  5. Effectuez un appel test.