[asterisk-bugs] [JIRA] (ASTERISK-24038) device state: Report ONHOLD device state if channel driver defers device state calculation to core
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Thu Jul 24 10:23:56 CDT 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-24038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Jordan closed ASTERISK-24038.
----------------------------------
Resolution: Fixed
> device state: Report ONHOLD device state if channel driver defers device state calculation to core
> --------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-24038
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24038
> Project: Asterisk
> Issue Type: Improvement
> Security Level: None
> Components: Core/PBX
> Reporter: Matt Jordan
> Assignee: Matt Jordan
>
> In Asterisk 12 and later, it is possible for a device state to have a state of 'ONHOLD'. This is currently calculated independently in certain channel drivers, notably {{chan_sip}} and {{chan_pjsip}}. In the case of {{chan_sip}}, it has had the ability to track whether or not a call is on hold for quite some time; {{chan_pjsip}} takes a similar approach and calculates whether or not a device should be considered "on hold" by looking at all channels associated with the device in question.
> Interestingly, we now have the ability to report a {{AST_DEVICE_ONHOLD}} state for all channels that defer their device state to the core. This is due to channel hold state actually now being tracked on the channel itself (in Asterisk 12+). If the device state core goes out to get a channel associated with the device, this should be able to check the channel hold state in its calculation.
> This would have the benefit of bringing all other channel drivers in line with the capabilities in {{chan_sip}} and {{chan_pjsip}}. Note that the logic in those drivers is still technically needed, as they compute their device states by aggregating all channels associated with a peer/endpoint - something that most channel drivers do not do.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list