Affichage des résultats 1 à 5 sur 5

Discussion: SIP, NAT, et pas d'audio pas de son...

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre Senior
    Date d'inscription
    octobre 2014
    Messages
    124
    Downloads
    0
    Uploads
    0
    Salut,

    Quelque chose m'échappe...

    En utilisant le mode NAT dans Asterisk (force rport+comedia) j'ai quand même l'adresse IP interne du poste (10.0.0.84) qui apparait puis ensuite l'adresse publique (XXX.XXX.XXX.XXX) :

    Code:
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029237, ts 004160, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029238, ts 004320, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029239, ts 004480, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029240, ts 004640, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029241, ts 004800, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029242, ts 004960, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029243, ts 005120, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029244, ts 005280, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029245, ts 005440, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029246, ts 005600, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029247, ts 005760, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029248, ts 005920, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029249, ts 006080, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029250, ts 006240, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029251, ts 006400, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029252, ts 006560, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029253, ts 006720, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029254, ts 006880, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029255, ts 007040, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029256, ts 007200, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029257, ts 007360, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029258, ts 007520, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029259, ts 007680, len -000013)
    [Feb  4 10:48:24] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029260, ts 007840, len -000013)
    [Feb  4 10:48:25] Sent RTP packet to      10.0.0.84:62544 (type 00, seq 029261, ts 008000, len -000013)
    [Feb  4 10:48:34]        > 0xb494fd98 -- Probation passed - setting RTP source address to XXX.XXX.XXX.XXX:44259
    [Feb  4 10:48:34] Got  RTP packet from    XXX.XXX.XXX.XXX:44259 (type 126, seq 000000, ts 080033, len 000068)
    [Feb  4 10:48:34] NOTICE[32276][C-000000a0]: res_rtp_asterisk.c:4365 ast_rtp_read: Unknown RTP codec 126 received from 'XXX.XXX.XXX.XXX:44259'
    [Feb  4 10:48:35]     -- Incorrect password '' for user '301' (context = default-b)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029262, ts 088328, len 000160)
    [Feb  4 10:48:35]     -- <SIP/ze03p9-000000ca> Playing 'vm-incorrect.slin' (language 'fr_FR')
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029263, ts 088488, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029264, ts 088648, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029265, ts 088808, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029266, ts 088968, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029267, ts 089128, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029268, ts 089288, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029269, ts 089448, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029270, ts 089608, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029271, ts 089768, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029272, ts 089928, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029273, ts 090088, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029274, ts 090248, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029275, ts 090408, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029276, ts 090568, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029277, ts 090728, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029278, ts 090888, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029279, ts 091048, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029280, ts 091208, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029281, ts 091368, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029282, ts 091528, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029283, ts 091688, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029284, ts 091848, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029285, ts 092008, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029286, ts 092168, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029287, ts 092328, len 000160)
    [Feb  4 10:48:35] Sent RTP packet to      XXX.XXX.XXX.XXX:44259 (type 00, seq 029288, ts 092488, len 000160)
    As-tu une idée du pourquoi ?

  2. #2
    Membre Senior
    Date d'inscription
    septembre 2010
    Localisation
    Where the sun shines
    Messages
    1 418
    Downloads
    0
    Uploads
    0
    A voir, c'est la réception du paquet de media qui déclenche ce changement - si tu es curieux, essaie de mettre directmedia=no - ca pourrait rester sur la premiere ip, ou directrtpsetup=no

    intéressant aussi, sur la sécurité:
    Code:
    ; IT IS IMPORTANT TO NOTE that if the nat setting in the general section differs from
    ; the nat setting in a peer definition, then the peer username will be discoverable
    ; by outside parties as Asterisk will respond to different ports for defined and
    ; undefined peers. For this reason it is recommended to ONLY DEFINE NAT SETTINGS IN THE
    ; GENERAL SECTION. Specifically, if nat=force_rport in one section and nat=no in the
    ; other, then valid peers with settings differing from those in the general section will
    ; be discoverable.

  3. #3
    Membre Senior
    Date d'inscription
    juin 2011
    Messages
    159
    Downloads
    0
    Uploads
    0
    hello,
    j'ai été confronté à ce problème et je l'ai résolu en configurant mon firewall.
    J'utilise freepbx, et le nat=yes est configuré sur chaque extension.
    Les paramètres ip sont également configurés dans freepbx avec localnet et publique ip.
    Nat=yes également dans mon trunk avec le sip provider.

    Et pourtant, problème de coupure de son endéans un délai aléatoire, pas de détection de raccroché et autres joyeusetés.
    Jusqu'au jour où j'ai ouvert 5060 pour le sip provider (et uniquement lui je vous rassure).

    Problème uniquement de freepbx? j'ai pas bien configuré quelque chose? en tout cas maintenant ça fonctionne.

  4. #4
    Membre Junior
    Date d'inscription
    août 2019
    Messages
    1
    Downloads
    0
    Uploads
    0

    Pb NAT

    Bonjour Jean,
    Merci pour ton message détaillé. Je ne m'y connais pas trop et je pense que tu peux m'aider. Je cherche également à me connecter via un softphone à distance. Mon compte SIP s'enregistre bien dans le softphone à travers le NAT. Cependant, il n'y a pas de tonalité lorsque je passe un appel vers un autre téléphone interne au réseau local.

    Dans l'extension, j'ai bien configuré le NAT Mode sur Yes (force rport - Comedia) le port en dessous est celui par défaut.
    Dans mon routeur, (Livebox Pro), j'ai ouvert le port 5160. Dois-je en ouvrir un autre ?

    D'avance, je te remercie.

    Bonne journée.

    Etienne Heyman

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •