Difference between revisions of "Ascom/Generic VoIP/common"

From Teknologisk videncenter
Jump to: navigation, search
m (Wireshark)
m (Part 3)
 
(42 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
=Learning materials=
 
=Learning materials=
 
*[http://mars.tekkom.dk/data/ascom/module2/01.02%20-%20Module%202%20Session%201%20diasshow.ppsx Session 1] (PowerPoint diasshow)
 
*[http://mars.tekkom.dk/data/ascom/module2/01.02%20-%20Module%202%20Session%201%20diasshow.ppsx Session 1] (PowerPoint diasshow)
 +
*[http://mars.tekkom.dk/data/ascom/module2/02.02%20-%20Module%202%20Session%202%20diasshow.ppsx Session 2] (PowerPoint diasshow)
 +
*[http://mars.tekkom.dk/data/ascom/module2/03.01%20-%20Module%202%20Session%203.ppsx Session 3] (PowerPoint diasshow)
 +
*[http://mars.tekkom.dk/data/ascom/module2/04.01%20-%20Module%202%20Session%204.ppsx Session 4] (PowerPoint diasshow)
 +
*[http://mars.tekkom.dk/data/ascom/module2/05.01%20-%20Module%202%20Session%205.ppsx Session 5] (PowerPoint diasshow)
 +
==VoIP abbreviations==
 +
*[[VoIP abbreviations]]
 +
 
=Exercises=
 
=Exercises=
==Wireshark==
+
*[http://mars.merhot.dk/data/voip/FreePBX_til_kursus.tgz FreePBX_til_kursus.tgz]
 +
 
 +
** Eksempel til filen /etc/dhcp/dhcpd.conf
 +
** Eksempel til /etc/xinetd.d/tftp
 +
*[[CentOS interface configuration]] example
 +
*Slå Firewall fra og tilføj statiske router til andre grupper [[FreePBX|Eksempel]]
 +
== Part 2 ==
 +
<source lang=cli>
 +
cd /home
 +
wget http://mars.merhot.dk/data/voip/FreePBX_til_kursus.tgz
 +
tar xvzf FreePBX_til_kursus.tgz
 +
tar xvzf asterisk.tgz
 +
nano /etc/xinetd.d/tftp 
 +
</source>
 +
Ret filen /etc/xinetd.d/tftp til rodkatalog /home/asterisk/tftp
 +
== Part 3 ==
 +
'''1:''' Fjern gamle konfigurationer, med følgende kommando og slå Firewall fra
 +
<source lang=cli>
 +
/bin/rm /home/asterisk/tftp/SIP000*
 +
service fail2ban stop
 +
chkconfig --level 2345 fail2ban off
 +
chkconfig --level 2345 iptables off
 +
service iptables stop
 +
yum install ed
 +
</source>
 +
 
 +
'''2:''' Opret extension til Cisco telefon i FreePBX
 +
Opret Cisco telefonen som''chan_sip'' telefon. '''Bemærk:''' Chan_sip anvender UDP port 5160 !!!
 +
 
 +
'''3:''' Opret filer til Cisco telefonen (Bliver lagt i tftp folderen) 
 +
<source lang=cli>
 +
/home/asterisk/bin/FreePBX_menu_cisco
 +
</source>
 +
 
 +
'''4'''
 +
Ret filen /home/asterisk/SIP<MAC-ADRESSE>.cnf og ret 5060 til 5160 (Alle steder)
 +
 
 +
'''5:''' Reboot telefonen, og se om den registrerer sig
 +
 
 +
Ses med:
 +
<source lang=cli>
 +
asterisk -r
 +
sip show peers
 +
</source>
 +
 
 +
'''6:'''
 +
===Reset telefon metode 1===
 +
Vælg Config find Unlock indtast password '''cisco'''
 +
Vælg Networking find '''Erase configuration''' vælg '''yes''' og '''Safe'''(Vistnok)
 +
 
 +
== Part 4==
 +
*IAX trunks mellem grupper
 +
** Link til [[FreePBX/Udvidede faciliteter/IAX2|Eksempel på Trunk]]
 +
***Gruppe 1 WAN: 172.16.93.46 - 1XXX
 +
***Gruppe 2 WAN: 172.16.93.37 - 2XXX
 +
***Gruppe 3 WAN: 172.16.93.44 - 3XXX
 +
***Gruppe 4 WAN: 172.16.93.240 - 4XXX
 +
***Gruppe 5 WAN: 172.16.93.51 - 5XXX
 +
**Fælles brugernavn og password
 +
** Bruger: asterisk Password: l8heise
 +
 
 +
==Part 5==
 +
 
 +
 
 +
*[[FreePBX/Udvidede faciliteter]]
 +
*[[media:Øvelse Standard v2.0.ppt|PowerPoint skabelon eksempel på call-flow]]
 +
===Eksempler på opgaver===
 +
*[[TDC Scale/Viborg kommune|Viborg kommune]]
 +
*[[TDC Scale/Planlægningsøvelse 1|Lægehus løsning]]
 +
 
 +
== Group 1 ==
 +
*Extensions: 1XXX
 +
* Add eth1
 +
** network 172.21.0.0/24
 +
** IP address 172.21.0.1
 +
* Add DHCP server on 172.21.0.0 range 172.21.0.100 to 172.21.0.199
 +
** Add option 150 (ftp) as 172.21.0.1
 +
* Add tftp server with /home/asterisk/tftp
 +
* Unpack asterisk.tgz in the /home directory
 +
== Group 2 ==
 +
*Extensions: 2XXX
 +
* Add eth1
 +
** network 172.22.0.0/24
 +
** IP address 172.22.0.1
 +
* Add DHCP server on 172.22.0.0 range 172.22.0.100 to 172.22.0.199
 +
** Add option 150 (ftp) as 172.22.0.1
 +
* Add tftp server with /home/asterisk/tftp
 +
* Unpack asterisk.tgz in the /home directory
 +
== Group 3 ==
 +
*Extensions: 3XXX
 +
* Add eth1
 +
** network 172.23.0.0/24
 +
** IP address 172.23.0.1
 +
* Add DHCP server on 172.23.0.0 range 172.23.0.100 to 172.23.0.199
 +
** Add option 150 (ftp) as 172.23.0.1
 +
* Add tftp server with /home/asterisk/tftp
 +
* Unpack asterisk.tgz in the /home directory
 +
== Group 4 ==
 +
*Extensions: 4XXX
 +
* Add eth1
 +
** network 172.24.0.0/24
 +
** IP address 172.24.0.1
 +
* Add DHCP server on 172.24.0.0 range 172.24.0.100 to 172.24.0.199
 +
** Add option 150 (ftp) as 172.24.0.1
 +
* Add tftp server with /home/asterisk/tftp
 +
* Unpack asterisk.tgz in the /home directory
 +
== Group 5 ==
 +
*Extensions: 5XXX
 +
* Add eth1
 +
** network 172.25.0.0/24
 +
** IP address 172.25.0.1
 +
* Add DHCP server on 172.25.0.0 range 172.25.0.100 to 172.25.0.199
 +
** Add option 150 (ftp) as 172.25.0.1
 +
* Add tftp server with /home/asterisk/tftp
 +
* Unpack asterisk.tgz in the /home directory
 +
 
 +
===Session 1===
 
*[http://mars.tekkom.dk/data/ascom/module2/01.01%20-%20Wireshark%20exercise%201.pdf Wireshark exercise 1]
 
*[http://mars.tekkom.dk/data/ascom/module2/01.01%20-%20Wireshark%20exercise%201.pdf Wireshark exercise 1]
 
*[http://mars.tekkom.dk/data/ascom/module2/01.02%20-%20Wireshark%20exercise.pdf Wireshark exercise 2]
 
*[http://mars.tekkom.dk/data/ascom/module2/01.02%20-%20Wireshark%20exercise.pdf Wireshark exercise 2]
 +
===Session 2===
 +
*[http://mars.tekkom.dk/data/ascom/module2/02.01%20-%20Wireshark%20Session%202%20exercise%201.pdf Wireshark session 2 exercise 1]
 +
**[http://mars.tekkom.dk/data/ascom/module2/02.01%20-%20Wireshark%20Session%202%20exercise%201.pcapng 02.01 – Wireshark Session 2 exercise 1.pcapng] (Capture file for Wireshark Session 2 exercise 1)
 +
===Session 3===
 +
*[http://mars.tekkom.dk/data/ascom/module2/03.01%20-%20call%20flow%20exercise.pdf Call Flow exercise]
 +
**[http://mars.tekkom.dk/data/ascom/module2/03.01%20-%20Call%20flow%20exercise.pptx Power Point to call flow exercise]
  
 
=Additional resources=
 
=Additional resources=
 
*[[VoIP abbreviations]]
 
*[[VoIP abbreviations]]
 
*[[Switch port mirroring]]
 
*[[Switch port mirroring]]
*[http://www.wireshark.org Wireshark] honmepage
+
*[http://www.wireshark.org Wireshark] homepage
 +
*[http://radio-1.ee.dal.ca/~ilow/telco/pdf/isdn_suppl_services.pdf ISDN services pocket guide]
 
==ISDN==
 
==ISDN==
  
Line 23: Line 153:
 
==VoIP==
 
==VoIP==
 
*[http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/admin/8_5_1/ccmsys/a08procl.pdf Understanding IP Telephony Protocols] (Loads PDF)
 
*[http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/admin/8_5_1/ccmsys/a08procl.pdf Understanding IP Telephony Protocols] (Loads PDF)
 
+
*[http://en.wikipedia.org/wiki/Enhanced_911#VoIP_enhanced_911 Emergency call E911/E112]
 
[[Category:Ascom]]
 
[[Category:Ascom]]
 +
*[http://medusa.sdsu.edu/network/CS596/Lectures/ch28_RT.pdf Medusa: Multimedia over IP](RTP, RTCP, SIP,RSTP)
 +
*[http://quiz.mercantec.dk/quiz.php?u852q655v-1833988578 VoIP MCQ]

Latest revision as of 13:28, 13 June 2017

Learning materials

VoIP abbreviations

Exercises

Part 2

cd /home
wget http://mars.merhot.dk/data/voip/FreePBX_til_kursus.tgz
tar xvzf FreePBX_til_kursus.tgz
tar xvzf asterisk.tgz
nano /etc/xinetd.d/tftp

Ret filen /etc/xinetd.d/tftp til rodkatalog /home/asterisk/tftp

Part 3

1: Fjern gamle konfigurationer, med følgende kommando og slå Firewall fra

/bin/rm /home/asterisk/tftp/SIP000*
service fail2ban stop
chkconfig --level 2345 fail2ban off
chkconfig --level 2345 iptables off
service iptables stop
yum install ed

2: Opret extension til Cisco telefon i FreePBX Opret Cisco telefonen somchan_sip telefon. Bemærk: Chan_sip anvender UDP port 5160 !!!

3: Opret filer til Cisco telefonen (Bliver lagt i tftp folderen)

/home/asterisk/bin/FreePBX_menu_cisco

4 Ret filen /home/asterisk/SIP<MAC-ADRESSE>.cnf og ret 5060 til 5160 (Alle steder)

5: Reboot telefonen, og se om den registrerer sig

Ses med:

asterisk -r
sip show peers

6:

Reset telefon metode 1

Vælg Config find Unlock indtast password cisco Vælg Networking find Erase configuration vælg yes og Safe(Vistnok)

Part 4

  • IAX trunks mellem grupper
    • Link til Eksempel på Trunk
      • Gruppe 1 WAN: 172.16.93.46 - 1XXX
      • Gruppe 2 WAN: 172.16.93.37 - 2XXX
      • Gruppe 3 WAN: 172.16.93.44 - 3XXX
      • Gruppe 4 WAN: 172.16.93.240 - 4XXX
      • Gruppe 5 WAN: 172.16.93.51 - 5XXX
    • Fælles brugernavn og password
    • Bruger: asterisk Password: l8heise

Part 5

Eksempler på opgaver

Group 1

  • Extensions: 1XXX
  • Add eth1
    • network 172.21.0.0/24
    • IP address 172.21.0.1
  • Add DHCP server on 172.21.0.0 range 172.21.0.100 to 172.21.0.199
    • Add option 150 (ftp) as 172.21.0.1
  • Add tftp server with /home/asterisk/tftp
  • Unpack asterisk.tgz in the /home directory

Group 2

  • Extensions: 2XXX
  • Add eth1
    • network 172.22.0.0/24
    • IP address 172.22.0.1
  • Add DHCP server on 172.22.0.0 range 172.22.0.100 to 172.22.0.199
    • Add option 150 (ftp) as 172.22.0.1
  • Add tftp server with /home/asterisk/tftp
  • Unpack asterisk.tgz in the /home directory

Group 3

  • Extensions: 3XXX
  • Add eth1
    • network 172.23.0.0/24
    • IP address 172.23.0.1
  • Add DHCP server on 172.23.0.0 range 172.23.0.100 to 172.23.0.199
    • Add option 150 (ftp) as 172.23.0.1
  • Add tftp server with /home/asterisk/tftp
  • Unpack asterisk.tgz in the /home directory

Group 4

  • Extensions: 4XXX
  • Add eth1
    • network 172.24.0.0/24
    • IP address 172.24.0.1
  • Add DHCP server on 172.24.0.0 range 172.24.0.100 to 172.24.0.199
    • Add option 150 (ftp) as 172.24.0.1
  • Add tftp server with /home/asterisk/tftp
  • Unpack asterisk.tgz in the /home directory

Group 5

  • Extensions: 5XXX
  • Add eth1
    • network 172.25.0.0/24
    • IP address 172.25.0.1
  • Add DHCP server on 172.25.0.0 range 172.25.0.100 to 172.25.0.199
    • Add option 150 (ftp) as 172.25.0.1
  • Add tftp server with /home/asterisk/tftp
  • Unpack asterisk.tgz in the /home directory

Session 1

Session 2

Session 3

Additional resources

ISDN

ISDN PRI

VoIP