LAN0 - DHCP
server# cat sip.conf
... [103] type=friend secret=tpassword103 ; callerid=Sidorov Sidor Sidorovitch <103> host=dynamic [104] type=friend secret=tpassword104 ; callerid=Koshkin Vasiliy Myrkovitch <104> host=dynamic
server# cat sip.conf
... [voip1_00000X] type=peer secret=spasswordX defaultuser=00000X host=isp.un fromdomain=isp.un fromuser=00000X
server# cat extensions.conf
... exten => _8XXXXXXXXXX,1,Dial(SIP/voip1_00000X/${EXTEN})
root@asterisk.isp.un:~# cat sip.conf
... [000001] type=user secret=spassword1 host=dynamic context=voip ... [000006] type=user secret=spassword6 host=dynamic context=voip
root@asterisk.isp.un:~# cat /etc/asterisk/extensions.conf
... [voip] exten => _8XXXXXXXXXX,1,SIP/sipnet/${EXTEN})
server# cat sip.conf
[general] ... register => 00000X:spasswordX@isp.un/voip1_00000X ... [voip1_00000X] type=friend insecure=invite ...
server# cat extensions.conf
... exten => voip1_00000X,1,Dial(SIP/101&SIP/102&SIP/103&SIP/104)
server# cat sip.conf
... [000001] type=friend ... [000006] type=friend ...
server# cat extensions.conf
... [office] ... exten => _80X,1,Dial(SIP/00000${EXTEN:2}) exten => sipnet,1,Dial(SIP/000001&SIP/000002&SIP/000003&SIP/000004&SIP/000005&SIP/000006) ...
server# cat sip.conf
... [co1] ; lynksys 3102 fxo type=friend secret=cpassword1 host=dynamic
server# cat extensions.conf
... exten => _8XXXXXXXXXX,1,Dial(SIP/voip1_00000X/${EXTEN}) exten => _8XXXXXXXXXX,n,Dial(SIP/co1/${EXTEN:10}) ... exten => co1,1,Dial(SIP/101&SIP/102&SIP/103&SIP/104)
asterisk.isp.un# cat extensions.conf
[office] .. exten => _70X,1,Dial(SIP/co1/${EXTEN:2}) ... [voip] ;exten => _8XXXXXXXXXX,1,Dial(SIP/co1/${EXTEN:10}) ;exten => _8XXXXXXXXXX,1,SIP/sipnet/${EXTEN})
server# cat sip.conf
... [102] ... disallow=all allow=gsm ...
server# cat sip.conf
[general] ... context=from-office ... [102] ... context=from-internet ... [co1] ... context=incoming ... [voip1_00000X] ... context=incoming ...
server# cat iax.conf
... [corpY] ... type=user ... context=from-corp ...
server# cat extensions.conf
... [from-office] include => to-office include => to-corp include => to-pstn [from-internet] include => to-office include => to-corp [from-corp] include => to-office [to-office] exten => 301 ... exten => _1XX,1,Dial(SIP/${EXTEN}) [to-corp] exten => _0Y1XX,1,Set(CALLERID(num)=0X${CALLERID(num)}) exten => _0Y1XX,n,Dial(IAX2/corpY/${EXTEN:2}) [to-pstn] exten => _8XXXXXXXXXX,1,Dial(SIP/voip1/${EXTEN}) exten => _8XXXXXXXXXX,n,Dial(SIP/co1/${EXTEN:10}) [incoming] exten => co1,1,Dial(SIP/101&SIP/102&SIP/103&SIP/104) exten => voip1_00000X,1,Dial(SIP/101&SIP/102&SIP/103&SIP/104)
server# cat sip.conf
... [000001] ... nat=yes qualify=yes canreinvite=no ... [000006] ... nat=yes qualify=yes canreinvite=no ...
server# cat sip.conf
[general] ... localnet=192.168.X.0/255.255.255.0 externip=172.16.1.X defaultexpiry=60 ... [voip1_000001] ... canreinvite=no ...
server# cat sip.conf
... [102] ... nat=yes canreinvite=no qualify=yes ...
Здравствуйте.
Для проведения занятий по курсу “Астериск” в понедельник 5-го марта РАНО утром в аудитории №9 понадобится:
Рабочие станции (те что у стен обязательно c PCI разъемом) разлитые из образа, который я сделал 18.06.12 в количестве равном кол-ву слушателей, плюс преподская плюс две запасные. Рабочие станции должны стоять по парно, 4 в ряд.
Еще понадобится:
!---------------------------------------------- interface FastEthernet0/8 switchport access vlan 101 ! interface FastEthernet0/3 switchport access vlan 101 ! interface FastEthernet0/6 switchport access vlan 102 ! interface FastEthernet0/7 switchport access vlan 102 ! interface FastEthernet0/10 switchport access vlan 103 ! interface FastEthernet0/11 switchport access vlan 103 ! interface FastEthernet0/14 switchport access vlan 104 ! interface FastEthernet0/15 switchport access vlan 104 ! interface FastEthernet0/18 switchport access vlan 105 ! interface FastEthernet0/19 switchport access vlan 105 ! interface FastEthernet0/20 switchport trunk encapsulation dot1q switchport mode trunk ! interface FastEthernet0/22 switchport access vlan 106 ! interface FastEthernet0/23 switchport access vlan 106 !---------------------------------------------- interface FastEthernet0/8 switchport access vlan 1 ! interface FastEthernet0/3 switchport access vlan 1 ! interface FastEthernet0/6 switchport access vlan 1 ! interface FastEthernet0/7 switchport access vlan 1 ! interface FastEthernet0/10 switchport access vlan 1 ! interface FastEthernet0/11 switchport access vlan 1 ! interface FastEthernet0/14 switchport access vlan 1 ! interface FastEthernet0/15 switchport access vlan 1 ! interface FastEthernet0/18 switchport access vlan 1 ! interface FastEthernet0/19 switchport access vlan 1 ! interface FastEthernet0/22 switchport access vlan 1 ! interface FastEthernet0/23 switchport access vlan 1 !----------------------------------------------