[asterisk-bugs] [JIRA] (ASTERISK-30085) res_parking: Deadlock when parking call dynamically

N A (JIRA) noreply at issues.asterisk.org
Mon May 30 11:56:49 CDT 2022


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

N A commented on ASTERISK-30085:
--------------------------------

That is a custom module here locally.

The relevant code from it in the backtrace is this, which can be seen in the stack frame in the backtrace:

{noformat}
pbx_builtin_setvar_helper(chan, "__PARKINGDYNAMIC", "rdct"); /* Parking lot template */
pbx_builtin_setvar_helper(chan, "__PARKINGDYNCONTEXT", l->parkcontext); /* Dynamic dialplan park context */
pbx_builtin_setvar_helper(chan, "__PARKINGDYNPOS", "1-9999999"); /* Doesn't seem to get picked up for some reason... */
/* res_parking uses int for parking spaces, so full TN can't be used. Use 7-digit # instead. */
parkingspot = ast_channel_exten(chan) + 3;
ast_debug(2, "Parking spot: %s,%s\n", l->parkcontext, parkingspot);
pbx_builtin_setvar_helper(chan, "__PARKINGEXTEN", parkingspot); /* Parked # against */
pbx_builtin_setvar_helper(chan, "__PARKINGDYNEXTEN", parkingspot); /* Parked # against */

/* Try to actually park the call */
res = exec_app(chan, "Park", park_args, 0);
if (res) {
	return res;
}
{noformat}

> res_parking: Deadlock when parking call dynamically
> ---------------------------------------------------
>
>                 Key: ASTERISK-30085
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30085
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_parking
>    Affects Versions: 18.9.0
>            Reporter: N A
>            Assignee: N A
>            Severity: Major
>         Attachments: mcfbcownho.txt
>
>
> Asterisk deadlocks when parking a call.
> Because the deadlock is in the dialplan, Asterisk must be restarted to clear the deadlock.
> {noformat}
> [rdct]
> context => parkedcalls
> parkpos => 1-9999999
> parkingtime = 90
> comebacktoorigin = no
> comebackcontext = park-recall
> comebackdialtime = 9999999
> parkedmusicclass = default
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list