まえがき
むかしむかし、シスコのネットワーク機器を構成する必要がありました。その後、コースを修了し、Cisco CCNA Discovery証明書を受け取りました。 ルーターとスイッチのコンソールで作業することの喜びは際限がありませんでした。 それらの時代は幸せに終わりました。そして、ここ数年、私は彼らの機器を見ることはほとんどなく、セットアップの頻度も少なくなりました。 しかし、最近、クライアントのオフィス全体をIPテレフォニーに移行する必要があり、彼らは、Cisco電話だけが必要で、他には何も必要ないと主張しました。 さらに、会議室で電話会議が必要です。 多くの選択肢と予算もなかったため、アスタリスクを支持して電話交換を放棄しなければなりませんでした。 私たちが望むほどスムーズではないことが判明しました。
ステップ1
もちろん、最初のステップは選択と購入です。 このステップは非常に長い間乗り越えられないようでした。 必要なもの:
-Cisco IP Phone CP-7925G-カラーディスプレイのみを備えた標準のPanasonic DECTと写真が似ているコードレス電話。 (実際、殺されないことが判明した、ゴム引きシャベル)
-Cisco Unified IP Conference Station 7937G-非常に美しく印象的なカンファレンスステーション。 白黒ディスプレイ。 私は2つの追加のマイクを取りませんでした、予算に収まらず、会議室はあまり大きくありませんでした。
-Cisco IP Phone CP-3905G-外観には特別なものはありません-白黒ディスプレイの通常の電話。
-Unified IP Phone CP-7965-秘書向けの便利な機能を備えた大型電話。 カラー5インチTFTディスプレイ、16ビット色深度(ビデオを視聴することもできます)、およびあらゆる種類の有用な特性を備えています。
うわー、いくつのグッズ、買いましょう!
組織については言及しませんが、問題を抱えて購入しました。 どの機器を購入するかが明らかになった後、フォーラムとさまざまなレビューが検討されました。 正直に言って、私は初めてシスコを購入しました。以前は設定にしか関わっていませんでした。他の機器の使い方はわかりませんが、すべてが電話でうまくいくわけではありません。
携帯電話を購入するだけでは機能しません。各携帯電話が機能するためには、あらゆる種類のワイヤーと小型機器を大量に購入する必要があります。 問題は、インターネット上にこれらのデバイスの写真がなく、説明がないことです。 これを行うのは非常に長くて骨の折れる作業になると考えたため、モスクワのシスコの担当者の1人に電話して、上記の鉄の接続と取り付けの見積もりを送信するよう依頼しました。 はい、はい、これは公平ではないことを理解していますが、あなたは何ができますか? 見積もりは非常に長い間作成されましたが、数日後、私たちはそれを受け取って驚きました:
-これらすべてを設定するための見積もりの数値は重要でした。 彼女は私たちにあまり興味がありませんでしたが。
-彼らは見積もりで機器を分解し始め、何かが収束していないことが判明しました。 たとえば、CP-7925G電話は2である必要があり、2つのバッテリーを入手するのが論理的ですが、その精神では3つありました。 何度か電話をかけた結果、彼らは自分自身が何に接続されており、機器がどのようなインデックスを持っているのか理解していないことが判明しました。
それにもかかわらず、ビールのボトルについては、見積もりが作成され整理されました。 購入した各デバイスに必要なコンポーネントを提供します。
CP-7925G
Cisco IP Phone CP-7925G 電話自体 + CP BATT-7925 EXT バッテリー + Cisco 7925G電源充電器。 通常のミニUSBアダプターはであることが判明しました 。 (実際には、ドッキングステーションがあるはずでしたが、何かを数えなかったか、到着した場合、ドッキングステーション用のアダプターが来ましたが、ステーション自体はそうではありませんでした。
CP-7937G
Cisco Unified IP Conference Station 7937G Conference Station 自体 + CP-7937-PWR-SPL Cisco Power Splitter POE + Separator Cisco 7900シリーズトランスの電源コードコンセントから電源までの電源コード。 共通。 実際、コンピューターから電源コードを取り出すことができますが、誰が知っていましたか? + 7900電話シリーズ用のCisco IP Phone電源トランス。 電源
CP-3905G
Cisco IP Phone CP-3905G 電話自体 。 + CP3905 -PWR-CE Phone 3905G用Cisco電源アダプタ。 電源アダプター
CP-7965
Unified IP Phone CP-7965 電話自体 。 + Cisco 7900シリーズトランスの電源コードコンセントから電源への電源コード。 共通。 + 7900電話シリーズ用のCisco IP Phone電源トランス。 電源
ステップ2
さて、ついに! 私たちは機器、多くのあらゆる種類の箱、大小を持ち込みました。 撮影に取り掛かるはずでしたが、手元に時間も機器もありませんでした。電話で写真を数枚撮り、構成を設定しました。締め切りは厳しかったです。 写真の品質と量のためにキックしないでください。
そして、はい、彼らは7925が箱に入ったという事実でさえ笑いました、それはより小さなバッテリーがそれに来ました。
すでにカスタマイズしましょう!
私はアスタリスクの鉄についての民主主義を開始したくないので、手元にあったものを取りました。 FreePBX Distroを選んだのは、 私はそれをインストールした経験があり、すぐに動作します。 USBに記録し、貼り付けて、インストールしました。 このステップに問題はないはずです。 事前に言っておく唯一のことは、Distroを選択したのは無駄であり、次回設定する場合は次回、純粋なCentOSを選択することです。 唯一の違いは、ntpサーバーとtftpサーバーがCentOSで最初に構成されているかどうかわからないことです。 設定されていない場合-google to help。
インストール後、システムは完全に動作可能な状態になりますが、ここには大きな「しかし」があります。 私は以前にアスタリスクやSCCPを扱ったことがなかったので(ここで紹介したほとんどすべての電話はSCCPで動作します)、マニュアルを読む必要がありました。 それらから、アスタリスクではSCCPプロトコルがchan_skinny.soモジュールの形式で提示されることが明らかになりましたが、これらの電話での動作に関する情報は十分ではなく、「なぜ?」見つかりませんでした。 時間を無駄にしないために、私はスーツに従うことにしました。
Chan_sccp自体はリポジトリに見つかりません。ソースからインストールする必要があります。 複雑なことはありません。こちらからダウンロードしてください。
# wget downloads.sourceforge.net/project/chan-sccp-b/V4/Chan_SCCP-4.1.0_RC1.tar.gz
開梱:
# tar xvfz Chan_SCCP-4.1.0_RC1.tar.gz
そして、インストールする必要がありますが、先を見て、Distroにインストールすることは不可能だと言います。 構成時に、アスタリスクがインストールされていないと表示されます。 つまり、システムにasterisk11-core-x64がインストールされています。 どうする? すべてがシンプルであることが判明しました。
RPMのベースに入り、目的のOSに必要なパッケージをダウンロードします。 CentOS6があります。
アスタリスク-devel->アスタリスク-devel-11.3.0-1.1.x86_64.rpm
アスタリスク-mysql->アスタリスク-mysql-11.3.0-1.1.x86_64.rpm(CDRが機能するために必要)
アスタリスク->アスタリスク-11.3.0-1.1.x86_64.rpm(高度な検索に進み、目的のOSにDawを配置します。異なる外観になるのは長い時間です。)
次に、システムからアスタリスクを削除する必要があります。
# yum erase asterisk*
ダウンロードしたrmpをインストールします
# 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
amportalのオーバーロード
# /usr/bin/amportal restart
そして、あなたは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 , , - . !
# 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 , , - . !