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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Mon Dec 11 09:08:07 CST 2017


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

Friendly Automation commented on ASTERISK-27460:
------------------------------------------------

Change 7457 merged by Jenkins2:
CDR: Fix deadlock setting some CDR values.

[https://gerrit.asterisk.org/7457|https://gerrit.asterisk.org/7457]

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