VLAN 851 et SIP sur Livebox 2

La Livebox 2 SAGEM a son protocole VoIP en SIP (certains firmwares sont en H323 )

La box communique en SIP à travers un VLAN très particulier: le VLAN 851.

Il semblerait qu’elle demande une IP en DHCP sur ce VLAN avant de se connecter en SIP.

Grâce à un firmware ouvert, nous avons pu trouver un exemple de configuration SIP sur la Livebox :

[LBV2techno @ home]$ rg_conf_print /voip
(voip
  (sip
    (G711Enable(1))
  )
  (VoiceService
    (0
      (VoiceProfile
        (0
          (Enable(Enabled))
          (NumberOfLines(1))
          (DTMFMethod(RFC2833))
          (PSTNFailOver(false))
          (PSTNSoftSwitchOver(0))
          (SIP
            (OutboundProxy(85.62.244.30))
            (OutboundProxyPort(5060))
            (UserAgentDomain(sip.orange.es))
            (UserAgentTransport(UDP))
            (UserAgentPort(5060))
            (ProxyServer(proxy2.sip.orange.es))
            (ProxyServerTransport(UDP))
            (ProxyServerPort(5060))
            (RegistrarServer(proxy2.sip.orange.es))
            (RegistrarServerPort(5060))
            (RegistrarServerTransport(UDP))
            (RegisterExpires(-601))
            (TimerLoginRejected(3600))
            (TimerPasswordRejected(3600))
            (TimerRegistrationFailed(240))
            (TimerSubscribtionFailed(14400))
            (SIPEventSubscribeNumberOfElements(1))
            (EventSubscribe
              (0
                (Notifier())
                (ExpireTime(-1))
              )
            )
          )
          (Line
            (0
              (Enable(Enabled))
              (DirectoryNumber(+34956XXXXXX))
              (SIP
                (AuthUserName(XXXXXXXXXXXXXXXXX@sip.orange.es))
                (AuthPassword(************************))
                (URI(sip:+34956XXXXXX@sip.orange.es))
              )
              (CallingFeatures
                (CallerIDEnable(1))
                (CallerIDNameEnable(0))
                (CallWaitingEnable(1))
                (ACOEnable(1))
                (MWIEnable(0))
                (VMWIEnable(0))
              )
            )
          )
        )
      )
    )
  )

Il ne reste plus que tester tout ça ^^

Un exemple de configuration à tester :

rg_conf_set /voip/sip/G711Enable 1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Enable 1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/NumberOfLines 1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/DTMFMethod RFC2833
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/PSTNFailOver false
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/PSTNSoftSwitchOver 0
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/OutboundProxy 192.168.1.100
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/OutboundProxyPort 5060
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/UserAgentDomain 192.168.1.1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/UserAgentTransport UDP
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/UserAgentPort 5066
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/ProxyServer 192.168.1.100
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/ProxyServerTransport UDP
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/ProxyServerPort 5060
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/RegistrarServer 192.168.1.100
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/RegistrarServerPort 5060
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/RegistrarServerTransport UDP
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/RegisterExpires -1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/TimerLoginRejected 3600
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/TimerPasswordRejected 3600
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/TimerRegistrationFailed 240
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/TimerSubscribtionFailed 14400
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/SIPEventSubscribeNumberOfElements 1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/EventSubscribe/0/Notifier ""
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/SIP/EventSubscribe/0/ExpireTime -1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/Enable Enabled
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/DirectoryNumber 9100
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/SIP/AuthUserName 9100
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/SIP/AuthPassword monPaSSword
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/SIP/URI "sip:9100@192.168.1.100"
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/CallingFeatures/CallerIDEnable 1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/CallingFeatures/CallerIDNameEnable 0
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/CallingFeatures/CallWaitingEnable 1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/CallingFeatures/ACOEnable 1
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/CallingFeatures/MWIEnable 0
rg_conf_set /voip/VoiceService/0/VoiceProfile/0/Line/0/CallingFeatures/VMWIEnable 0
reconf 1

FHO Corp

Etudiant dans les télécoms et réseaux. Barbare sur son PC, Bourrin en jeux vidéos, adorable le reste du temps :D Adore farfouiller box internet, objets connectés et autres gadgets afin de comprendre leur fonctionnement ou détecter d’éventuelles failles de sécurité.

Vous aimerez aussi...

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *