[asterisk-bugs] [JIRA] (ASTERISK-13145) [patch] Presence subscription on Cisco SIP phone needs special Cisco-styled XML

Andrey Zharkov (JIRA) noreply at issues.asterisk.org
Wed Feb 27 06:33:56 CST 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-13145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246345#comment-246345 ] 

Andrey Zharkov commented on ASTERISK-13145:
-------------------------------------------

Hi Gareth.
"sip reload" breaks the work of the second (third) lines.
sip.conf
{noformat}
[general]
allowguest=no
context=public
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=yes
tcpbindaddr=0.0.0.0
transport=tcp,udp
srvlookup=yes

[extension](!)
type=friend
context=extensions
host=dynamic
nat=no
trustrpid=no
sendrpid=rpid
rpid_update=yes
rpid_immediate=yes
parkinglot=default
allowsubscribe=yes
notifyhold=no
callcounter=yes
videosupport=no
disallow=all
allow=g722,ulaw,alaw

[cisco-usecallmanager](!,extension)
transport=tcp
cisco_usecallmanager=yes
cisco_pickupnotify_alert=from,to
cisco_pickupnotify_timer=5
cisco_keep_conference=no
cisco_multiadmin_conference=yes
dndbusy=yes
huntgroup_default=no

[insecure-mode](!)
transport=tcp

[cisco-88XX](!,cisco-usecallmanager)
busylevel=4
call-limit=5
videosupport=yes
allow=h264

[107](cisco-88XX,insecure-mode)
secret=107
callerid="NUMBER 107" <107>
description=NUMBER 107
callgroup=1
pickupgroup=1
mailbox=107 at default
register=108
register=110

[108](cisco-88XX,insecure-mode)
secret=107
callerid="NUMBER 108" <108>
description=NUMBER 108
mailbox=108 at default

[110](cisco-88XX,insecure-mode)
secret=107
callerid="NUMBER 110" <110>
description=NUMBER 110
mailbox=110 at default

[199](extension)
secret=199
callerid="NUMBER 199" <199>
description=NUMBER 199
callgroup=1
pickupgroup=1
mailbox=199 at default
transport=tcp
{noformat}
SEPXXX.cnf.xml
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<device>
    <fullConfig>true</fullConfig>
    <deviceProtocol>SIP</deviceProtocol>
    <devicePool>
        <dateTimeSetting>
            <dateTemplate>D/M/Y</dateTemplate>
            <timeZone>Arabian Standard Time</timeZone>
            <ntps>
                <ntp>
                    <name>10.10.11.254</name>
                    <ntpMode>Unicast</ntpMode>
                </ntp>
            </ntps>
        </dateTimeSetting>
        <callManagerGroup>
            <members>
                <member priority="0">
                    <callManager>
                        <ports>
                            <sipPort>5060</sipPort>
                            <securedSipPort>5061</securedSipPort>
                        </ports>
                        <processNodeName>10.10.10.34</processNodeName>
                    </callManager>
                </member>
            </members>
        </callManagerGroup>
    </devicePool>
    <!-- <vpnGroup>
        <mtu>1290</mtu>
        <failConnectTime>30</failConnectTime>
        <authMethod>0</authMethod>
        <pswdPersistent>1</pswdPersistent>
        <autoNetDetect>1</autoNetDetect>
        <enableHostIDCheck>0</enableHostIDCheck>
        <addresses>
            <url1></url1>
        </addresses>
        <credentials>
            <hashAlg>0</hashAlg>
            <certHash1></certHash1>
        </credentials>
    </vpnGroup> -->
    <sipProfile>
        <sipProxies>
            <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>1</callHoldRingback>
            <localCfwdEnable>true</localCfwdEnable>
            <semiAttendedTransfer>true</semiAttendedTransfer>
            <anonymousCallBlock>3</anonymousCallBlock>
            <callerIdBlocking>0</callerIdBlocking>
            <dndControl>0</dndControl>
            <remoteCcEnable>true</remoteCcEnable>
            <retainForwardInformation>false</retainForwardInformation>
            <uriDialingDisplayPreference>1</uriDialingDisplayPreference>
        </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>Phone</userInfo>
        </sipStack>
        <autoAnswerTimer>1</autoAnswerTimer>
        <autoAnswerAltBehavior>false</autoAnswerAltBehavior>
        <autoAnswerOverride>true</autoAnswerOverride>
        <transferOnhookEnabled>true</transferOnhookEnabled>
        <enableVad>false</enableVad>
        <preferredCodec>none</preferredCodec>
        <dtmfAvtPayload>101</dtmfAvtPayload>
        <dtmfDbLevel>3</dtmfDbLevel>
        <dtmfOutofBand>avt</dtmfOutofBand>
        <alwaysUsePrimeLine>false</alwaysUsePrimeLine>
        <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail>
        <kpml>0</kpml>
        <phoneLabel>107</phoneLabel>
        <stutterMsgWaiting>0</stutterMsgWaiting>
        <callStats>true</callStats>
        <offhookToFirstDigitTimer>15000</offhookToFirstDigitTimer>
        <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts>
        <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig>
        <startMediaPort>16384</startMediaPort>
        <stopMediaPort>32766</stopMediaPort>
        <natEnabled>false</natEnabled>
        <sipLines>
            <line button="1" lineIndex="1">
                <featureID>9</featureID>
                <featureLabel>107</featureLabel>
                <name>107</name>
                <displayName>107</displayName>
                <contact>107</contact>
                <proxy>USECALLMANAGER</proxy>
                <port>5060</port>
                <autoAnswer>
                    <autoAnswerEnabled>0</autoAnswerEnabled>
                </autoAnswer>
                <callWaiting>3</callWaiting>

                <authName>107</authName>
                <authPassword>107</authPassword>

                <sharedLine>false</sharedLine>
                <messageWaitingLampPolicy>3</messageWaitingLampPolicy>
                <messageWaitingAMWI>1</messageWaitingAMWI>
                <messagesNumber>8000</messagesNumber>
                    <ringSettingIdle>4</ringSettingIdle>
                    <ringSettingActive>5</ringSettingActive>
                <forwardCallInfoDisplay>
                    <callerName>true</callerName>
                    <callerNumber>false</callerNumber>
                    <redirectedNumber>false</redirectedNumber>
                    <dialedNumber>true</dialedNumber>
                </forwardCallInfoDisplay>
                <maxNumCalls>6</maxNumCalls>
                <busyTrigger>4</busyTrigger>
            </line>
            <line button="2" lineIndex="2">
                <featureID>9</featureID>
                <featureLabel>108</featureLabel>
                <name>108</name>
                <displayName>108</displayName>
                <contact>108</contact>
                <proxy>USECALLMANAGER</proxy>
                <port>5060</port>
                <autoAnswer>
                    <autoAnswerEnabled>0</autoAnswerEnabled>
                </autoAnswer>
                <callWaiting>3</callWaiting>

                <!--authName>108</authName>
                <authPassword>107</authPassword-->

                <sharedLine>false</sharedLine>
                <messageWaitingLampPolicy>3</messageWaitingLampPolicy>
                <messageWaitingAMWI>1</messageWaitingAMWI>
                <messagesNumber>8000</messagesNumber>
                <ringSettingIdle>4</ringSettingIdle>
                <ringSettingActive>5</ringSettingActive>
                <forwardCallInfoDisplay>
                    <callerName>true</callerName>
                    <callerNumber>false</callerNumber>
                    <redirectedNumber>false</redirectedNumber>
                    <dialedNumber>true</dialedNumber>
                </forwardCallInfoDisplay>
                <maxNumCalls>6</maxNumCalls>
                <busyTrigger>4</busyTrigger>
            </line>
            <line button="3" lineIndex="3">
                <featureID>9</featureID>
                <featureLabel>110</featureLabel>
                <name>110</name>
                <displayName>110</displayName>
                <contact>110</contact>
                <proxy>USECALLMANAGER</proxy>
                <port>5060</port>
                <autoAnswer>
                    <autoAnswerEnabled>0</autoAnswerEnabled>
                </autoAnswer>
                <callWaiting>3</callWaiting>

                <!--authName>110</authName>
                <authPassword>110</authPassword-->

                <sharedLine>false</sharedLine>
                <messageWaitingLampPolicy>3</messageWaitingLampPolicy>
                <messageWaitingAMWI>1</messageWaitingAMWI>
                <messagesNumber>8000</messagesNumber>
                <ringSettingIdle>4</ringSettingIdle>
                <ringSettingActive>5</ringSettingActive>
                <forwardCallInfoDisplay>
                    <callerName>true</callerName>
                    <callerNumber>false</callerNumber>
                    <redirectedNumber>false</redirectedNumber>
                    <dialedNumber>true</dialedNumber>
                </forwardCallInfoDisplay>
                <maxNumCalls>6</maxNumCalls>
                <busyTrigger>4</busyTrigger>
            </line>
        </sipLines>
        <externalNumberMask></externalNumberMask>
        <voipControlPort>5060</voipControlPort>
        <dscpForAudio>184</dscpForAudio>
        <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy>
        <dialTemplate>dialplan_3.xml</dialTemplate>
        <softKeyFile>softkey_8865.xml</softKeyFile>
    </sipProfile>
    <MissedCallLoggingOption>1</MissedCallLoggingOption>
    <featurePolicyFile>FeaturePolicy_88.xml</featurePolicyFile>
    <commonProfile>
        <phonePassword></phonePassword>
        <backgroundImageAccess>true</backgroundImageAccess>
        <callLogBlfEnabled>3</callLogBlfEnabled>
    </commonProfile>
    <vendorConfig>
        <defaultWallpaperFile></defaultWallpaperFile>
        <disableSpeaker>false</disableSpeaker>
        <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
        <enableMuteFeature>false</enableMuteFeature>
        <enableGroupListen>true</enableGroupListen>
        <holdResumeKey>1</holdResumeKey>
        <recentsSoftKey>1</recentsSoftKey>
        <dfBit>1</dfBit>
        <pcPort>0</pcPort>
        <spanToPCPort>1</spanToPCPort>
        <garp>0</garp>
        <rtcp>1</rtcp>
        <videoRtcp>1</videoRtcp>
        <voiceVlanAccess>0</voiceVlanAccess>
        <videoCapability>1</videoCapability>
        <hideVideoByDefault>0</hideVideoByDefault>
        <separateMute>0</separateMute>
        <ciscoCamera>1</ciscoCamera>
        <usb1>1</usb1>
        <usb2>1</usb2>
        <usbClasses>0,1,2</usbClasses>
        <sdio>1</sdio>
        <wifi>1</wifi>
        <bluetooth>1</bluetooth>
        <bluetoothProfile>0,1</bluetoothProfile>
        <btpbap>0</btpbap>
        <bthfu>0</bthfu>
        <ehookEnable>0</ehookEnable>
        <autoSelectLineEnable>1</autoSelectLineEnable>
        <autoCallSelect>1</autoCallSelect>
        <incomingCallToastTimer>10</incomingCallToastTimer>
        <dialToneFromReleaseKey>0</dialToneFromReleaseKey>
        <joinAndDirectTransferPolicy>0</joinAndDirectTransferPolicy>
        <minimumRingVolume></minimumRingVolume>
        <simplifiedNewCall>0</simplifiedNewCall>
        <actionableAlert>0</actionableAlert>
        <showCallHistoryForSelectedLine>0</showCallHistoryForSelectedLine>
        <kemOneColumn>0</kemOneColumn>
        <lineMode>1</lineMode>
        <allCallsOnPrimary>0</allCallsOnPrimary>
        <softKeyControl>0</softKeyControl>
        <settingsAccess>1</settingsAccess>
        <webProtocol>0</webProtocol>
        <webAccess>0</webAccess>
        <webAdmin>1</webAdmin>
        <adminPassword></adminPassword>
        <sshAccess>0</sshAccess>
        <detectCMConnectionFailure>0</detectCMConnectionFailure>
        <g722CodecSupport>1</g722CodecSupport>
        <handsetWidebandEnable>2</handsetWidebandEnable>
        <headsetWidebandEnable>2</headsetWidebandEnable>
        <headsetWidebandUIControl>1</headsetWidebandUIControl>
        <handsetWidebandUIControl>1</handsetWidebandUIControl>
        <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive>
        <displayOnTime>08:00</displayOnTime>
        <displayOnDuration>10:30</displayOnDuration>
        <displayIdleTimeout>01:00</displayIdleTimeout>
        <displayOnWhenIncomingCall>1</displayOnWhenIncomingCall>
        <displayRefreshRate>0</displayRefreshRate>
        <daysBacklightNotActive>1,2,3,4,5,6,7</daysBacklightNotActive>
        <backlightOnTime>08:00</backlightOnTime>
        <backlightOnDuration>10:30</backlightOnDuration>
        <backlightIdleTimeout>01:00</backlightIdleTimeout>
        <backlightOnWhenIncomingCall>1</backlightOnWhenIncomingCall>
        <recordingTone>0</recordingTone>
        <recordingToneLocalVolume>100</recordingToneLocalVolume>
        <recordingToneRemoteVolume>50</recordingToneRemoteVolume>
        <recordingToneDuration></recordingToneDuration>
        <moreKeyReversionTimer>5</moreKeyReversionTimer>
        <peerFirmwareSharing>0</peerFirmwareSharing>
        <loadServer></loadServer>
        <problemReportUploadURL></problemReportUploadURL>
        <enableCdpSwPort>1</enableCdpSwPort>
        <enableCdpPcPort>0</enableCdpPcPort>
        <enableLldpSwPort>1</enableLldpSwPort>
        <enableLldpPcPort>0</enableLldpPcPort>
        <cdpEnable>true</cdpEnable>
        <outOfRangeAlert>0</outOfRangeAlert>
        <scanningMode>2</scanningMode>
        <applicationURL></applicationURL>
        <appButtonTimer>0</appButtonTimer>
        <appButtonPriority>0</appButtonPriority>
        <specialNumbers></specialNumbers>
        <sendKeyAction>0</sendKeyAction>
        <powerOffWhenCharging>0</powerOffWhenCharging>
        <homeScreen>0</homeScreen>
        <accessContacts>1</accessContacts>
        <accessFavorites>1</accessFavorites>
        <accessVoicemail>1</accessVoicemail>
        <accessApps>1</accessApps>
    </vendorConfig>
    <versionStamp>d902ed5a-c1e5-4233-b1d6-a960d53d1c3a</versionStamp>
    <loadInformation>sip8845_65.12-5-1SR1-4</loadInformation>
    <addOnModules>
        <addOnModule idx="1">
            <deviceType>BEKEM</deviceType>
            <deviceLine>36</deviceLine>
            <loadInformation></loadInformation>
        </addOnModule>
        <addOnModule idx="2">
            <deviceType>BEKEM</deviceType>
            <deviceLine>36</deviceLine>
            <loadInformation></loadInformation>
        </addOnModule>
    </addOnModules>
    <phoneServices useHTTPS="false">
        <provisioning>2</provisioning>
        <phoneService type="1" category="0">
            <name>Missed Calls</name>
            <url>Application:Cisco/MissedCalls</url>
            <vendor></vendor>
            <version></version>
        </phoneService>
        <phoneService type="1" category="0">
            <name>Received Calls</name>
            <url>Application:Cisco/ReceivedCalls</url>
            <vendor></vendor>
            <version></version>
        </phoneService>
        <phoneService type="1" category="0">
            <name>Placed Calls</name>
            <url>Application:Cisco/PlacedCalls</url>
            <vendor></vendor>
            <version></version>
        </phoneService>
        <phoneService type="2" category="0">
            <name>Voicemail</name>
            <url>Application:Cisco/Voicemail</url>
            <vendor></vendor>
            <version></version>
        </phoneService>
    </phoneServices>
    <userLocale>
        <name></name>
        <uid>1</uid>
        <langCode></langCode>
        <version></version>
        <winCharSet>utf-8</winCharSet>
    </userLocale>
    <networkLocale></networkLocale>
    <networkLocaleInfo>
        <name></name>
        <version></version>
    </networkLocaleInfo>
    <deviceSecurityMode>1</deviceSecurityMode>
    <idleTimeout>0</idleTimeout>
    <authenticationURL>http://10.10.10.34/auth</authenticationURL>
    <servicesURL>http://10.10.10.34/cgi/cisco/services?name=SEP00B1E3XXXXXX</servicesURL>
    <directoryURL>http://10.10.10.34/cgi/cisco/services?name=SEP00B1E3XXXXXX</directoryURL>
    <messagesURL></messagesURL>
    <idleURL></idleURL>
    <informationURL></informationURL>
    <proxyServerURL></proxyServerURL>
    <secureAuthenticationURL></secureAuthenticationURL>
    <secureMessagesURL></secureMessagesURL>
    <secureServicesURL></secureServicesURL>
    <secureDirectoryURL></secureDirectoryURL>
    <secureInformationURL></secureInformationURL>
    <secureIdleURL></secureIdleURL>
    <transportLayerProtocol>1</transportLayerProtocol>
    <TLSResumptionTimer>3600</TLSResumptionTimer>
    <phonePersonalization>1</phonePersonalization>
    <autoCallPickupEnable>true</autoCallPickupEnable>
    <blfAudibleAlertSettingOfIdleStation>0</blfAudibleAlertSettingOfIdleStation>
    <blfAudibleAlertSettingOfBusyStation>0</blfAudibleAlertSettingOfBusyStation>
    <dndCallAlert>1</dndCallAlert>
    <dndReminderTimer>5</dndReminderTimer>
    <advertiseG722Codec>1</advertiseG722Codec>
    <rollover>0</rollover>
    <joinAcrossLines>0</joinAcrossLines>
    <capfAuthMode>0</capfAuthMode>
    <capfList></capfList>
    <certHash></certHash>
    <encrConfig>false</encrConfig>
    <sshUserId></sshUserId>
    <sshPassword></sshPassword>
</device>
{noformat}
When I run the asterisk everything works fine. CISCO phone with 3 lines (107,108,110) registers and calls correctly. Аll three lines.
But if I make minor changes in sip.conf (just add an empty line) or in shell run "touch /etc/asterisk/sip.conf" and execute the "sip reload" command, then calls from the second (third) line are rejected by the asterisk:
{noformat}
[Feb 25 07:07:04] WARNING[5957][C-00000004]: chan_sip.c:18075 check_auth: username mismatch, have <108>, digest has <107>
[Feb 25 07:07:04] NOTICE[5957][C-00000004]: chan_sip.c:30323 handle_request_invite: Failed to authenticate device "108" <sip:108 at 10.10.10.34>;tag=00b1e3bb7fbe021276222be8-2b2120da
{noformat}
For normal operation only restart asterisk or re-registration of phones helps.
Why?
What im doing wrong?
Checked on versions 13,16 of asterisk.

> [patch] Presence subscription on Cisco SIP phone needs special Cisco-styled XML
> -------------------------------------------------------------------------------
>
>                 Key: ASTERISK-13145
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-13145
>             Project: Asterisk
>          Issue Type: New Feature
>          Components: Channels/chan_sip/NewFeature
>            Reporter: Gareth Palmer
>            Assignee: Gareth Palmer
>              Labels: patch, pjsip
>         Attachments: 00_READ_ME_FIRST.txt, AppDialRules.xml, cisco-usecallmanager-13.25.0.patch, cisco-usecallmanager-16.2.0.patch, DialTemplate.xml, FeaturePolicy.xml, SEPMAC.cnf.xml, SoftKeys.xml
>
>
> This patch provides support for Cisco 6900, 7900, 8800 and 9900 series phones using the SIP firmware.
> Available features are: Busy Lamp Field, Off Hook Notification, Call Forward, Do Not Disturb, Huntgroup Login, Call Park (Notify and Monitor), Server-Side Ad-Hoc Conference, Conference List, Kick and Mute/Unmute, Multi-Admin Conference, Multiple Lines via Bulk Register, Immediate Divert, Call Recording, Restart or Reset via CLI, Call Pickup Notification, Call Back, Join Calls, Mallicious Call ID, Quality Reporting Tool and Fail-over/Fail-back.
> Also included is Application Server Events used by non-USECALLMANAGER phones (Call Forward and Do Not Disturb only).
> *Important:* Read the documentation at [http://usecallmanager.nz] to see the additional configuration options required for the phones to operate correctly.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list