[Asterisk-code-review] app queue: Handle the caller being redirected out of a queue... (asterisk[13])

Sean Bright asteriskteam at digium.com
Thu Mar 9 13:38:39 CST 2017


Sean Bright has posted comments on this change. ( https://gerrit.asterisk.org/5149 )

Change subject: app_queue: Handle the caller being redirected out of a queue bridge
......................................................................


Patch Set 1:

(3 comments)

https://gerrit.asterisk.org/#/c/5149/1//COMMIT_MSG
Commit Message:

Line 14:   * Caller is externally redirected elsewhere
> Local channel optimization could also cause a channel to leave but not end 
Can you give me step-by-step instructions that will cause that to occur so that I can test?


https://gerrit.asterisk.org/#/c/5149/1/apps/app_queue.c
File apps/app_queue.c:

PS1, Line 5921: 	RAII_VAR(struct ast_channel_snapshot *, caller_snapshot, NULL, ao2_cleanup);
              : 	RAII_VAR(struct ast_channel_snapshot *, member_snapshot, NULL, ao2_cleanup);
> These RAII_VAR's are unnecessary.  There is only one return point where the
Fair enough, I copy/pasted from handle_hangup.


Line 5928: 	if (ast_strlen_zero(queue_data->bridge_uniqueid)) {
> Hmm.  handle_attended_transfer() and handle_blind_transfer() lock queue_dat
Yes, I noticed that the various handle_* functions were not consistently locking queue_data. I assumed there was a good reason for that. Are locks needed when both reading & writing to queue_data? If so I can fix the other functions in a separate review.

If you can tell me how to cause the local optimization to occur, I can test and work around it.


-- 
To view, visit https://gerrit.asterisk.org/5149
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iba160907770de5a6c9efeffc9df5a13e9ea75334
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list