zeons Posted March 12, 2009 Report Posted March 12, 2009 Äîáðûé äåíü. Õî÷ó ïîäåëèòüñÿ íàñòðîéêîé Cisco 7941 G äëÿ ðàáîòû ñ PBXnSIP (PBXnSIP 3.0.1.3023 (Linux) + cmterm-7941_7961-sip.8-0-3) Ïðîöåññ îáíîâëåíèÿ ïðîøèâêè âûãëÿäèò ñëåäóþùèì îáðàçîì. Ñíà÷àëà ïðè âêëþ÷åíèè òåëåôîíà â ñåòè äåðæèì íàæàòîé êíîïêó # ñåêóíä 15, äî òåõ ïîð, ïîêà ëàìïî÷êè âîçëå ëèíèé íå íà÷íóò ìèãàòü æåëòûì. Ïîñëå ýòîãî íàæèìàåì êîìáèíàöèþ 123456789*0#1 è òåëåôîí ïåðåçàãðóæàåòñÿ, ñòèðàÿ ñâîþ ïðîøèâêó. Òåïåðü îí ãîòîâ ê ïðèåìó íîâîé. Äëÿ ýòîãî åìó íåîáõîäèì, â ïåðâóþ î÷åðåäü, ôàéë XMLDefault.cnf.xml. Îïèñàíèÿ ôîðìàòà ýòîãî ôàéëà íà ñàéòå Cisco íàéòè íå óäàëîñü – ñêîðåå âñåãî îí åùå íå äîêóìåíòèðîâàí äîñòàòî÷íî õîðîøî. Ïîïðîáóåì ðàçîáðàòüñÿ ñàìîñòîÿòåëüíî. XMLDefaults.cnf.xml ------------------- <device> <deviceProtocol>SIP</deviceProtocol> Äàëåå çàäàåì èìÿ è ïàðîëü äëÿ äîñòóïà ê òåëåôîíó ïî SSH. Ìîæíî ïîñìîòðåòü íåêîòîðóþ debug-èíôîðìàöèþ, äàòü êîìàíäó íà ïåðåçàãðóçêó è ïî÷òè âñå – âîçìîæíîñòè î÷åíü îãðàíè÷åíû. <sshUserId>root</sshUserId> <sshPassword>root</sshPassword> <devicePool> <dateTimeSetting> <dateTemplate>D.M.Y</dateTemplate> <timeTemplate>HH:MM</timeTemplate> <timeZone>Russian Standard/Daylight Time</timeZone> <ntps> <ntp> <name>130.149.17.21</name> <ntpMode>Unicast</ntpMode> </ntp> </ntps> </dateTimeSetting> <callManagerGroup> <members> <member> <callManager> <ports> <ethernetPhonePort>2000</ethernetPhonePort> <sipPort>5060</sipPort> <securedSipPort>5061</securedSipPort> </ports> Âìåñòî XXX.XXX.XXX.XXX ââîäèì IP-àäðåñ ñåðâåðà <processNodeName>XXX.XXX.XXX.XXX</processNodeName> </callManager> </member> </members> </callManagerGroup> </devicePool> <sipProfile> <sipProxies> <backupProxy/> <backupProxyPort/> <emergencyProxy/> <emergencyProxyPort/> <outboundProxy/> <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> Ïîääåðæèâàåìûå êîäåêè – G729a, G711, âîçìîæíî, êàêèå-òî åùå: <preferredCodec>g729a</preferredCodec> <dtmfAvtPayload>101</dtmfAvtPayload> <dtmfDbLevel>3</dtmfDbLevel> <dtmfOutofBand>avt</dtmfOutofBand> <alwaysUsePrimeLine>false</alwaysUsePrimeLine> <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail> <kpml>3</kpml> Ìåòêà òåëåôîíà (â âåðõíåì ïðàâîì óãëó): <phoneLabel>MyPhone</phoneLabel> Åñëè åñòü ñòàòè÷åñêèé âíåøíèé IP-àäðåñ, ñòàâèì natEnabled=0 è âïèñûâàåì àäðåñ â natAddress. Åñëè àäðåñ íàçíà÷àåòñÿ ÷åðåç NAT è îí èçâåñòåí, òî natEnabled=1. Åñëè æå ðàáîòàåì ÷åðåç ìàðøðóòèçàòîð ñ NAT-overload (äëÿ äîìàøíèõ ñåòåé – íàèáîëåå ðàñïðîñòðàíåííûé ñëó÷àé), òî natEnabled=1, à ïîëå natAddress íå çàïîëíÿåì. <natEnabled>1</natEnabled> <natAddress></natAddress> <stutterMsgWaiting>1</stutterMsgWaiting> <callStats>false</callStats> <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts> <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig> <startMediaPort>16384</startMediaPort> <stopMediaPort>32766</stopMediaPort> <sipLines> Íàñòðîéêè äëÿ êíîïîê ëèíèé <line button="1"> Îáîçíà÷àåì, ÷òî ýòî êíîïêà ëèíèè <featureID>9</featureID> Ìåòêà êíîïêè, àäðåñ SIP-ïðîêñè-ñåðâåðà <featureLabel>MyPhone</featureLabel> <proxy>XXX.XXX.XXX.XXX</proxy> - Óêàçûâàåì èìÿ äîìåíà SIP <port>5060</port> Èìÿ êíîïêè, äîëæíî ñîâïàäàòü ñî ñëåäóþùèì ïîëåì: <name>User</name> <displayName>User</displayName> <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer> <callWaiting>3</callWaiting> Èìÿ è ïàðîëü äëÿ àâòîðèçàöèè íà SIP-ñåðâåðå: <authName>XXX</authName> <authPassword>XXX</authPassword> <sharedLine>false</sharedLine> <messageWaitingLampPolicy>1</messageWaitingLampPolicy> <messagesNumber>voicemail extension</messagesNumber> <ringSettingIdle>4</ringSettingIdle> <ringSettingActive>5</ringSettingActive> <contact> íîìåð </contact> - Óêàçûâàåì ðåàëüíûé íîìåð <forwardCallInfoDisplay> <callerName>true</callerName> <callerNumber>false</callerNumber> <redirectedNumber>false</redirectedNumber> <dialedNumber>true</dialedNumber> </forwardCallInfoDisplay> </line> <line button="2"> À ýòî áóäåò êíîïêà áûñòðîãî íàáîðà: <featureID>21</featureID> <featureLabel>Work</featureLabel> <speedDialNumber>1234567</speedDialNumber> </line> </sipLines> <voipControlPort>5061</voipControlPort> <dscpForAudio>184</dscpForAudio> <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy> Èìÿ ôàéëà ñ íîìåðíûì ïëàíîì <dialTemplate>dialplan.xml</dialTemplate> </sipProfile> <commonProfile> <phonePassword>cisco</phonePassword> <backgroundImageAccess>true</backgroundImageAccess> <callLogBlfEnabled>2</callLogBlfEnabled> </commonProfile> <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>1</webAccess> <daysDisplayNotActive>1,7</daysDisplayNotActive> <displayOnTime>08:30</displayOnTime> <displayOnDuration>11:30</displayOnDuration> <displayIdleTimeout>0:05</displayIdleTimeout> <spanToPCPort>1</spanToPCPort> <loggingDisplay>1</loggingDisplay> <loadServer/> </vendorConfig> <networkLocale/> <deviceSecurityMode>1</deviceSecurityMode> <authenticationURL/> <directoryURL/> <idleURL/> <informationURL/> <messagesURL/> <proxyServerURL/> <servicesURL/> </device> ×àñòü ñòàòüè âçÿòî ñ http://www.hypercomp.ru/articles/configuri...-phone-for-sip/ Îáÿçàòåëüíî äîëæåí ïðèñóòñòâîâàòü ôàéë dialplan.xml, èíà÷å ïðè íàáîðå ñðàçó áóäåò çàíÿòî. Ôàéë dialplan.xml <DIALTEMPLATE> <TEMPLATE MATCH="*" Timeout="5"/> </DIALTEMPLATE> Òàêæå ìîæíî ïðèêðóòèòü ôîíîâûå ðåñóíêè Ôàéë list.xml <CiscoIPPhoneImageList> <ImageItem Image="TFTP:mybackground80x53.png" URL="TFTP:mybackground320x212.png"/> </CiscoIPPhoneImageList> Ôàéë ñ óêàçàíèåì ðèíãòîíîâ ringlist.xml <CiscoIPPhoneRingList> <Ring> <DisplayName>Old Style</DisplayName> <FileName>ringer1.pcm</FileName> </Ring> <Ring> <DisplayName>CTU 24</DisplayName> <FileName>Sound.raw</FileName> </Ring> </CiscoIPPhoneRingList> Ðàáîòàåò íîðìàëüíî, ïðîâåðåííî! Êîìó íóæíî , ìîãó ïîäåëèòüñÿ ïðîøèâêîé cmterm-7941_7961-sip.8-0-3 Quote
Vodia PBX Posted March 12, 2009 Report Posted March 12, 2009 This post is as clear to me as the XML config from Cisco is... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.