Difference between revisions of "Digitronco SIP internet - Oi"
Jump to navigation
Jump to search
(→AG561) |
(→AG561) |
||
| Line 43: | Line 43: | ||
system reboot | system reboot | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | <html> | ||
| + | <!-- Formulário simples para MediaWiki --> | ||
| + | <div id="Formulario_561_OI"> | ||
| + | <h3>Insira os dados da conta SIP:</h3> | ||
| + | <label>Número chave:</label><br> | ||
| + | <input type="text" id="campo1" placeholder="Digite algo..." /><br><br> | ||
| + | |||
| + | <label>Senha conta SIP:</label><br> | ||
| + | <input type="text" id="campo2" placeholder="Digite outro valor..." /><br><br> | ||
| + | |||
| + | <label>IP SBC:</label><br> | ||
| + | <input type="text" id="campo3" placeholder="Digite outro valor..." /><br><br> | ||
| + | |||
| + | <button onclick="gerarResposta()">Gerar script CLI</button> | ||
| + | </div> | ||
| + | |||
| + | <!-- Área onde a resposta será exibida --> | ||
| + | <div id="resultado" style="margin-top:15px; font-weight:bold; color:#336699;"></div> | ||
| + | |||
| + | <script> | ||
| + | function gerarResposta() { | ||
| + | const v1 = document.getElementById("campo1").value.trim(); | ||
| + | const v2 = document.getElementById("campo2").value.trim(); | ||
| + | const v3 = document.getElementById("campo3").value.trim(); | ||
| + | |||
| + | if (!v1 || !v2 || !v3) { | ||
| + | document.getElementById("resultado").innerHTML = "⚠️ Preencha ambos os campos!"; | ||
| + | return; | ||
| + | } | ||
| + | |||
| + | // Cada valor em uma linha diferente com <br> | ||
| + | const resposta = | ||
| + | //"Copie e cole o script na interface CLI:"+ "<br>" + | ||
| + | "config sip peer trunk1 delete"+ "<br>" + | ||
| + | "config sip prack yes"+ "<br>" + | ||
| + | "config sip session_expires 300"+ "<br>" + | ||
| + | "config sip session_minse 90"+ "<br>" + | ||
| + | "config sip bindport 5060"+ "<br>" + | ||
| + | "config sip peer "+v1+" register yes"+ "<br>" + | ||
| + | "config sip peer "+v1+" username "+v1+"<br>" + | ||
| + | "config sip peer "+v1+" secret "+v2+"<br>" + | ||
| + | "config sip peer "+v1+" host "+v3+"<br>" + | ||
| + | "config sip peer "+v1+" port 5061"+ "<br>" + | ||
| + | "config sip peer "+v1+" contactuser "+v1+"<br>" + | ||
| + | "config sip peer "+v1+" dtmfmode rfc2833"+ "<br>" + | ||
| + | "config sip peer "+v1+" transport tls"+ "<br>" + | ||
| + | "config sip peer "+v1+" codecs alaw"+ "<br>" + | ||
| + | "config sip peer "+v1+" options_keepalive yes"+ "<br>" + | ||
| + | "config dialplan rule sip_trunk1_default source_peer sip "+v1+"<br>" + | ||
| + | "config dialplan rule sip_trunk1_default destination_peer tdm group1"+ "<br>" + | ||
| + | "config dialplan rule sip_trunk1_default outgoing_called {:-4}"+ "<br>" + | ||
| + | "config dialplan rule tdm_group1_default source_peer tdm group1"+ "<br>" + | ||
| + | "config dialplan rule tdm_group1_default destination_peer sip "+v1+"<br>" + | ||
| + | "config dialplan rule tdm_group1_default outgoing_callerid "+v1+"<br>" + | ||
| + | "config save"+ "<br>" + | ||
| + | "config apply"+ "<br>" + | ||
| + | "system reboot"; | ||
| + | |||
| + | //v1 + "<br>" + | ||
| + | //v2+v3; | ||
| + | document.getElementById("resultado").innerHTML = resposta; | ||
| + | } | ||
| + | </script> | ||
| + | </html> | ||
==AGOS== | ==AGOS== | ||
Revision as of 16:32, 15 October 2025
Configurações para a operadora Oi
Acesse o equipamento utilizando a interface CLI, porta 22 SSH. Mais detalhes sobre a conexão podem ser obtidos no manual do equipamento.
AG561
É necessário a versão de firmware 9.2 ou superior.
Através da interface CLI, executar o script abaixo:
Obs. Os campos entre <> devem ser alterados de acordo com os dados de sua conta, a qual a operadora enviou.
config sip peer trunk1 delete
!
config sip prack yes
config sip session_expires 300
config sip session_minse 90
config sip bindport 5060
!
config sip peer <numero_chave> register yes
config sip peer <numero_chave> username <numero_chave>
config sip peer <numero_chave> secret <senha>
config sip peer <numero_chave> host <ip_sbc_oi>
config sip peer <numero_chave> port 5061
config sip peer <numero_chave> contactuser <numero_chave>
config sip peer <numero_chave> dtmfmode rfc2833
config sip peer <numero_chave> transport tls
config sip peer <numero_chave> codecs alaw
config sip peer <numero_chave> options_keepalive yes
!
config dialplan rule sip_trunk1_default source_peer sip <numero_chave>
config dialplan rule sip_trunk1_default destination_peer tdm group1
config dialplan rule sip_trunk1_default outgoing_called {:-4}
!
config dialplan rule tdm_group1_default source_peer tdm group1
config dialplan rule tdm_group1_default destination_peer sip <numero_chave>
config dialplan rule tdm_group1_default outgoing_callerid <numero_chave>
!
config save
config apply
!
system reboot
Insira os dados da conta SIP:
AGOS
É necessário a versão de firmware AGOS 4.58.5 ou supeior.
Através da interface CLI, executar o script abaixo:
Obs. Os campos entre <> devem ser alterados de acordo com os dados de sua conta, a qual a operadora enviou.
config sip peer trunk1 delete
!
config sip prack yes
config sip session_expires 300
config sip session_minse 90
config sip bindport 5060
!
config sip peer <numero_chave> register yes
config sip peer <numero_chave> username <numero_chave>
config sip peer <numero_chave> secret <senha>
config sip peer <numero_chave> host <ip_sbc_oi>
config sip peer <numero_chave> port 5061
config sip peer <numero_chave> contactuser <numero_chave>
config sip peer <numero_chave> dtmfmode rfc2833
config sip peer <numero_chave> transport tls
config sip peer <numero_chave> codecs alaw
config sip peer <numero_chave> options_keepalive yes
!
config dialplan rule sip_trunk1_default source_peer sip <numero_chave>
config dialplan rule sip_trunk1_default outgoing_called {:-4}
!
config dialplan rule tdm_group1_default destination_peers 1 peer sip <numero_chave>
config dialplan rule tdm_group1_default outgoing_callerid <numero_chave>
!
config save
config apply
!
system reboot