рдмреАрдПрд▓рдПрдл (рд╡реНрдпрд╕реНрдд рд▓реИрдВрдк рдлреАрд▓реНрдб) - рд╕рд╛рдорд╛рдиреНрдп рддреМрд░ рдкрд░, рдпрд╣ рдЖрдИрдкреА рдлреЛрди рдкрд░ рд╕рдВрдХреЗрддрдХ рдХрд╛ рдПрдХ рд╕реЗрдЯ рд╣реИ рдЬреЛ рд▓рд╛рдЗрди рдХреА рд╕реНрдерд┐рддрд┐ рджрд┐рдЦрд╛рддрд╛ рд╣реИ: рдореБрдлреНрдд рдпрд╛ рд╡реНрдпрд╕реНрддред

рдЗрд╕ рд▓реЗрдЦ рдореЗрдВ, рд╣рдо рдПрд╕реНрдЯреЗрд░рд┐рд╕реНрдХ рдХреЛ рдмреАрдПрд▓рдПрдл рд╕реНрдерд┐рддрд┐ рдкреНрд░рджрд░реНрд╢рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рд╕рд┐рд╕реНрдХреЛ рдлреЛрди рдХреЗ рд╕рд╛рде рд╕рд╣реА рдврдВрдЧ рд╕реЗ рдХрд╛рдо рдХрд░рдирд╛ рд╕рд┐рдЦрд╛рдПрдВрдЧреЗред
рд╕рд┐рджреНрдзрд╛рдВрдд
рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди рдХрдВрд╕реЛрд▓ рдореЗрдВ рдХрдорд╛рдВрдб рджрд░реНрдЬ рдХрд░реЗрдВ:
asterisk*CLI> core show hints -= Registered Asterisk Dial Plan Hints =- 1196@ext-local : SIP/1196 State:Ringing Watchers 3 1188@ext-local : SIP/1188 State:InUse Watchers 3 5030@ext-local : SIP/5030 State:Idle Watchers 1
рд╕реНрдЯреЗрдЯ рдХреЙрд▓рдо рджрд┐рдЦрд╛рддрд╛ рд╣реИ, рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ, рд▓рд╛рдЗрди рдХреА рд╕реНрдерд┐рддрд┐, рд╡реЙрдЪрд░реНрд╕ - рдЗрд╕ рд▓рд╛рдЗрди рдХреЗ рд╢реНрд░реЛрддрд╛рдУрдВ рдХреА рд╕рдВрдЦреНрдпрд╛ред рдЬрдм рд░реЗрдЦрд╛ рдХреА рд╕реНрдерд┐рддрд┐ рдмрджрд▓ рдЬрд╛рддреА рд╣реИ, рддреЛ рддрд╛рд░рд╛рдВрдХрди рдлреЛрди рдкрд░ рдПрдХ рд╕рдВрджреЗрд╢ рднреЗрдЬрддрд╛ рд╣реИ рдФрд░ рдлреЛрди рд╕рдВрдХреЗрдд рдкрд░ рдмрджрд▓ рдЬрд╛рддрд╛ рд╣реИред Asterisk рдкрд░ BLF рдХрд╛ рдкреНрд░рджрд░реНрд╢рди рд╕рдмрд╕реЗ рдкрд╣рд▓реЗ рдПрдХ рд╕реЙрдлреНрдЯрдлрд╝реЛрди рдкрд░ рджреЗрдЦрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ, рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, DrayTek SoftPhone рдкрд░ред рд╕рдВрдкрд░реНрдХ рдЬреЛрдбрд╝рдиреЗ рдХреЗ рдмрд╛рдж, рдЖрдк рд▓рд╛рдЗрди рд╡реНрдпрд╕реНрдд рд╕рдВрдХреЗрдд рджреЗрдЦ рд╕рдХрддреЗ рд╣реИрдВред рдбрд┐рдлрд╝реЙрд▓реНрдЯ рд░реВрдк рд╕реЗ, рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди рдЙрди рд╕рдВрджреЗрд╢реЛрдВ рдХреЛ рднреЗрдЬрддрд╛ рд╣реИ рдЬреЛ рд╕рд┐рд╕реНрдХреЛ рдлреЛрди рдирд╣реАрдВ рдкрдврд╝ рд╕рдХрддреЗ рд╣реИрдВ, рдФрд░ рддрджрдиреБрд╕рд╛рд░, рдмреАрдПрд▓рдПрдл рдЙрди рдкрд░ рдХрд╛рдо рдирд╣реАрдВ рдХрд░рддрд╛ рд╣реИред
рдкреИрдЪ Asterisk рд╕реНрд░реЛрдд рдХреЛрдб
рдкреИрдЪ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░реЗрдВ:
issues.asterisk.org/jira/secure/attachment/32739/cisco-blf-asterisk.1.8.0.patchрдЗрд╕ рдкреИрдЪ рдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рддреЗ рд╕рдордп, рддрд╛рд░рд╛рдВрдХрди рд╕рдВрдХрд▓рд┐рдд рдирд╣реАрдВ рд╣реЛрдЧрд╛ред
рдкреИрдЪ рдореЗрдВ рдПрдХ рдЫреЛрдЯрд╛ рдЯрд╛рдЗрдкреЛ рд╣реИ, рдЗрд╕реЗ рдареАрдХ рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИред
23 рд▓рд╛рдЗрди рдкрд░,
рд╕реНрд╡рд┐рдЪ (рд░рд╛рдЬреНрдп) рд╕реНрд╡рд┐рдЪ (рдбреЗрдЯрд╛-> рд░рд╛рдЬреНрдп) рдкрд░ рдлрд┐рдХреНрд╕;
рд▓рд╛рдЗрди рдореЗрдВ
рдбреЗрдЯрд╛ рдХреЗ рд▓рд┐рдП 40
рд░рд╛рдЬреНрдп рддрдп-> рд░рд╛рдЬреНрдп ;
рд▓рд╛рдЗрди рдореЗрдВ 60
рд░рд╛рдЬреНрдп рдбреЗрдЯрд╛ рдХреЗ рд▓рд┐рдП рддрдп;
рд▓рд╛рдЗрди рдореЗрдВ 66
рд░рд╛рдЬреНрдп рдбреЗрдЯрд╛ рдХреЗ рд▓рд┐рдП рддрдпред
рдЕрдЧрд▓рд╛, Asterisk рд╕реНрд░реЛрддреЛрдВ рдХреЛ рдХрд┐рд╕реА рдлрд╝реЛрд▓реНрдбрд░ рдореЗрдВ рдХреЙрдкреА рдХрд░реЗрдВ, рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП / usr / src / asteriskред
рд╣рдо рдкреИрдЪ рдХреЛ рдЪреИрдирд▓ рдлрд╝реЛрд▓реНрдбрд░ рдореЗрдВ рдбрд╛рд▓рддреЗ рд╣реИрдВ рдФрд░ рддреБрд░рдВрдд рдирд╛рдо рдмрджрд▓ рджреЗрддреЗ рд╣реИрдВ, рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдкреИрдЪ рдореЗрдВред
рд╣рдо рдХрдорд╛рдВрдб рдирд┐рд╖реНрдкрд╛рджрд┐рдд рдХрд░рддреЗ рд╣реИрдВ:
patch chan_sip.c patch
"рдкреИрдЪ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдлрд╝рд╛рдЗрд▓" рдЕрдиреБрд░реЛрдз рдкрд░ рд╣рдо рдЙрд╕ рд░рд╛рд╕реНрддреЗ рдореЗрдВ рдкреНрд░рд╡реЗрд╢ рдХрд░рддреЗ рд╣реИрдВ рдЬрд╣рд╛рдВ sip.h рд╕реНрдерд┐рдд рд╣реИ (рдЖрдорддреМрд░ рдкрд░ рдЗрд╕рдореЗрдВ sip / sip.h рд╢рд╛рдорд┐рд▓ рд╣реИ)ред
рдпрджрд┐ рддрд╛рд░рд╛рдВрдХрди рд╕реНрдерд╛рдкрд┐рдд рд╣реИ, рддреЛ рдЖрдкрдХреЛ рдЗрд╕реЗ рд╣рдЯрд╛рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИред рдРрд╕рд╛ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рддрд╛рд░рд╛рдВрдХрди рд░реЛрдХреЗрдВ:
service asterisk stop
рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди рдирд┐рдХрд╛рд▓реЗрдВ:
yum remove asterisk
рддрд╛рд░рд╛рдВрдХрди рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рд╕реЗ рдкрд╣рд▓реЗ, рдЖрдкрдХреЛ рд╕реНрд░реЛрддреЛрдВ рдХреЛ рд╕рдВрдХрд▓рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рд╕рднреА рдореЙрдбреНрдпреВрд▓ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рд╣реЛрдВрдЧреЗ, рд╡рд┐рд╢реЗрд╖ рд░реВрдк рд╕реЗ gcc, gcc-c ++, kernel-devel, ncurses-devel, opensl-devel, m2crypto, libbl-develред
рдЕрдЧрд▓рд╛ рд╣рдо рдХрд░рддреЗ рд╣реИрдВ:
./configure make menuselect -- make make install
рд╣рдо рд▓реЙрдиреНрдЪ рдХрд░рддреЗ рд╣реИрдВ:
asterisk start
рдпрд╣ Asterisk рдХреЗ рд╕рд╛рде рд╕рдорд╛рдкреНрдд рд╣реБрдЖред
рдлреЛрди рдХреЙрдиреНрдлрд┐рдЧрд░ рдлрд╛рдЗрд▓ рдХреЛ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░рдирд╛
config.file <?xml version="1.0" encoding="UTF-8"?> <device xsi:type="axl:XIPPhone" ctiid="94"> <fullConfig>true</fullConfig> <deviceProtocol>SIP</deviceProtocol> <sshUserId>cisco</sshUserId> <sshPassword>cisco</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>YMD</dateTemplate> <timeZone>Central Asia Standard Time</timeZone> <ntps> <ntp> <name>PBX-IP Address</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>PBX-IP Address</processNodeName> </callManager> </member> </members> </callManagerGroup> <srstInfo> <srstOption>Disable</srstOption> <ipAddr1></ipAddr1> <port1>2000</port1> <ipAddr2></ipAddr2> <port2>2000</port2> <ipAddr3></ipAddr3> <port3>2000</port3> <sipIpAddr1></sipIpAddr1> <sipPort1>5060</sipPort1> <sipIpAddr2></sipIpAddr2> <sipPort2>5060</sipPort2> <sipIpAddr3></sipIpAddr3> <sipPort3>5060</sipPort3> <isSecure>false</isSecure> </srstInfo> <connectionMonitorDuration>120</connectionMonitorDuration> </devicePool> <sipProfile> <sipProxies> <backupProxy></backupProxy> <backupProxyPort></backupProxyPort> <emergencyProxy></emergencyProxy> <emergencyProxyPort></emergencyProxyPort> <outboundProxy></outboundProxy> <outboundProxyPort></outboundProxyPort> <registerWithProxy>true</registerWithProxy> </sipProxies> <sipCallFeatures> <cnfJoinEnabled>true</cnfJoinEnabled> <callForwardURI>x-cisco-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> <retainForwardInformation>false</retainForwardInformation> </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>true</remotePartyID> <userInfo>None</userInfo> </sipStack> <autoAnswerTimer>1</autoAnswerTimer> <autoAnswerAltBehavior>false</autoAnswerAltBehavior> <autoAnswerOverride>true</autoAnswerOverride> <transferOnhookEnabled>false</transferOnhookEnabled> <enableVad>false</enableVad> <preferredCodec>none</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <kpml>3</kpml> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <phoneLabel></phoneLabel> <stutterMsgWaiting>2</stutterMsgWaiting> <callStats>true</callStats> <offhookToFirstDigitTimer>15000</offhookToFirstDigitTimer> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <poundEndOfDial>false</poundEndOfDial> <startMediaPort>16384</startMediaPort> <stopMediaPort>32766</stopMediaPort> <sipLines> <line button="1" lineIndex="1"> <featureID>9</featureID> <proxy>USECALLMANAGER</proxy> <port>5060</port> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>3</messageWaitingLampPolicy> <messagesNumber></messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> <featureLabel>LineName 5037</featureLabel> <displayName>LineName</displayName> <name>5037</name> <authName>5037</authName> <authPassword>password</authPassword> </line> <line button="2"> <featureID>21</featureID> <featureLabel>Description</featureLabel> <speedDialNumber>Directory Number</speedDialNumber> </line> </sipLines> <externalNumberMask></externalNumberMask> <voipControlPort>5060</voipControlPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <commonProfile> <phonePassword></phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>1</callLogBlfEnabled> </commonProfile> <vendorConfig> <disableSpeaker>false</disableSpeaker> <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset> <forwardingDelay>1</forwardingDelay> <pcPort>0</pcPort> <settingsAccess>1</settingsAccess> <garp>0</garp> <voiceVlanAccess>0</voiceVlanAccess> <videoCapability>0</videoCapability> <autoSelectLineEnable>0</autoSelectLineEnable> <webAccess>1</webAccess> <daysDisplayNotActive>1,7</daysDisplayNotActive> <displayOnTime>09:00</displayOnTime> <displayOnDuration>12:00</displayOnDuration> <displayIdleTimeout>01:00</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>2</loggingDisplay> <loadServer>10.1.96.31</loadServer> <recordingTone>0</recordingTone> <recordingToneLocalVolume>100</recordingToneLocalVolume> <recordingToneRemoteVolume>50</recordingToneRemoteVolume> <recordingToneDuration></recordingToneDuration> <displayOnWhenIncomingCall>0</displayOnWhenIncomingCall> <rtcp>0</rtcp> <moreKeyReversionTimer>5</moreKeyReversionTimer> <autoCallSelect>1</autoCallSelect> <logServer>10.1.96.31</logServer> <g722CodecSupport>0</g722CodecSupport> <headsetWidebandUIControl>0</headsetWidebandUIControl> <handsetWidebandUIControl>0</handsetWidebandUIControl> <headsetWidebandEnable>0</headsetWidebandEnable> <handsetWidebandEnable>0</handsetWidebandEnable> <peerFirmwareSharing>0</peerFirmwareSharing> <enableCdpSwPort>1</enableCdpSwPort> <enableCdpPcPort>1</enableCdpPcPort> </vendorConfig> <versionStamp>1200501729-ee9247c4-1a10-481c-8fdc-612737c5aadd</versionStamp> <deviceSecurityMode>1</deviceSecurityMode> <idleTimeout>0</idleTimeout> <authenticationURL></authenticationURL> <directoryURL></directoryURL> <idleURL></idleURL> <informationURL></informationURL> <messagesURL></messagesURL> <proxyServerURL></proxyServerURL> <servicesURL></servicesURL> <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig> <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices> <dscpForCm2Dvce>96</dscpForCm2Dvce> <transportLayerProtocol>2</transportLayerProtocol> <singleButtonBarge>0</singleButtonBarge> <capfAuthMode>0</capfAuthMode> <capfList> <capf> <phonePort>3804</phonePort> <processNodeName>PBX-ip-address</processNodeName> </capf> </capfList> <certHash></certHash> <encrConfig>false</encrConfig> <advertiseG722Codec>1</advertiseG722Codec> </device>
рдЖрдЗрдП рдмреАрдПрд▓рдПрдл рдХреЗ рд╕рд╛рде рдХрд╛рдо рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдореБрдЦреНрдп рд▓рд╛рдЗрдиреЛрдВ рдкрд░ рд╡рд┐рдЪрд╛рд░ рдХрд░реЗрдВ
<line button="2"> <featureID><b>21</b></featureID> <featureLabel>Description</featureLabel> <speedDialNumber>Directory Number</speedDialNumber> </line>
рд╕реБрд╡рд┐рдзрд╛ 21 рдХрд╛ рдЕрд░реНрде рд╣реИ рдХрд┐ рдЗрд╕ рдирд┐рд░реНрджреЗрд╢рд┐рдХрд╛ рд╕рдВрдЦреНрдпрд╛ рдХреЗ рд▓рд┐рдП рдЖрдкрдХреЛ BLF рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдирд╛ рдЪрд╛рд╣рд┐рдПред
/Etc/asterisk/sip_general_additional.conf рдлрд╝рд╛рдЗрд▓ рдореЗрдВ, рдпрджрд┐ рдХреЛрдИ рд╣реИ, рддреЛ рдЬреЛрдбрд╝реЗрдВ рдпрд╛ рдмрджрд▓реЗрдВ:
allowsubscribe=yes notifyhold=yes callcounter=yes notifyringing=yes limitonpeers=yes buggymwi=yes
рдкреНрд░рдпреБрдХреНрдд рдЙрдкрдХрд░рдг
рдмреАрдПрд▓рдПрдл рдХреЛ рд╡реНрдпрд╡рд╕реНрдерд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдЙрдкрдХрд░рдгреЛрдВ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЧрдпрд╛ рдерд╛:
рдлрд╝реЛрди: рд╕рд┐рд╕реНрдХреЛ 7961, 7962, FreePBX 2.0.2, рддрд╛рд░рд╛рдВрдХрди рдЪрд┐рд╣реНрди 1.8.11ред