[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
Fri Mar 8 07:09:50 CST 2019


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

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

Hi Gareth.
Thank you for your patch. All lines work correctly in all situations.
But i have periodic error messages and restarts of asterisk.
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,110
subscribe=106

[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

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

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

[199](extension)
secret=199
callerid="NUMBER 199" <199>
description=NUMBER 199
callgroup=1
pickupgroup=1
mailbox=199 at default
transport=tcp
{noformat}

Error message:
{noformat}
ERROR[25578]: astobj2.c:131 INTERNAL_OBJ: FRACK!, Failed assertion bad magic number 0x0 for object 0xb6612a70 (0)
Got 16 backtrace records
#0: [0x8099dab] /usr/sbin/asterisk(__ao2_lock+0x18b) [0x8099dab]
#1: [0x1044e4f] /usr/lib/asterisk/modules/chan_sip.so(+0x5ae4f) [0x1044e4f]
#2: [0x10454d9] /usr/lib/asterisk/modules/chan_sip.so(+0x5b4d9) [0x10454d9]
#3: [0x81a24f8] /usr/sbin/asterisk() [0x81a24f8]
#4: [0x81a3996] /usr/sbin/asterisk() [0x81a3996]
#5: [0x81a46dd] /usr/sbin/asterisk() [0x81a46dd]
#6: [0x81ff3c8] /usr/sbin/asterisk() [0x81ff3c8]
#7: [0x81ffbb6] /usr/sbin/asterisk() [0x81ffbb6]
#8: [0x8216888] /usr/sbin/asterisk(ast_taskprocessor_execute+0x188) [0x8216888]
#9: [0x82170f0] /usr/sbin/asterisk() [0x82170f0]
#10: [0x822c6bd] /usr/sbin/asterisk() [0x822c6bd]
{noformat}
This error occurs in different situations and quite often. I tried to find out which parameter of asterisk is causing this problem, and this is what I found.
If I completely remove the "subscribe" parameter, then the system works correctly without any errors.
To quickly emulate the problem, I use the following commands:
\# touch /etc/asterisk/sip.conf
\# asterisk -r
CLI> sip reload
CLI> sip notify cisco-restart 107
CLI> sip notify cisco-restart 106

And after a few seconds, an error occurs.
Tested on versions 13 and 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