# wget downloads.sourceforge.net/project/chan-sccp-b/V4/Chan_SCCP-4.1.0_RC1.tar.gz
# tar xvfz Chan_SCCP-4.1.0_RC1.tar.gz
asterisk-devel -> asterisk-devel-11.3.0-1.1.x86_64.rpm
asterisk-mysql -> asterisk-mysql-11.3.0-1.1.x86_64.rpm (Needed for CDR to work)
asterisk -> asterisk-11.3.0-1.1.x86_64.rpm (Go to the Advanced search and put a check on the desired OS. Search for a different time.)
# yum erase asterisk*
# yum install asterisk-devel-11.3.0-1.1.x86_64.rpm
# yum install asterisk-mysql-11.3.0-1.1.x86_64.rpm
# yum install asterisk-11.3.0-1.1.x86_64.rpm
# /usr/bin/amportal restart
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
# cd Chan_SCCP-4.1.0_RC1
# yum install make
# ./configure
# make
# make install
, modules.conf
# nano /etc/asterisk/modules.conf
Chan_sccp :
noload => chan_skinny.so
load => chan_sccp.so
Asterisk FreePBX- :
# /usr/bin/amportal restart
# asterisk -rvvvvvvvvvvv
# sccp show devices
. . )
, SCCP , .
3
.
Cisco . Cisco. , , , , , .
tftp , . ? . , , .
# nano /etc/xinetd.d/tftp
server_args = -s -t 30 /tftpboot -v
, xinetd
# /etc/init.d/xinetd restart
:
# tail -f /var/log/messages
! tftp DHCP. 1-2 , , "Network". **#* .
DHCP Debian-, :
# nano /etc/dhcp/dhcpd.conf
next-server 192.168.1.x;
option tftp-server-name "192.168.1.x";
* - - .
, , tftp, .
: , /tftpboot , MAC, -. - E0:2F:6D:64:40:24, , - SEPE02F6D644024.cnf.xml. , web- .
.
, .
Cisco IP Phone CP-3905G
, SIP.
/tftpboot/ .
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <devicePool> <dateTimeSetting> <tzdata> <tzolsonversion>2013o</tzolsonversion> <tzupdater>tzdatacsv.csv</tzupdater> </tzdata> <dateTemplate>DMY</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <olsonTimeZone>Russian Standard/Daylight Time</olsonTimeZone> <ntps> <ntp> <name>192.168.1.xxx</name> # ntp <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> </devicePool> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.xxx</processNodeName> # Asterisk </callManager> </member> </members> </callManagerGroup> <sipProfile> <preferredCodec>g711alaw</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <sipLines> <line button="1"> <name>103</name> # <displayName>103</displayName> # <authName>103</authName> # <authPassword>Password</authPassword> # <contact>103</contact> # </line> </sipLines> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <loadInformation>CP3905.9-2-2-0</loadInformation> # . web- . <transportLayerProtocol>2</transportLayerProtocol> </device>
*
- PBX Extension c .
Cisco Unified IP Conference Station 7937G
.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
sccp ,
# nano /etc/asterisk/sccp.conf
general , sccp :
;=========================================================================================
[general]
servername = PBX
keepalive = 60
debug = 0
context = from-internal-xfer
dateformat = DMY
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=ru
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
dnd = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
trustphoneip = no
private = on
callanswerorder=oldestfirst
protocolversion=17
hotline_enabled=yes
hotline_context=from-internal-xfer
hotline_extension=11111
:
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G 192.168.1.
description = Conference Room
devicetype = 7937
type = device
button = line, 110
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
imageversion = apps37sccp.1-4-4-0
[110]
id = 110
type = line
label = Phone 110
description = Line 110
cid_name = CONFROOM
cid_num = 110
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Cisco IP Phone CP-7925G
WiFi . , WiFi , .. , WPA2-PSK ! , WPA.
SEPXXXXXXXXXXXX.cnf.xml
<Default> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <mgcpPorts> <listen>2427</listen> <keepAlive>2428</keepAlive> </mgcpPorts> </ports> <processNodeName></processNodeName> </callManager> </member> </members> </callManagerGroup> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <servicesURL></servicesURL> </Default>
# nano /etc/asterisk/sccp.conf
[SEPXXXXXXXXXXXX] ;(wifi) MAC of 7925G 192.168.1.96
description = WiFi1
devicetype = 7925
type = device
button = line, 104
deny=0.0.0.0/0.0.0.0 ; Same as general
permit=0.0.0.0/0.0.0.0 ; Same as general
;imageversion = apps37sccp.1-4-4-0
pickupcontext = sccp
tzoffset = +0
transfer = on
trustphoneip = no
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
;imageversion = apps37sccp.1-4-4-0
[104]
id = 104
type = line
label = Phone 104
description = Line 104
cid_name = WiFi1
cid_num = 104
echocancel = off
context = from-internal-xfer
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=ru
echocancel = on
silencesuppression = off
"imageversion = apps37sccp.1-4-4-0"
Unified IP Phone CP-7965
. , Asterisk- , 7 ( ).
- 8(5),SCCP. , SIP-(- ), SIP cisco 9(3), Asterisk-, .. Cisco SIP " " TCP UDP. Extension-, .
- # . - 123456789*0#. tftp . ! 9- , , .. 8(5) . (, , ).
SIP , . Nat=yes extension- PBX-, , . , -, .
8(5)SIP
SEPXXXXXXXXXXXX.cnf.xml
<device> <deviceProtocol>SIP</deviceProtocol> <sshAccess>1</sshAccess> <sshUserId>admin</sshUserId> <sshPassword>admin</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D/M/Y</dateTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>192.168.1.XXX</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member priority="0"> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> <processNodeName>192.168.1.XX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort>5060</backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-serviceuri-cfwdall</callForwardURI> <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI> <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI> <callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI> <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI> <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI> <rfc2543Hold>false</rfc2543Hold> <callHoldRingback>2</callHoldRingback> <localCfwdEnable>true</localCfwdEnable> <semiAttendedTransfer>true</semiAttendedTransfer> <anonymousCallBlock>2</anonymousCallBlock> <callerIdBlocking>2</callerIdBlocking> <dndControl>0</dndControl> <remoteCcEnable>true</remoteCcEnable> </sipCallFeatures> <sipStack> <sipInviteRetx>6</sipInviteRetx> <sipRetx>10</sipRetx> <timerInviteExpires>180</timerInviteExpires> <timerRegisterExpires>3600</timerRegisterExpires> <timerRegisterDelta>5</timerRegisterDelta> <timerKeepAliveExpires>120</timerKeepAliveExpires> <timerSubscribeExpires>120</timerSubscribeExpires> <timerSubscribeDelta>5</timerSubscribeDelta> <timerT1>500</timerT1> <timerT2>4000</timerT2> <maxRedirects>70</maxRedirects> <remotePartyID>false</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> <phoneLabel>CISCO</phoneLabel> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <sipLines> <line button="1"> # <featureID>9</featureID> <featureLabel>BUTTON1</featureLabel> <proxy>192.168.1.XX</proxy> <port>5060</port> <name>100</name> <displayName>MAIN</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <authName>100</authName> <authPassword>password</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>*99</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact>100</contact> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> <featureID>20</featureID> <featureLabel>Menu</featureLabel> <serviceURI>http://example.domain.ext/services/menu.xml</serviceURI> </line> </sipLines> <voipControlPort>5060</voipControlPort> <startMediaPort>16348</startMediaPort> <stopMediaPort>20134</stopMediaPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> <softKeyFile></softKeyFile> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <loadInformation>SIP45.8-5-4S</loadInformation> ################### - . <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>0</webAccess> <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive> <displayOnTime>00:00</displayOnTime> <displayOnDuration>00:00</displayOnDuration> <displayIdleTimeout>00:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer></loadServer> </vendorConfig> <userLocale> <name></name> <uid></uid> <langCode>en_US</langCode> <version>1.0.0.0-1</version> <winCharSet>iso-8859-1</winCharSet> </userLocale> <networkLocale></networkLocale> <networkLocaleInfo> <name></name> <uid></uid> <version>1.0.0.0-1</version> </networkLocaleInfo> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL>http://example.domain.ext/services/authenticate.php</authenticationURL> <directoryURL>http://example.domain.ext/services/directory.php</directoryURL> <servicesURL>http://example.domain.ext/services/menu.xml</servicesURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>4</transportLayerProtocol> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> </device>
Extension. NAT.
XMLDefault.cnf.xml
. :
<loadInformation436 model=”Cisco 7965″>SIP45.8-5-4S</loadInformation436> <loadInformation7 model="Cisco Phone 7937">apps37sccp.1-4-4-0</loadInformation7> <DIALTEMPLATE> <TEMPLATE MATCH="8,800......." Timeout="1"/> <!— . 8 --> <TEMPLATE MATCH="8,.........." Timeout="1"/> <TEMPLATE MATCH="0.." Timeout="1"/> <TEMPLATE MATCH="1..." Timeout="1"/> <TEMPLATE MATCH="2..." Timeout="1"/> <TEMPLATE MATCH="3..." Timeout="1"/> <TEMPLATE MATCH="4..." Timeout="1"/> <TEMPLATE MATCH="[5-7]..." Timeout="1"/> <TEMPLATE MATCH="\*41...." Timeout="0"/> <!— Asterisk --> <TEMPLATE MATCH="*" Timeout="3"/> <!— --> </DIALTEMPLATE> <userLocale><name>Russian_Russia</name> <uid></uid> <langCode>ru_RU</langCode> <version></version> <winCharSet>utf-8</winCharSet> </userLocale>
* . . .
, !
. Cisco , ( - ) . , , . , . , 9(3) - , 8(5) - . , .. 9(3), , , .
, 3 , , - . !
Source: https://habr.com/ru/post/182798/