📜 ⬆️ ⬇️

We are friends with Cisco IP Phone CP-7925G (WiFi), Cisco IP Conference Station CP-7937G, CP-3905G and Unified IP Phone CP-7965 with Asterisk

Foreword


Once upon a time, it was necessary to configure Cisco network equipment, then finished courses and received a Cisco CCNA Discovery certificate. There was no limit to the joy of working in the console on routers and switches. The times have ended happily, and over the past few years I have very rarely met their equipment, and even less often set it up. But, recently it was necessary to transfer the entire client's office to IP telephony, and they insistently claimed that they needed only Cisco phones and nothing else. Plus, you need a conference call to the negotiation. Since there were not many options, and a budget, too, I had to abandon the telephone station in favor of Asterisk. It turned out not as smooth as we would like.


Step 1


The first step, of course, is the selection and purchase. This stage seemed insurmountable for a very long time. So, what we need:
- Cisco IP Phone CP-7925G - a cordless phone, similar in pictures to a standard Panasonic DECT, with only a color display. (in fact it was not killed, rubberized shovel)
- Cisco Unified IP Conference Station 7937G - a conference station, very beautiful and impressive. Black and white display. I didn’t take 2 additional microphones, it didn’t fit into the budget, and the negotiation room is not very big.
- Cisco IP Phone CP-3905G - nothing special, in appearance - a normal phone with a black and white display.
- Unified IP Phone CP-7965 - a great phone for the secretary with a bunch of useful features. It has a color 5-inch TFT display, 16-bit color depth (you can even watch videos), and a lot of all sorts of useful features.

Wow, how many goodies, let's buy!

I will not mention any organizations, but we bought with problems. After it became clear what equipment we would buy, forums and various reviews were studied. Honestly - I bought Cisco for the first time, previously I was just in the process of setting up, I don’t know about other equipment, but not everything is fine with phones.
It turned out that simply buying a phone would not work, for each phone for work it is necessary to purchase a bunch of other wires and small equipment. The problem is that on the Internet there are no pictures of these devices, not descriptions. We thought that it would be very painful to do this, so they called one of the Cisco representatives in Moscow, and asked to send an estimate for the connection and installation of the above hardware. Yes, yes, I understand that this is not fair, but what can you do? The estimate was made very long, in a few days we received it and were surprised:
- The figure in the estimate for setting this up all the good was significant . Although she was not very interested in us.
- We began to disassemble the equipment in the estimate and it turned out that something does not converge. For example, CP-7925G phones should be 2, and it would be logical to get 2 batteries for them, but they turned out to be three, well, in that spirit. After several calls, it turned out that they themselves do not understand what they are connecting to and what indices of the equipment are.
For a bottle of beer, an estimate was compiled and streamlined. I will give the necessary components for each device that we bought.
')
CP-7925G

Cisco IP Phone CP-7925G Phone itself + CP BATT - 7925 EXT Battery + Cisco 7925G Power Supply Charger. Ordinary mini-usb adapter turned out . (Actually there was still a docking station to be, but either we didn’t count something, or they, the adapter for the docking station arrived, but the station itself didn’t. Well, okay)

CP-7937G

Cisco Unified IP Conference Station 7937G The conference station itself + CP-7937-PWR-SPL Cisco Power Splitter POE + Cisco 7900 Series Transformer Power Cord Splitter Power cord from outlet to power supply. Ordinary. In fact, you can take the power cord from the computer, but who knew? + Cisco IP Phone power transformer for the 7900 phone series. Power Supply

CP-3905G

Cisco IP Phone CP-3905G phone itself . + CP3905 —PWR-CE Cisco power Adapter for Phone 3905G. Power adapter.

CP-7965

Unified IP Phone CP-7965 Phone itself . + Cisco 7900 Series Transformer Power Cord Power cord from outlet to power supply. Ordinary. + Cisco IP Phone power transformer for the 7900 phone series. Power Supply

Step 2


Finally! We brought equipment, all sorts of boxes, small, large. There was a matter of getting to photographing, but there was no time, no apparatus at hand, took a couple of pictures on the phone, and set about configuring, the time was running out. Do not kick the quality and quantity of shots.






And, yes, laughed even with the fact that the 7925 came in the box, less than the battery came to him.

Let's customize already!

I do not want to breed demagogy about iron for Asterisk, so I took what was at hand. I chose FreePBX Distro, because I have experience installing it and it works right away. Recorded on USB, stuck, installed. At this step there should be no problems. The only thing that I will say in advance is in vain, I chose Distro, if I set up more, next time I will choose pure CentOS. The only difference is that I'm not sure that the ntp server and tftp server are configured on CentOS initially. If not configured - Google to help.

After installation, the system is completely ready for operation, but then a big “BUT” appears. Since I did not work with Asterisk and SCCP before (and almost all the phones presented here work on SCCP), I had to read manuals. It became clear from them that in Asterisk the SCCP protocol is presented in the form of the chan_skinny.so module, but it is not enough information on its work with these phones, and they are often asked to install chan-sccp.so, although there is a clear explanation for the question “Why?” never found. I decided to follow the example in order not to waste time.

You can't find chan_sccp itself in repositories, you need to install them from source. Nothing complicated, swing from here:
# wget downloads.sourceforge.net/project/chan-sccp-b/V4/Chan_SCCP-4.1.0_RC1.tar.gz
Unpack:
# tar xvfz Chan_SCCP-4.1.0_RC1.tar.gz
And then you need to install, but looking ahead, I’ll say that it’s impossible to install Distro, because it says, when configured, that asterisk is not installed. So it is, the system has asterisk11-core-x64 installed. What to do? everything turned out to be simple:
Go to the base of RPMs and download the packages we need for the desired OS. I have a CentOS6.
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.)


Next you need to cut Asterisk from the system.
# yum erase asterisk*
And install the downloaded rmp-ki
# 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

Reloading amportal
# /usr/bin/amportal restart

And you can collect SCCP
# 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/


All Articles