]> git.ipfire.org Git - thirdparty/asterisk.git/commit
CDR: Improve handling of parking; resolve assertion when originating into park
authorMatthew Jordan <mjordan@digium.com>
Sat, 28 Sep 2013 20:54:55 +0000 (20:54 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 28 Sep 2013 20:54:55 +0000 (20:54 +0000)
commit0b97ac8e87e008e02750342eccf508dcc20ca3a0
tree9f6f3ba51de3fbb1c2bc34248e70564e21a3a949
parentd4bce93552f53b882f55be583dc77acdc0ce8737
CDR: Improve handling of parking; resolve assertion when originating into park

This patch covers two problems:

1) Currently, when a call is transferred into a parking lot from a bridge
   (using either the blind transfer or one touch parking mechanisms), the
   application fails to be set to "Park" in the resulting CDR record for
   the parked channel. This is due to the ParkedCall message arriving before
   the BridgeEnter for the channel entering the parking bridge. The ParkedCall
   message isn't handled as the CDR for the channel has already been finalized
   (due to the channel having left its two party bridge), and the BridgeEnter -
   which creates the new CDR - doesn't have the parking information. This patch
   modifies the behavior so that reception of a ParkedCall message will - if
   not handled by a CDR chain - cause a new CDR to be created and put into the
   Parking state.

2) It fixes a FRACK that occurred when a channel is originated into a parking
   space. The DialedPending state - which occurs for both Dialed and Originated
   channels - assumed that it couldn't handle the parking transitions due to it
   having a Party B; however, Originated channels don't have a Party B. As such,
   the existing CDR needs to transition into the parking state - this patch does
   that.

Review: https://reviewboard.asterisk.org/r/2877/

(closes issue ASTERISK-22482)
Reported by: Richard Mudgett

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/cdr.c