@slowkazak

Cisco 7961 + Asterisk 1.8. Как подружить?

Здравствуйте, есть связка Cisco 7961 + Asterisk 1.8. Прошивка цискофона: SIP41.8-5-4S - с другими телефон вообще отказывается общаться с Астериском.

Суть проблемы в том что астериск говорит что у пира, видите-ли неправильный пароль. Притом что x-lite нормально регистрируется.

Вот конфиг телефона. Сделан по этому мануалу
<device>
    <fullConfig>true</fullConfig>
    <deviceProtocol>SIP</deviceProtocol>
    <devicePool>
        <dateTimeSetting>
            <dateTemplate>D.M.Y</dateTemplate>
            <timeZone>Russian Standard</timeZone>
            <ntps>
                <ntp>
                    <name>192.168.1.4</name>
                    <ntpMode>Unicast</ntpMode>
                </ntp>
            </ntps>
        </dateTimeSetting>
        <callManagerGroup>
            <tftpDefault>true</tftpDefault>
                <members>
                <member priority="0">
                <callManager>
                <name>192.168.1.13</name>
                <description>CallManager 5.0</description>
                <ports>
                  <ethernetPhonePort>2000</ethernetPhonePort>
                  <sipPort>5060</sipPort>
                  <securedSipPort>5061</securedSipPort>
                </ports>
                <processNodeName>192.168.1.13</processNodeName>
                </callManager>
                </member>
                </members>
             </callManagerGroup>
    </devicePool>
    <commonProfile>
        <phonePassword></phonePassword>
        <backgroundImageAccess>true</backgroundImageAccess>
        <callLogBlfEnabled>0</callLogBlfEnabled>
    </commonProfile>
    <loadInformation>SIP41.8-5-4S</loadInformation>
    <loadInformation434  model="Cisco 7961">SIP41.8-5-4S</loadInformation434>
    <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>
        <daysDisplayNotActive>1,7</daysDisplayNotActive>
        <displayOnTime>10:30</displayOnTime>
        <displayOnDuration>06:05</displayOnDuration>
        <displayIdleTimeout>00:05</displayIdleTimeout>
        <webAccess>0</webAccess>
        <spanToPCPort>1</spanToPCPort>
        <loggingDisplay>1</loggingDisplay>
        <loadServer></loadServer>
    </vendorConfig>
 <deviceSecurityMode>1</deviceSecurityMode>
    <idleTimeout>0</idleTimeout>
    <directoryURL></directoryURL> 
    <servicesURL>192.168.1.13</servicesURL> 
    <idleURL></idleURL>
    <messagesURL></messagesURL>
    <proxyServerURL></proxyServerURL>
    <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig>
    <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices>
    <dscpForCm2Dvce>96</dscpForCm2Dvce>
    <transportLayerProtocol>2</transportLayerProtocol>
    <capfAuthMode>0</capfAuthMode>
    <capfList>
        <capf>
            <phonePort>3804</phonePort>
        </capf>
    </capfList>
    <certHash></certHash>
    <encrConfig>false</encrConfig>
    <sipProfile>
        <sipProxies>
            <backupProxy>192.168.1.13</backupProxy>
            <backupProxyPort>5060</backupProxyPort>
            <emergencyProxy>192.168.1.13</emergencyProxy>
            <emergencyProxyPort>5060</emergencyProxyPort>
            <outboundProxy>192.168.1.13</outboundProxy>
            <outboundProxyPort>5060</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> 
        <preferredCodec>g711alaw</preferredCodec>
       <dtmfAvtPayload>101</dtmfAvtPayload>
       <dtmfDbLevel>3</dtmfDbLevel>
       <dtmfOutofBand>avt</dtmfOutofBand>
        <alwaysUsePrimeLine>false</alwaysUsePrimeLine>
        <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail>
        <kpml>3</kpml>
        <stutterMsgWaiting>1</stutterMsgWaiting>
        <callStats>true</callStats>
        <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts>
        <disableLocalSpeedDialConfig>true</disableLocalSpeedDialConfig>
        <startMediaPort>10100</startMediaPort>
        <stopMediaPort>10300</stopMediaPort>
        <voipControlPort>5060</voipControlPort>
        <dscpForAudio>184</dscpForAudio>
        <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy>
        <dialTemplate>dialplan.xml</dialTemplate> 
        <phoneLabel>Cisco</phoneLabel>
          <natReceivedProcessing>false</natReceivedProcessing>
          <natEnabled>false</natEnabled>
          <natAddress></natAddress>
        <sipLines>
          <line button="1">
            <featureID>9</featureID>
            <featureLabel>951</featureLabel>
            <proxy>192.168.1.13</proxy>
            <port>5060</port>
            <name>951</name>
            <displayName>951</displayName>
            <autoAnswer>
              <autoAnswerEnabled>2</autoAnswerEnabled>
            </autoAnswer>
            <callWaiting>3</callWaiting>
            <authName>951</authName>
            <authPassword>ae2d9ee27dcaa877e5288f1f01a76021</authPassword>
            <sharedLine>false</sharedLine>
            <messageWaitingLampPolicy>3</messageWaitingLampPolicy>
            <messagesNumber></messagesNumber>
            <ringSettingIdle>4</ringSettingIdle>
            <ringSettingActive>5</ringSettingActive>
            <contact>951</contact>
            <forwardCallInfoDisplay>
              <callerName>true</callerName>
              <callerNumber>false</callerNumber>
              <redirectedNumber>false</redirectedNumber>
              <dialedNumber>true</dialedNumber>
            </forwardCallInfoDisplay>
          </line>
          <line button="2">
          <featureID></featureID>
          <featureLabel></featureLabel>
          <speedDialNumber></speedDialNumber>
          </line>
        </sipLines>
    </sipProfile>
</device>


Вот конфиг клиента

[951]
deny=0.0.0.0/0.0.0.0
secret=ae2d9ee27dcaa877e5288f1f01a76021
dtmfmode=rfc2833
canreinvite=yes
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=pai
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp,tcp,tls
encryption=no
callgroup=
pickupgroup=
dial=SIP/951
mailbox=951@device
permit=0.0.0.0/0.0.0.0
callerid=951 <951>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic


И вот полностью результат sip set debug on

<--- SIP read from UDP:192.168.1.163:49156 --->
REGISTER sip:192.168.1.13 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.163:5060;branch=z9hG4bK7c9d3bd5
From: <sip:951@192.168.1.13>;tag=0026994389e20002e48f2954-4086a56f
To: <sip:951@192.168.1.13>
Call-ID: 00269943-89e20002-3b512586-46195b29@192.168.1.163
Max-Forwards: 70
Date: Wed, 16 Dec 2009 08:35:46 GMT
CSeq: 101 REGISTER
User-Agent: Cisco-CP7961G/8.5.3
Contact: <sip:951@192.168.1.163:5060;transport=udp>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-0026994389e2>";+u.sip!model.ccm.cisco.com="30018"
Supported: (null),X-cisco-xsi-7.0.1
Content-Length: 0
Expires: 3600

<------------->
--- (13 headers 0 lines) ---
Sending to 192.168.1.163:5060 (no NAT)

<--- Transmitting (no NAT) to 192.168.1.163:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.163:5060;branch=z9hG4bK7c9d3bd5;received=192.168.1.163
From: <sip:951@192.168.1.13>;tag=0026994389e20002e48f2954-4086a56f
To: <sip:951@192.168.1.13>;tag=as6cb24c5b
Call-ID: 00269943-89e20002-3b512586-46195b29@192.168.1.163
CSeq: 101 REGISTER
Server: FPBX-2.11.0(1.8.30.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="7bcd1613"
Content-Length: 0



'<sip:951@192.168.1.13>' failed for '192.168.1.163:49156' - Wrong password


Может кто поделится опытом и тыкнет в очевидные или неочевидные ошибки?
  • Вопрос задан
  • 3888 просмотров
Решения вопроса 1
<authPassword>308b1d7be99f3b826bd877db92af090d</authPassword>

secret=ae2d9ee27dcaa877e5288f1f01a76021
немного разные
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
@ASokolik
308b1d7be99f3b826bd877db92af090d

пароль на "взрослых" цисках не должен быть длиннее 8 символов....
такой вот глюк...
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы