Страница 1 из 2

cisco 3905 + asterisk

Добавлено: 27 июн 2012, 17:08
funny_bunny
Добрый день.

Купили несколько 3905, позарившись на низкую цену и слово SIP.

Но они в отличии от spa 300/500 поохоже хоть и сип, но требуют ucm.

Как то можно их к астериску подцепить?

Re: cisco 3905 + asterisk

Добавлено: 27 июн 2012, 18:29
Aven
Судя по сайту циски они обычные SIP телефоны.
С чего Вы взяли, что они только для CUCM?
Вы хотя бы пробовали их настраивать? Документацию читать?

Re: cisco 3905 + asterisk

Добавлено: 27 июн 2012, 19:02
funny_bunny
Я тоже по сайту циски решил, что они обычные сип телефоны ;)

Настраивать в них нечего, веб морда только информацию дает, настроек в ней нет.

Сейчас пытаюсь прикрутить метод от 7905.

Re: cisco 3905 + asterisk

Добавлено: 28 июн 2012, 10:03
noize
веб морда только информацию дает, настроек в ней нет.
есть мнение, что телефон настраивается через TFTP

Re: cisco 3905 + asterisk

Добавлено: 28 июн 2012, 11:31
CheeZ
Это не совсем обычные sip-телефоны.... Настраиваются они по tftp, конфигурация включает 3 файла - мастер-профиль, индивидуальный профиль и настройки сети... Документацию по их провижингу Цись давать отказывается, щас ковыряю то, что выдрал с каллменеджер экспресс, отличий с 79-й до фига, очень много общего с 69-й и 99й, 89й под руками нет - сказать ни че не могу. Если что-то удасца сделать с этим зверем отпишу.

Re: cisco 3905 + asterisk

Добавлено: 28 июн 2012, 16:59
funny_bunny
Ура, ответ по существу)

Пока что самому удалось достичь того, что кушает.

1970/01/01 00:00:23:881 succeed to get SEP*macaddress*.cnf.xml
1970/01/01 00:00:27:322 succeed to get CP3905.9-2-2-0.loads
1970/01/01 00:00:27:872 succeed to get dialplan.xml

xml вот

Код: Выделить всё

<device>
<fullConfig>true</fullConfig>
<deviceProtocol>SIP</deviceProtocol>
<sshUserId>user</sshUserId>
<sshPassword>pass</sshPassword>
<devicePool>
<name></name>
<dateTimeSetting>
<dateTemplate>M/D/YA</dateTemplate>
<timeZone>Eastern Standard/Daylight Time</timeZone>
<ntps>
<ntp>
<name>192.168.5.161</name>
<ntpMode>Unicast</ntpMode>
</ntp>
</ntps>
</dateTimeSetting>
<callManagerGroup>
<name>5.0 Beta</name>
<tftpDefault>true</tftpDefault>
<members>
<member priority="0">
<callManager>
<name>ccm-beta-5-1</name>
<description>CallManager 5.0 Beta Pub - 5.0.1.032</description>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
<sipPort>5060</sipPort>
<securedSipPort>5061</securedSipPort>
<mgcpPorts>
<listen>2427</listen>
<keepAlive>2428</keepAlive>
</mgcpPorts>
</ports>
<processNodeName>192.168.5.161</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<srstInfo>
<name>Disable</name>
<srstOption>Disable</srstOption>
<userModifiable>false</userModifiable>
<ipAddr1></ipAddr1>
<port1>2000</port1>
<ipAddr2></ipAddr2>
<port2>2000</port2>
<ipAddr3></ipAddr3>
<port3>2000</port3>
<sipIpAddr1>192.168.5.161</sipIpAddr1>
<sipPort1>5060</sipPort1>
<sipIpAddr2></sipIpAddr2>
<sipPort2>5060</sipPort2>
<sipIpAddr3></sipIpAddr3>
<sipPort3>5060</sipPort3>
<isSecure>false</isSecure>
</srstInfo>
<mlppDomainId>-1</mlppDomainId>
<mlppIndicationStatus>Default</mlppIndicationStatus>
Default
<connectionMonitorDuration>120</connectionMonitorDuration>
</devicePool>
<sipProfile>
<sipProxies>
<backupProxy></backupProxy>
<backupProxyPort>5060</backupProxyPort>
<emergencyProxy></emergencyProxy>
<emergencyProxyPort>5060</emergencyProxyPort>
<outboundProxy></outboundProxy>
<outboundProxyPort>5060</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>1</dndControl>
<remoteCcEnable>true</remoteCcEnable>
</sipCallFeatures>
<sipStack>
<sipInviteRetx>6</sipInviteRetx>
<sipRetx>10</sipRetx>
<timerInviteExpires>504</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>
g711ulaw
<dtmfAvtPayload>101</dtmfAvtPayload>
<dtmfDbLevel>3</dtmfDbLevel>
<dtmfOutofBand>avt</dtmfOutofBand>
<alwaysUsePrimeLine>false</alwaysUsePrimeLine>
<alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail>
<kpml>3</kpml>
<phoneLabel>cp-3905</phoneLabel>
<stutterMsgWaiting>2</stutterMsgWaiting>
<callStats>false</callStats>
<offhookToFirstDigitTimer>15000</offhookToFirstDigitTimer>
<silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts>
<disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig>
<startMediaPort>16384</startMediaPort>
<stopMediaPort>32766</stopMediaPort>
<sipLines>
<line button="1">
<featureID>9</featureID>
<featureLabel>504</featureLabel>
<proxy>192.168.5.161</proxy>
<port>5060</port>
<name>504</name>
<displayName>504</displayName>
<autoAnswer>
<autoAnswerEnabled>2</autoAnswerEnabled>
</autoAnswer>
<callWaiting>3</callWaiting>
<authName>504</authName>
<authPassword>504</authPassword>
<sharedLine>false</sharedLine>
<messageWaitingLampPolicy>1</messageWaitingLampPolicy>
<messagesNumber>*97</messagesNumber>
<ringSettingIdle>4</ringSettingIdle>
<ringSettingActive>5</ringSettingActive>
<contact>504</contact>
<forwardCallInfoDisplay>
<callerName>true</callerName>
<callerNumber>false</callerNumber>
<redirectedNumber>false</redirectedNumber>
<dialedNumber>true</dialedNumber>
</forwardCallInfoDisplay>
</line>
</sipLines>
<voipControlPort>5060</voipControlPort>
<dscpForAudio>184</dscpForAudio>
<ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy>
<dialTemplate>dialplan.xml</dialTemplate>
<softKeyFile></softKeyFile>
</sipProfile>
<commonProfile>
<phonePassword></phonePassword>
<backgroundImageAccess>true</backgroundImageAccess>
<callLogBlfEnabled>2</callLogBlfEnabled>
</commonProfile>
<loadInformation>CP3905.9-2-2-0</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,7</daysDisplayNotActive>
<displayOnTime>08:00</displayOnTime>
<displayOnDuration>10:30</displayOnDuration>
<displayIdleTimeout>01:00</displayIdleTimeout>
<spanToPCPort>1</spanToPCPort>
</vendorConfig>
<versionStamp></versionStamp>
<userLocale>
<name></name>
<uid></uid>
<langCode>en_US</langCode>
<version></version>
<winCharSet></winCharSet>
</userLocale>
<networkLocale></networkLocale>
<networkLocaleInfo>
<name></name>
<uid></uid>
<version>1.0.0.0-1</version>
</networkLocaleInfo>
<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>4</transportLayerProtocol>
<capfAuthMode>0</capfAuthMode>
<capfList>
<capf>
<phonePort>3804</phonePort>
<processNodeName>ccm-beta-5-1</processNodeName>
</capf>
</capfList>
<certHash></certHash>
<encrConfig>false</encrConfig>
</device>
После чего висит с надписью registering, выдавая вот такие логи

TCP transport destroyed with reason 120111: Connection refused, remote:192.168.5.161:5060

Как переключить на UDP не нашел.
В итоге в sip_custom.conf добавил

tcpenable=yes
tcpbindadr=0.0.0.0
[504]
transport=tcp


Теперь пишет смешное

00:00:28:140 [sip] 00:00:28.135 tcpc0x1a7a018 TCP transport destroyed normally, remote:192.168.5.161:5060

Код: Выделить всё

00:00:28:127 x [pcu] pcuRcvHandler(KA), KA_NORMAL_REG_TIMEOUT, eid=0, addr=192.168.5.161, status=0

00:00:28:131 x [pcu] [pcu_do_failover_register][422]server_idx=999, g_sip_server_info.enable_flag[server_idx]=0, g_sip_server_info.alive_flag[server_idx]=0

00:00:28:131 x [pcu] Need fail over, but standby servr is not ready, server_idx= 999!!

00:00:28:140   [sip]  00:00:28.135  tcpc0x1a7a018  TCP transport destroyed normally, remote:192.168.5.161:5060
00:00:30:040 w [pcu] [pcu_polling_sipserver_thread():1342] polling stopped..

00:00:30:080 w [pcu] [pcu_polling_sipserver_thread():1351] polling resumed..

00:00:30:084   [sip]  00:00:30.082         pjcu.c  pjcuRcvHandler(KA), KA_REQUEST, eid=-1, p1=192.168.5.161:5060

00:00:30:100   [sip]  00:00:30.096         pjcu.c  pjcu_rpt_ka_status(), target(192.168.5.161:5060): status=0, id=27

00:00:30:103 x [pcu] pcuRcvHandler(KA), KA_RESPONSE, eid=0, addr=192.168.5.161:5060, status=0

00:00:30:103 x [pcu] [polling_next_lock_signal():202] Ignore the late msg!! 

00:01:00:020 x [pcu] [polling_next_lock_timedwait():184] polling_next_lock_timedwait timeout, set this server: 1 unreachable !! 

00:01:00:022   [ipps] ----- PCU: CC_SRV, pid=0, eid=0, cid=65535 -----
00:01:00:023   [ipps] In func: remoteNtyEvtProcess(), lib = 0, cid = 65535, ntyEv = 1

00:01:00:024 f [ipps] In func: remoteNtyEvtProcess(), recv out of service nty, svrType = 0, cause = 0
00:01:00:024 f [MMI] : In func: ui_nty(), lid = 0, cid = 65535, ntyEv = 1
 
00:01:00:025 x [CENTRAL] IPPS CB function(RegStatus) is called (0) with Line (0)
00:01:00:026 x [CENTRAL] Enter FSM: State(REGISTERING) | Event(REGISTER_FAIL) | Cause(0)
00:01:00:027 x [CENTRAL] Waiting event in REGISTERING
00:01:00:035   [sip]  00:01:00.034         pjcu.c  pjcuRcvHandler(KA), KA_REQUEST, eid=-1, p1=192.168.5.161;transport=tcp

00:01:00:045   [sip]  00:01:00.044 sip_transport.  Transport tcpc0x1a13018 registered: type=TCP
00:01:00:050   [sip]  00:01:00.046  tcpc0x1a13018  TCP client transport created
00:01:00:053   [sip]  00:01:00.052  tcpc0x1a13018  TCP transport 192.168.5.92:4738 is connecting to 192.168.5.161:5060...
00:01:00:061   [sip]  00:01:00.057  tcpc0x1a13018  TCP transport 192.168.5.92:4738 is connected to 192.168.5.161:5060
00:01:00:072   [sip]  00:01:00.070         pjcu.c  pjcu_rpt_ka_status(), target(192.168.5.161;transport=tcp): status=0, id=27

00:01:00:074 x [pcu] pcuRcvHandler(KA), KA_RESPONSE, eid=0, addr=192.168.5.161;transport=tcp, status=0

00:01:00:085   [sip]  00:01:00.081  tcpc0x1a13018  TCP transport destroyed normally, remote:192.168.5.161:5060
00:01:00:092   [sip]  00:01:00.090         pjcu.c  pjcuRcvHandler(KA), KA_REQUEST, eid=-1, p1=192.168.5.161:5060

00:01:00:112   [sip]  00:01:00.110         pjcu.c  pjcu_rpt_ka_status(), target(192.168.5.161:5060): status=0, id=27

00:01:00:114 x [pcu] pcuRcvHandler(KA), KA_RESPONSE, eid=0, addr=192.168.5.161:5060, status=0

00:01:00:115 x [pcu] [polling_next_lock_signal():202] Ignore the late msg!! 

00:01:30:020 x [pcu] [polling_next_lock_timedwait():184] polling_next_lock_timedwait timeout, set this server: 1 unreachable !! 

00:01:30:024   [sip]  00:01:30.022         pjcu.c  pjcuRcvHandler(KA), KA_REQUEST, eid=-1, p1=192.168.5.161;transport=tcp

00:01:30:034   [sip]  00:01:30.032 sip_transport.  Transport tcpc0x1a13018 registered: type=TCP
00:01:30:036   [sip]  00:01:30.034  tcpc0x1a13018  TCP client transport created
00:01:30:042   [sip]  00:01:30.040  tcpc0x1a13018  TCP transport 192.168.5.92:4716 is connecting to 192.168.5.161:5060...
00:01:30:046   [sip]  00:01:30.045  tcpc0x1a13018  TCP transport 192.168.5.92:4716 is connected to 192.168.5.161:5060
00:01:30:060   [sip]  00:01:30.056         pjcu.c  pjcu_rpt_ka_status(), target(192.168.5.161;transport=tcp): status=0, id=27

00:01:30:062 x [pcu] pcuRcvHandler(KA), KA_RESPONSE, eid=0, addr=192.168.5.161;transport=tcp, status=0

00:01:30:066   [sip]  00:01:30.065  tcpc0x1a13018  TCP transport destroyed normally, remote:192.168.5.161:5060
00:01:30:073   [sip]  00:01:30.071         pjcu.c  pjcuRcvHandler(KA), KA_REQUEST, eid=-1, p1=192.168.5.161:5060

00:01:30:090   [sip]  00:01:30.085         pjcu.c  pjcu_rpt_ka_status(), target(192.168.5.161:5060): status=0, id=27

00:01:30:092 x [pcu] pcuRcvHandler(KA), KA_RESPONSE, eid=0, addr=192.168.5.161:5060, status=0

00:01:30:093 x [pcu] [polling_next_lock_signal():202] Ignore the late msg!! 

00:02:00:020 x [pcu] [polling_next_lock_timedwait():184] polling_next_lock_timedwait timeout, set this server: 1 unreachable !! 

00:02:00:022   [ipps] ----- PCU: CC_SRV, pid=0, eid=0, cid=65535 -----
00:02:00:023   [ipps] In func: remoteNtyEvtProcess(), lib = 0, cid = 65535, ntyEv = 1

00:02:00:024 f [ipps] In func: remoteNtyEvtProcess(), recv out of service nty, svrType = 0, cause = 0
00:02:00:024 f [MMI] : In func: ui_nty(), lid = 0, cid = 65535, ntyEv = 1
 
00:02:00:025 x [CENTRAL] IPPS CB function(RegStatus) is called (0) with Line (0)
00:02:00:026 x [CENTRAL] Enter FSM: State(REGISTERING) | Event(REGISTER_FAIL) | Cause(0)
00:02:00:027 x [CENTRAL] Waiting event in REGISTERING
00:04:00:022   [sip]  00:04:00.021         pjcu.c  pjcuRcvHandler(KA), KA_REQUEST, eid=-1, p1=192.168.5.161;transport=tcp

00:04:00:033   [sip]  00:04:00.031 sip_transport.  Transport tcpc0x1a13018 registered: type=TCP
00:04:00:034   [sip]  00:04:00.033  tcpc0x1a13018  TCP client transport created
00:04:00:040   [sip]  00:04:00.036  tcpc0x1a13018  TCP transport 192.168.5.92:3981 is connecting to 192.168.5.161:5060...
00:04:00:045   [sip]  00:04:00.044  tcpc0x1a13018  TCP transport 192.168.5.92:3981 is connected to 192.168.5.161:5060
00:04:00:056   [sip]  00:04:00.054         pjcu.c  pjcu_rpt_ka_status(), target(192.168.5.161;transport=tcp): status=0, id=27

00:04:00:061 x [pcu] pcuRcvHandler(KA), KA_RESPONSE, eid=0, addr=192.168.5.161;transport=tcp, status=0

00:04:00:065   [sip]  00:04:00.063  tcpc0x1a13018  TCP transport destroyed normally, remote:192.168.5.161:5060
00:04:00:071   [sip]  00:04:00.070         pjcu.c  pjcuRcvHandler(KA), KA_REQUEST, eid=-1, p1=192.168.5.161:5060

00:04:00:085   [sip]  00:04:00.084         pjcu.c  pjcu_rpt_ka_status(), target(192.168.5.161:5060): status=0, id=27

00:04:00:091 x [pcu] pcuRcvHandler(KA), KA_RESPONSE, eid=0, addr=192.168.5.161:5060, status=0

00:04:00:091 x [pcu] [polling_next_lock_signal():202] Ignore the late msg!! 

Re: cisco 3905 + asterisk

Добавлено: 28 июн 2012, 17:26
funny_bunny
Проблема регистрации решена.

Вместо включения tcp на астере, нашел включение udp на телефоне.

Нужно было в поле transport protocol 4 на 2 заменить.

Теперь другая проблема.

Он регистрируется и через какое то время опять пишет registering, но сип регистрацию не теряет, правда отрубает всё управление.

На него можно позвонить, и он начинает звенеть, но ответить никак.

Код: Выделить всё

00:00:27:903   [sip]  00:00:27.902 sip_transport.  Transport udp0x1267960 registered: type=UDP
00:00:27:907   [sip]  00:00:27.905   udp0x1267960  SIP UDP transport started, published address is 192.168.5.92:5060
00:00:27:912   [sip]  00:00:27.910 sip_endpoint.c  Module "mod-unsolicited-mwi" registered
00:00:27:914   [sip]  00:00:27.912         pjcu.c  pjcuRcvHandler(CONN), REGISTER, eid=0, cid=-1

00:00:27:984   [sip]  00:00:27.982         pjcu.c  [PJCU_ProcConnEvt():2609] case FSIP_CORE_REGISTER, PJCU_TASK_ID(0), eid(0)

00:00:27:990   [sip]  00:00:27.985         pjcu.c  [pjcu_config_acc():595]  eid(0) is not mapping with pjcu accid, add a new account
00:00:27:992   [sip]  00:00:27.991   pjsua_kpml.c   !!! pjsua_kpml_init_acc
00:00:27:994   [sip]  00:00:27.993    pjsua_acc.c  Account "504" added with id 0
00:00:28:012   [sip]  00:00:28.011    pjsua_acc.c  Registration sent
00:00:28:014   [sip]  00:00:28.013         pjcu.c  [pjcu_config_acc():610]  Add a new entity eid(0) mapping acc_id(0)("504")
00:00:28:095   [sip]  00:00:28.093           util  Request msg REGISTER/cseq=58924 (tdta0x1a16004): skipping target resolution because address is already set
00:00:28:102   [sip]  00:00:28.100           util  Request msg REGISTER/cseq=58924 (tdta0x1a16004) exceeds UDP size threshold (1500), sending with TCP
00:00:28:105   [sip]  00:00:28.103   tsx0x126afac  Temporary failure in sending Request msg REGISTER/cseq=58924 (tdta0x1a16004), will try next server. Err=171064 (Unknown pjsip error 171064)
00:00:28:120   [sip]  00:00:28.116   pjsua_kpml.c   !!! kpml_on_rx_request method != SUBSCRIBE return FALSE
00:00:28:132   [sip]  00:00:28.130    pjsua_acc.c  SIP outbound status for acc 0 is not active
00:00:28:135   [sip]  00:00:28.133    pjsua_acc.c  "504": registration success, status=200 (OK), will re-register in 3600 seconds
00:00:28:141   [sip]  00:00:28.137         pjcu.c  pjcu_on_reg_state2(), Account["504"] : OK, status=200
00:00:28:145 x [pcu] pcuRcvHandler(CALL), SRV_EV, eid=0, cid=65535, 

00:00:28:147 x [pcu] [pcux_insrv_cb():7071] CUCM_DateTime:Thu, 28 Jun 2012 13:19:35 GMT
00:00:28:150 x [pcu] Sync time from server: Thu, 28 Jun 2012 13:19:35 GMT

00:00:28:153 w [DST] setDateTime() get CFG value fail, set GMT time to system 
13:19:35:154 x [pcu] [set_svr_type][1599] Bfe active_server_idx=0, serverType=0
13:19:35:155 x [pcu] [set_svr_type][1602] Aft  serverType=0, Server Number=3

13:19:35:160   [ipps] ----- PCU: CC_SRV, pid=0, eid=0, cid=65535 -----
13:19:35:161   [ipps] In func: remoteNtyEvtProcess(), lib = 0, cid = 65535, ntyEv = 0

13:19:35:162 f [ipps] In func: remoteNtyEvtProcess(), recv inservice nty, svrType = 0, cause = 0
13:19:35:163 f [MMI] : In func: ui_nty(), lid = 0, cid = 65535, ntyEv = 0
 
13:19:35:164 x [CENTRAL] IPPS CB function(RegStatus) is called (1) with Line (0)
13:19:35:165 f [ipps] In func: mlcu_isKpmlEnabled(), KPML value = 3, blRet = 1 

13:19:35:210 x [CENTRAL] Enter FSM: State(REGISTERING) | Event(REGISTER_OK) | Cause(0)
13:19:35:211 x [CENTRAL] State transit REGISTERING --> STANDBY
13:19:35:213 f [fos_task] [fos]: In func: fos_taskCreate(), create thread (NTP) OK, threadID = 28697
13:19:35:214 w [NTP] Created NTP task successful 
13:19:35:215 x [CENTRAL] Waiting event in STANDBY
13:19:35:216 w [NTP] ----- szNTPSVR1=192.168.5.161, szNTPSVR2=0.0.0.0, 
13:19:35:220 w [NTP] msntp_run()     1189  nSvrCount = 1 
13:19:35:221 w [NTP] find_address()  58 hostname=192.168.5.161 
13:19:35:224 w [NTP] run_client()     943 
13:19:35:231 w [NTP] read_packet()    625    packet length=48 
13:19:35:235 w [NTP] read_packet()    640  bNeedCheckLI=0,  data->mode=4, failed=0, data->status=0, data->version=3, data->stratum=3 
13:19:35:237 w [NTP] read_packet()    663    failed=0 
13:19:35:241 w [NTP] read_packet()    706    dispersion=0.000000 
13:19:35:243 w [NTP] run_client()     996  error=0.005941, minerr=0.000000 
13:19:35:245 w [DST] setDateTime() get CFG value fail, set GMT time to system 
13:19:38:090 w [pcu] [pcu_polling_sipserver_thread():1342] polling stopped..

13:19:38:130 w [pcu] [pcu_polling_sipserver_thread():1351] polling resumed..

13:19:38:133   [sip]  00:00:30.132         pjcu.c  pjcuRcvHandler(KA), KA_REQUEST, eid=-1, p1=192.168.5.161:5060

13:19:38:150   [sip]  00:00:30.146         pjcu.c  pjcu_rpt_ka_status(), target(192.168.5.161:5060): status=0, id=27

13:19:38:153 x [pcu] pcuRcvHandler(KA), KA_RESPONSE, eid=0, addr=192.168.5.161:5060, status=0

13:19:38:154 x [pcu] [polling_next_lock_signal():202] Ignore the late msg!! 

13:20:08:020 x [pcu] [polling_next_lock_timedwait():184] polling_next_lock_timedwait timeout, set this server: 1 unreachable !! 

13:20:08:023   [sip]  00:01:00.022         pjcu.c  pjcuRcvHandler(KA), KA_REQUEST, eid=-1, p1=192.168.5.161:5060

13:20:08:040   [sip]  00:01:00.036         pjcu.c  pjcu_rpt_ka_status(), target(192.168.5.161:5060): status=0, id=27

13:20:08:043 x [pcu] pcuRcvHandler(KA), KA_RESPONSE, eid=0, addr=192.168.5.161:5060, status=0

13:20:08:043 x [pcu] [polling_next_lock_signal():202] Ignore the late msg!! 

13:20:36:125   [sip]  00:01:28.124   pjsua_kpml.c   !!! kpml_on_rx_request method != SUBSCRIBE return FALSE
13:20:38:020 x [pcu] [polling_next_lock_timedwait():184] polling_next_lock_timedwait timeout, set this server: 2 unreachable !! 

13:20:38:022   [ipps] ----- PCU: CC_SRV, pid=0, eid=0, cid=65535 -----
13:20:38:023   [ipps] In func: remoteNtyEvtProcess(), lib = 0, cid = 65535, ntyEv = 1

13:20:38:024 f [ipps] In func: remoteNtyEvtProcess(), recv out of service nty, svrType = 0, cause = 0
13:20:38:025 f [MMI] : In func: ui_nty(), lid = 0, cid = 65535, ntyEv = 1
 
13:20:38:025 x [CENTRAL] IPPS CB function(RegStatus) is called (0) with Line (0)
13:20:38:037 x [CENTRAL] Enter FSM: State(STANDBY) | Event(REGISTER_FAIL) | Cause(0)
13:20:38:053 x [CENTRAL] State transit STANDBY --> REGISTERING
13:20:38:053 x [CENTRAL] Waiting event in REGISTERING
13:20:40:260 w [NTP] find_address()  58 hostname=192.168.5.161 
13:20:40:263 w [NTP] run_client()     943 
13:20:40:266 w [NTP] read_packet()    625    packet length=48 
13:20:40:273 w [NTP] read_packet()    640  bNeedCheckLI=0,  data->mode=4, failed=0, data->status=0, data->version=3, data->stratum=3 
13:20:40:274 w [NTP] read_packet()    663    failed=0 
13:20:40:275 w [NTP] read_packet()    706    dispersion=0.044479 
13:20:40:280 w [NTP] run_client()     996  error=0.002512, minerr=0.000000 
13:20:40:282 w [DST] setDateTime() get CFG value fail, set GMT time to system 

Re: cisco 3905 + asterisk

Добавлено: 29 июн 2012, 11:31
CheeZ
Таже ботва...

Re: cisco 3905 + asterisk

Добавлено: 31 июл 2012, 12:25
Continent
Поделитесь рабочим конфигом у кого получилось победить.

Может есть ГУРУ которые смогут помочь в интеграции * и CISCO CP-3905

приведу свой лог:

CLI>sip set debug ip 192.168.50.172

SIP Debugging Enabled for IP: 192.168.50.172

<--- SIP read from UDP:192.168.50.172:5060 --->
REGISTER sip:192.168.0.28:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.50.172:5060;rport;branch=z9hG4bKPjKknpZC5cPL5x9Q-.8iPxsUvgj31tu6-D
Max-Forwards: 70
From: "3002" <sip:3002@192.168.0.28>;tag=XWHeJTyGhQ0cqLR0i.g-9lMbSYjFghnQ
To: "3002" <sip:3002@192.168.0.28>
Call-ID: QjsMC2hadI9GZPnpiWKGELR7GLzYiW8J
CSeq: 49021 REGISTER
User-Agent: Cisco-CP3905/9.2.1
Contact: <sip:3002@192.168.50.172:5060>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-f47f353decdf>";+u.sip!devicename.ccm.cisco.com="SEPF47F353DECDF";+u.sip!model.ccm.cisco.com="592"
Expires: 3600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Disposition: session;handling=optional
Content-Type: application/x-cisco-remotecc-request+xml
Content-Length: 413
Reason: SIP;cause=200;text="cisco-alarm:25 Name=SEPF47F353DECDF Load=3905.9-2-1-0 Last=initialized"
Supported: replaces,join,sdp-anat,norefersub,extended-refer,X-cisco-callinfo,X-cisco-serviceuri,X-cisco-escapecodes,X-cisco-service-control,X-cisco-monrec,X-cisco-config,X-cisco-sis-4.0.0,X-cisco-xsi-7.0.1

<?xml version="1.0" encoding="UTF-8"?>
<x-cisco-remotecc-request>
<optionsind>
<combine max="6">
<remotecc>
<status></status>
</remotecc>
<service-control></service-control>
</combine>
<dialog usage="hook status">
<unot></unot>
<sub></sub>
</dialog>
<dialog usage="shared line">
<unot></unot>
<sub></sub>
</dialog>
<cfwdall-anyline>No</cfwdall-anyline>
</optionsind>
</x-cisco-remotecc-request>
<------------->
--- (16 headers 20 lines) ---
Sending to 192.168.50.172:5060 (NAT)

<--- Transmitting (no NAT) to 192.168.50.172:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.50.172:5060;branch=z9hG4bKPjKknpZC5cPL5x9Q-.8iPxsUvgj31tu6-D;received=192.168.50.172;rport=5060
From: "3002" <sip:3002@192.168.0.28>;tag=XWHeJTyGhQ0cqLR0i.g-9lMbSYjFghnQ
To: "3002" <sip:3002@192.168.0.28>;tag=as7fdefc92
Call-ID: QjsMC2hadI9GZPnpiWKGELR7GLzYiW8J
CSeq: 49021 REGISTER
Server: Continent_ATS
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="32be1ccc"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'QjsMC2hadI9GZPnpiWKGELR7GLzYiW8J' in 32000 ms (Method: REGISTER)

<--- SIP read from UDP:192.168.50.172:5060 --->
REGISTER sip:192.168.0.28:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.50.172:5060;rport;branch=z9hG4bKPj6J7B8xlnA5mLIqrz5ssf1w9m76IlfT7k
Max-Forwards: 70
From: "3002" <sip:3002@192.168.0.28>;tag=XWHeJTyGhQ0cqLR0i.g-9lMbSYjFghnQ
To: "3002" <sip:3002@192.168.0.28>
Call-ID: QjsMC2hadI9GZPnpiWKGELR7GLzYiW8J
CSeq: 49022 REGISTER
User-Agent: Cisco-CP3905/9.2.1
Contact: <sip:3002@192.168.50.172:5060>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-f47f353decdf>";+u.sip!devicename.ccm.cisco.com="SEPF47F353DECDF";+u.sip!model.ccm.cisco.com="592"
Expires: 3600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Disposition: session;handling=optional
Content-Type: application/x-cisco-remotecc-request+xml
Content-Length: 413
Reason: SIP;cause=200;text="cisco-alarm:25 Name=SEPF47F353DECDF Load=3905.9-2-1-0 Last=initialized"
Supported: replaces,join,sdp-anat,norefersub,extended-refer,X-cisco-callinfo,X-cisco-serviceuri,X-cisco-escapecodes,X-cisco-service-control,X-cisco-monrec,X-cisco-config,X-cisco-sis-4.0.0,X-cisco-xsi-7.0.1
Authorization: Digest username="3002", realm="asterisk", nonce="32be1ccc", uri="sip:192.168.0.28:5060", response="50890c7a6206f78e0f83be3ae1762c9b", algorithm=MD5

<?xml version="1.0" encoding="UTF-8"?>
<x-cisco-remotecc-request>
<optionsind>
<combine max="6">
<remotecc>
<status></status>
</remotecc>
<service-control></service-control>
</combine>
<dialog usage="hook status">
<unot></unot>
<sub></sub>
</dialog>
<dialog usage="shared line">
<unot></unot>
<sub></sub>
</dialog>
<cfwdall-anyline>No</cfwdall-anyline>
</optionsind>
</x-cisco-remotecc-request>
<------------->
--- (17 headers 20 lines) ---
Sending to 192.168.50.172:5060 (no NAT)

<--- Transmitting (no NAT) to 192.168.50.172:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.50.172:5060;branch=z9hG4bKPj6J7B8xlnA5mLIqrz5ssf1w9m76IlfT7k;received=192.168.50.172;rport=5060
From: "3002" <sip:3002@192.168.0.28>;tag=XWHeJTyGhQ0cqLR0i.g-9lMbSYjFghnQ
To: "3002" <sip:3002@192.168.0.28>;tag=as7fdefc92
Call-ID: QjsMC2hadI9GZPnpiWKGELR7GLzYiW8J
CSeq: 49022 REGISTER
Server: Continent_ATS
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 3600
Contact: <sip:3002@192.168.50.172:5060>;expires=3600
Date: Tue, 31 Jul 2012 08:19:34 GMT
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'QjsMC2hadI9GZPnpiWKGELR7GLzYiW8J' in 32000 ms (Method: REGISTER)

<--- SIP read from UDP:192.168.50.172:5060 --->
REGISTER sip:192.168.0.28:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.50.172:5060;rport;branch=z9hG4bKPj.aQb1stjvdcUsZKmJTTbogB5vIOSoPet
Max-Forwards: 70
From: <sip:3002@192.168.0.28>;tag=DDey4t.8SpoVnu01IDz49lSeWHPiF9gG
To: <sip:3002@192.168.0.28>
Call-ID: oDqqd4qp.q3G0d1PHncvSolRgPNfx2uj
CSeq: 13932 REGISTER
Expires: 0
Contact: <sip:3002@192.168.50.172:5060>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-f47f353decdf>";+u.sip!devicename.ccm.cisco.com="SEPF47F353DECDF";+u.sip!model.ccm.cisco.com="592";expires=0;cisco-keep-alive
Content-Length: 0

<------------->
--- (10 headers 0 lines) ---
Sending to 192.168.50.172:5060 (NAT)

<--- Transmitting (no NAT) to 192.168.50.172:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.50.172:5060;branch=z9hG4bKPj.aQb1stjvdcUsZKmJTTbogB5vIOSoPet;received=192.168.50.172;rport=5060
From: <sip:3002@192.168.0.28>;tag=DDey4t.8SpoVnu01IDz49lSeWHPiF9gG
To: <sip:3002@192.168.0.28>;tag=as20a70a03
Call-ID: oDqqd4qp.q3G0d1PHncvSolRgPNfx2uj
CSeq: 13932 REGISTER
Server: Continent_ATS
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="73f9f039"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'oDqqd4qp.q3G0d1PHncvSolRgPNfx2uj' in 32000 ms (Method: REGISTER)

<--- SIP read from UDP:192.168.50.172:5060 --->
NOTIFY sip:3002@192.168.0.28:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.50.172:5060;rport;branch=z9hG4bKPjkVa.9GsZyPNwVktf1iliolaTvPIl38DW
Max-Forwards: 70
From: "3002" <sip:3002@192.168.0.28>;tag=TISOd6frQh15UDX9GbSb0a8M4MA4IZSF
To: "3002" <sip:3002@192.168.0.28>
Contact: <sip:3002@192.168.50.172:5060>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-f47f353decdf>";+u.sip!devicename.ccm.cisco.com="SEPF47F353DECDF";+u.sip!model.ccm.cisco.com="592"
Call-ID: PFA6wcrixekrlsVlAh2Tkn9gtul8A359
CSeq: 12975 NOTIFY
Content-Length: 353
Subscription-State: active
Event: dialog
Content-Disposition: session;handling=required
Content-Type: application/dialog-info+xml

<?xml version="1.0" encoding="UTF-8" ?>
<dialog-info xmlns:call="urn:x-cisco:parmams:xml:ns:dialog-info:dialog:callinfo-dialog" version="0" state="partial" entity="sip:3002@192.168.50.172">
<dialog id="1" call-id="e8c2a1c8-0826-4290-888e-d4c8ff7cc94e" local-tag="774d844f-74c4-4465-8ab8-19877ecc37c4">
<state>trying</state></dialog>
</dialog-info>
<------------->
--- (13 headers 5 lines) ---

<--- Transmitting (NAT) to 192.168.50.172:5060 --->
SIP/2.0 489 Bad event
Via: SIP/2.0/UDP 192.168.50.172:5060;branch=z9hG4bKPjkVa.9GsZyPNwVktf1iliolaTvPIl38DW;received=192.168.50.172;rport=5060
From: "3002" <sip:3002@192.168.0.28>;tag=TISOd6frQh15UDX9GbSb0a8M4MA4IZSF
To: "3002" <sip:3002@192.168.0.28>;tag=as446cd1cb
Call-ID: PFA6wcrixekrlsVlAh2Tkn9gtul8A359
CSeq: 12975 NOTIFY
Server: Continent_ATS
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'PFA6wcrixekrlsVlAh2Tkn9gtul8A359' in 32000 ms (Method: NOTIFY)
Really destroying SIP dialog 'QjsMC2hadI9GZPnpiWKGELR7GLzYiW8J' Method: REGISTER
Really destroying SIP dialog 'oDqqd4qp.q3G0d1PHncvSolRgPNfx2uj' Method: REGISTER

<--- SIP read from UDP:192.168.50.172:5060 --->
NOTIFY sip:3002@192.168.0.28:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.50.172:5060;rport;branch=z9hG4bKPjHArmujj6IX4CWSVxMczCozahFn0xroqb
Max-Forwards: 70
From: "3002" <sip:3002@192.168.0.28>;tag=itHNmOY3lX2307oqG3MU6MFvTMgeO9WK
To: "3002" <sip:3002@192.168.0.28>
Contact: <sip:3002@192.168.50.172:5060>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-f47f353decdf>";+u.sip!devicename.ccm.cisco.com="SEPF47F353DECDF";+u.sip!model.ccm.cisco.com="592"
Call-ID: nVCj-FOru5kJPhIlHeg2LxBweRooCL2J
CSeq: 15282 NOTIFY
Content-Length: 354
Subscription-State: active
Event: dialog
Content-Disposition: session;handling=required
Content-Type: application/dialog-info+xml

<?xml version="1.0" encoding="UTF-8" ?>
<dialog-info xmlns:call="urn:x-cisco:parmams:xml:ns:dialog-info:dialog:callinfo-dialog" version="1"
state="partial" entity="sip:3002@192.168.50.172">
<dialog id="1" call-id="e8c2a1c8-0826-4290-888e-d4c8ff7cc94e" local-tag="774d844f-74c4-4465-8ab8-19877ecc37c4"><state>terminated</state></dialog>
</dialog-info>
<------------->
--- (13 headers 5 lines) ---

<--- Transmitting (NAT) to 192.168.50.172:5060 --->
SIP/2.0 489 Bad event
Via: SIP/2.0/UDP 192.168.50.172:5060;branch=z9hG4bKPjHArmujj6IX4CWSVxMczCozahFn0xroqb;received=192.168.50.172;rport=5060
From: "3002" <sip:3002@192.168.0.28>;tag=itHNmOY3lX2307oqG3MU6MFvTMgeO9WK
To: "3002" <sip:3002@192.168.0.28>;tag=as28c7c543
Call-ID: nVCj-FOru5kJPhIlHeg2LxBweRooCL2J
CSeq: 15282 NOTIFY
Server: Continent_ATS
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'nVCj-FOru5kJPhIlHeg2LxBweRooCL2J' in 32000 ms (Method: NOTIFY)
Really destroying SIP dialog 'PFA6wcrixekrlsVlAh2Tkn9gtul8A359' Method: NOTIFY
Really destroying SIP dialog 'nVCj-FOru5kJPhIlHeg2LxBweRooCL2J' Method: NOTIFY
*CLI>

Между телефоном и * чистый роутинг. Пробовал как с NAT и с nat=no. Эффект один и тот же

При включении телефона - он регистрируется на *. На телефон cisco можно позвонить и даже поговорить в отличном качестве. Но если положить трубку - телефон переходит в вечный режим registering

Re: cisco 3905 + asterisk

Добавлено: 31 июл 2012, 14:13
drookie
Ну, во-первых, не в вечный, а в периодический - у него там паузы бывают, в которые нужно успевать звонить.
Во-вторых - убери из конфига секцию <srstInfo>, и будет щастье.

Проверить, наступило ли счатье, можно на веб-морде телефона - там должен остаться один хост в качестве станции и рядом с ним должно быть написано Active.

По таймзоне кто-нить подскажет ?
У меня GMT+0 выставилась, а надо GMT+6.