ВидеоКонф(ВКС)  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Cisco IP Communicator (SIP)

Новичком считается только что прочитавший «Астериск - будущее телефонии»
http://asterisk.ru/knowledgebase/books
и пытающийся сделать большее

Модераторы: april22, Zavr2008

Cisco IP Communicator (SIP)

Сообщение Den » 16 мар 2011, 12:56

Кто нибудь пробовал подключить Cisco IP Communicator к Астериску по протоколу SIP?
Поделитесь опытом.
Den
 
Сообщений: 8
Зарегистрирован: 18 окт 2010, 10:10

Re: Cisco IP Communicator (SIP)

Сообщение ded » 16 мар 2011, 13:44

Есть опыт подключения к Астериску по SCCP. Вижу что
Cisco IP Communicator version 2.1 supports Session Initiation Protocol (SIP) as well as the Cisco Unified Communications Manager Skinny Client Control Protocol (SCCP)
Не думаю, что по SIP будет сложнее, чем по SCCP.
Укажите ему ИП адрес Астериска в качестве TFTP сервера и создайте XML конфиг там.
ded
 
Сообщений: 15803
Зарегистрирован: 26 авг 2010, 19:00

Re: Cisco IP Communicator (SIP)

Сообщение Den » 16 мар 2011, 16:03

ded писал(а):Укажите ему ИП адрес Астериска в качестве TFTP сервера и создайте XML конфиг там.

Да, так и делаю, но видимо с xml-файлом у меня что-то не получается.
Вижу, что скачивает SEPхххх.cnf.xml, но не "подхватывает", на экране висит надпись "Unprovisioned"
Не раз перепрошивал различные Сisco IP Phone, файл делал по аналогии.
Код: выделить все
<?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>D/M/Y</dateTemplate>
      <timeZone>Russian Standard/Daylight Time</timeZone>
   </dateTimeSetting>

   <callManagerGroup>
      <members> <member priority="0"> <callManager>
         <name>10.192.1.18</name>
         <ports>
            <ethernetPhonePort>2000</ethernetPhonePort>
            <sipPort>5060</sipPort>
            <securedSipPort>5061</securedSipPort>
         </ports>
         <processNodeName>10.192.1.18</processNodeName>
      </callManager> </member> </members>
   </callManagerGroup>

   <srstInfo>
      <srstOption>Disable</srstOption>
      <ipAddr1>10.192.1.18</ipAddr1>
                <port1>2000</port1>
      <sipIpAddr1>10.192.1.18</sipIpAddr1>
                <sipPort1>5060</sipPort1>
      <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>360</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>2</dtmfDbLevel>
   <dtmfOutofBand>avt</dtmfOutofBand>
   <kpml>3</kpml>
   <alwaysUsePrimeLine>false</alwaysUsePrimeLine>
   <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail>
   <phoneLabel>SomeONE Amee</phoneLabel>
   <stutterMsgWaiting>2</stutterMsgWaiting>
   <callStats>true</callStats>
   <offhookToFirstDigitTimer>15000</offhookToFirstDigitTimer>
   <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts>
   <disableLocalSpeedDialConfig>true</disableLocalSpeedDialConfig>
   <poundEndOfDial>true</poundEndOfDial>
   <startMediaPort>16384</startMediaPort>
   <stopMediaPort>32766</stopMediaPort>

   <sipLines>
      <line  button="1" lineIndex="1">
         <featureID>9</featureID>
         <proxy>10.192.1.18</proxy>
         <port>5060</port>
         <autoAnswer> <autoAnswerEnabled>2</autoAnswerEnabled> </autoAnswer>
         <callWaiting>3</callWaiting>
         <sharedLine>true</sharedLine>
         <messageWaitingLampPolicy>3</messageWaitingLampPolicy>
         <messagesNumber>500</messagesNumber>
         <ringSettingIdle>4</ringSettingIdle>
         <ringSettingActive>5</ringSettingActive>
         <forwardCallInfoDisplay>
            <callerName>true</callerName>
            <callerNumber>false</callerNumber>
            <redirectedNumber>false</redirectedNumber>
            <dialedNumber>true</dialedNumber>
         </forwardCallInfoDisplay>
         <featureLabel>2000</featureLabel>
         <displayName>2000</displayName>
         <name>2000</name>
         <authName>2000</authName>
         <authPassword>2000</authPassword>
      </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>2</callLogBlfEnabled>
</commonProfile>

<loadInformation>Cisco IP Communicator</loadInformation>

<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>1</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.192.1.18</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.192.1.18</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>

<userLocale>
   <name></name>
   <langCode>ru_RU</langCode>
   <version></version>
   <winCharSet>utf-8</winCharSet>
</userLocale>

<networkLocale></networkLocale>
<networkLocaleInfo>
   <name></name>
   <version></version>
</networkLocaleInfo>


</device>


Den
 
Сообщений: 8
Зарегистрирован: 18 окт 2010, 10:10

Re: Cisco IP Communicator (SIP)

Сообщение ded » 16 мар 2011, 16:45

SEPхххх.cnf.xml - очень капризная штука.
Наблюдаются отличия в конфигах даже 79Х0-79Х1
Если какого-то тага нет (или лишний) в дебаге самого телефона видно, что всё что после ошибки в конфиге просто игнорируется.
У нас есть хацкерский способ, но он очень временнозатратный, так что извиняйте.
ded
 
Сообщений: 15803
Зарегистрирован: 26 авг 2010, 19:00

Re: Cisco IP Communicator (SIP)

Сообщение ded » 16 мар 2011, 18:30

Я не в той ветке дописывал!
1. Установить CUCM (не ниже 7.1)
2. Указать там автологин и автосодание пиров с номера такого-то по такой-то
3. Указать коммуникатору ИП адрес tftp
4. Он стукнется в CUCM а тот создаст ему SEPхххх.cnf.xml
5. Командой tftp <ip_addr_cucm> -c get SEPхххх.cnf.xml вытаскиваем конфиг и препарируем на лабораторном столе.
ded
 
Сообщений: 15803
Зарегистрирован: 26 авг 2010, 19:00

Re: Cisco IP Communicator (SIP)

Сообщение Den » 16 мар 2011, 19:05

Создал работоспособный xml-файл немного раньше, чем прочитал предыдущий пост
Выкладываю, может кому пригодиться:
Код: выделить все
<device>
   <deviceProtocol>SIP</deviceProtocol>
   <sshUserId>cisco</sshUserId>
   <sshPassword>cisco</sshPassword>
<devicePool>
   <dateTimeSetting>
   <dateTemplate>D/M/Ya</dateTemplate>
   <timeZone>Russian Standard/Daylight Time</timeZone>
   <ntps>
     <ntp>
      <name>10.192.1.18</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>10.192.1.18</processNodeName>
    </callManager>
   </member>
   </members>
</callManagerGroup>
</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--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>1</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>true</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>
         <natEnabled>0</natEnabled>
         <natAddress></natAddress>
         <phoneLabel>Den</phoneLabel>
         <stutterMsgWaiting>1</stutterMsgWaiting>
         <callStats>true</callStats>
         <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts>
         <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig>
         <startMediaPort>10000</startMediaPort>
         <stopMediaPort>20000</stopMediaPort>
    <sipLines>
        <line button="1">
         <featureID>9</featureID>
         <featureLabel>7001</featureLabel>
         <proxy>10.192.1.18</proxy>
         <port>5060</port>
         <name>7001</name>
         <displayName>Den</displayName>
          <autoAnswer>
             <autoAnswerEnabled>2</autoAnswerEnabled>
          </autoAnswer>
         <callWaiting>3</callWaiting>
         <authName>7001</authName>
         <authPassword>7001</authPassword>
         <sharedLine>false</sharedLine>
         <messageWaitingLampPolicy>1</messageWaitingLampPolicy>
         <messagesNumber>*97</messagesNumber>
         <ringSettingIdle>4</ringSettingIdle>
         <ringSettingActive>5</ringSettingActive>
         <contact>7001</contact>
          <forwardCallInfoDisplay>
            <callerName>true</callerName>
            <callerNumber>true</callerNumber>
            <redirectedNumber>false</redirectedNumber>
            <dialedNumber>true</dialedNumber>
         </forwardCallInfoDisplay>
        </line>
      </sipLines>
         <voipControlPort>5060</voipControlPort>
         <dscpForAudio>184</dscpForAudio>
         <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy>
         <dialTemplate>dialplan.xml</dialTemplate>
    </sipProfile>
  <commonProfile>
      <phonePassword></phonePassword>
      <backgroundImageAccess>true</backgroundImageAccess>
      <callLogBlfEnabled>1</callLogBlfEnabled>
  </commonProfile>
         <loadInformation>Cisco IP Communicator</loadInformation>
    <vendorConfig>
        <disableSpeaker>false</disableSpeaker>
        <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
        <pcPort>1</pcPort>
        <settingsAccess>1</settingsAccess>
        <garp>0</garp>
        <voiceVlanAccess>0</voiceVlanAccess>
        <videoCapability>0</videoCapability>
        <autoSelectLineEnable>0</autoSelectLineEnable>
        <webAccess>1</webAccess>
        <spanToPCPort>1</spanToPCPort>
        <loggingDisplay>1</loggingDisplay>
        <loadServer></loadServer>
    </vendorConfig>
        <versionStamp></versionStamp>
        <networkLocale>US</networkLocale>
          <networkLocaleInfo>
             <name>US</name>
             <version></version>
          </networkLocaleInfo>
        <deviceSecurityMode>1</deviceSecurityMode>
        <authenticationURL></authenticationURL>
        <directoryURL></directoryURL>
        <idleURL></idleURL>
        <informationURL></informationURL>
        <messagesURL></messagesURL>
        <proxyServerURL>10.192.1.18:3128</proxyServerURL>
        <servicesURL></servicesURL>
        <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>

Ваш способ проверил на версии 6.1, работает- файл получил. Эх, пораньше бы, сэкономил бы пару часов мучений :)
Den
 
Сообщений: 8
Зарегистрирован: 18 окт 2010, 10:10

Re: Cisco IP Communicator (SIP)

Сообщение ded » 16 мар 2011, 20:01

Хм, проверил Ваш XML конфиг с 2.1 коммуникатором - увы!
Почему <videoCapability>0</videoCapability> ? Я бы попробовал в первую очередь с Video Unity
Он мёртвый. Его трейс лог генерило безумное engine, понять почему ему плохо невозможно.
ded
 
Сообщений: 15803
Зарегистрирован: 26 авг 2010, 19:00

Re: Cisco IP Communicator (SIP)

Сообщение ded » 16 мар 2011, 22:47

Оказывается надо было проинсталлировать из .exe файла, а не из .msi
Кроме того конфликтнуло со старой версией коммуникатора, пришлось удалить.
Заработало. Но со старой CUVA не повязалось.
ded
 
Сообщений: 15803
Зарегистрирован: 26 авг 2010, 19:00

Re: Cisco IP Communicator (SIP)

Сообщение Den » 17 мар 2011, 10:41

Странно, у меня получилось именно из .msi проинсталлировать.
Тестировал на версии 2.1.2 и действительно старую версию пришлось удалять.
ded писал(а):Почему <videoCapability>0</videoCapability> ?

Честно говоря, даже не обратил внимание на этот параметр, копипастил блоками из разных файлов все, что казалось нужным.
Задачи протестировать видео не было, но вариант интересный, обязательно проверю.
Den
 
Сообщений: 8
Зарегистрирован: 18 окт 2010, 10:10

Re: Cisco IP Communicator (SIP)

Сообщение ded » 17 мар 2011, 12:50

Нашёл баг в Коммуникаторе 2.1.1
Если на нём выбирать User preferences > Background images
он отправляет в тфтп сервер запрос вида RRQ
RRQ "Desktops\320x212x12\List.xml"
и никаких картинок наших там не видит. Почему? Потому что настоящие телефоны отправляют запрос
RRQ "Desktops/320x212x12/List.xml"
и поэтому всё получают.
RRQ "Desktops/320x212x12/TN-7970-32.png"
RRQ "Desktops/320x212x12/Golden_Gate2-1.png"
RRQ "Desktops/320x212x12/Golden_Gate4-1.png"

Слэш и бэкслэш. Windows vs Unix.
Мелочь, но не приятная. Программеры Cisco считают, что TFTP сервер будет только виндозный.
ded
 
Сообщений: 15803
Зарегистрирован: 26 авг 2010, 19:00


Вернуться в Вопросы новичков

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 19

© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH