[asterisk-bugs] [JIRA] (ASTERISK-27460) CDR: Deadlock using AMI Originate with Variable CDR(amaflags)=...

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Mon Jul 9 15:09:54 CDT 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Mudgett updated ASTERISK-27460:
---------------------------------------

    Attachment: core_show_locks.txt
                bt_full.txt
                bt_brief.txt

> CDR: Deadlock using AMI Originate with Variable CDR(amaflags)=...
> -----------------------------------------------------------------
>
>                 Key: ASTERISK-27460
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27460
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Functions/func_cdr
>    Affects Versions: 13.18.3, 15.1.3
>            Reporter: Richard Mudgett
>            Assignee: Richard Mudgett
>      Target Release: 13.19.0, 15.2.0
>
>         Attachments: bt_brief.txt, bt_full.txt, core_show_locks.txt
>
>
> Applying the AMI Originate action with the variable setting 'CDR(amaflags)=<anything>' causes an immediate deadlock (Variable: CDR(amaflags)=OMIT).
> {noformat}
> [tar at localhost ~]$ sudo telnet localhost 5038
> [sudo] Passwort fuer tar: 
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> Asterisk Call Manager/2.9.0
> Action: Login
> ActionID: 1
> Username: admin
> Secret: secret
> Response: Success
> ActionID: 1
> Message: Authentication accepted
> Event: FullyBooted
> Privilege: system,all
> Status: Fully Booted
> Context: demo
> Priority: 1
> Actionid: _INBOX.EbjZs7r0AypxgXKeNWGHea
> Action: Originate
> Channel: SIP/1680
> Exten: 1234
> Timeout: 15000
> Variable: CHANNEL(language)=de
> Variable: __callfile_from_user=1680
> Variable: __is_callfile_origin=1
> Variable: __record_file=vm-041149-9
> Variable: __user_id=149
> Variable: __user_name=1680
> Variable: CDR(amaflags)=OMIT
> Async: true
> CallerID: Spruch 2<Aufnahme>
> {noformat}
> Ways to get this deadlock:
> * use the AMI Originate action and set the CDR(amaflags) variable.
> * use a call file and set the CDR(amaflags) variable.
> * set CDR(accountcode) under the same conditions as CDR(amaflags).
> NOTE: Setting CDR(amaflags) and CDR(accountcode) are deprecated in favor of CHANNEL(amaflags) and CHANNEL(accountcode) respectively.  There is no deadlock when using the CHANNEL function to set amaflags or accountcode.



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



More information about the asterisk-bugs mailing list