[asterisk-dev] [Code Review] 2877: CDRs: Improve handling of parked call message; resolve assertion failure from originating into a parking lot

svnbot reviewboard at asterisk.org
Sat Sep 28 15:55:01 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2877/
-----------------------------------------------------------

(Updated Sept. 28, 2013, 3:55 p.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers.


Changes
-------

Committed in revision 400062


Bugs: ASTERISK-22842
    https://issues.asterisk.org/jira/browse/ASTERISK-22842


Repository: Asterisk


Description
-------

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 a "Park" in the resulting CDR record for the parked channel. This is due to the ParkedCall message arriving before the BridgeEnter into 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.

Handy table to show the problem:

OLD BEHAVIOR:
   Msg                           State
BridgeEnter (two party)      (???)->Bridge
BridgeLeave (two party)      Bridge->Finalized
ParkedCall                      Finalized (doesn't handle the message)
BridgeEnter (parking)        Single->Parked   (new CDR)
BridgeLeave (parking)        Parked->Finalized

NEW:
   Msg                         State
BridgeEnter (two party)      (???)->Bridge
BridgeLeave (two party)      Bridge->Finalized
ParkedCall                   Single->Parked   (new CDR)
BridgeEnter (parking)          Parked
BridgeLeave (parking)        Parked->Finalized


(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.

States:
   Msg             State
DialBegin       Single->Dial
DialEnd         Dial->DialPending
ParkedCall      DialPending->Parked


Diffs
-----

  ./branches/12/main/cdr.c 399746 

Diff: https://reviewboard.asterisk.org/r/2877/diff/


Testing
-------


Thanks,

Matt Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130928/d23afd70/attachment.html>


More information about the asterisk-dev mailing list