[asterisk-bugs] [JIRA] (ASTERISK-28152) mysql two record

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Wed Nov 14 17:00:47 CST 2018


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

Kevin Harwell commented on ASTERISK-28152:
------------------------------------------

>From what I can tell Asterisk is working as it should. First, if you have not already, take a look at the [CDR Specification|https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+CDR+Specification] page. It states the following:
{quote}
If a channel dials another channel and then continues on in the dialplan, the CDR for the dial operation is finalized and a new CDR is created.
{quote}
>From the attached log this appears to be exactly what is happening. You can follow the transitions for channel 'SIP/101-00000059' and see that the first CDR for that channel gets finalized right after re-entering the dialplan that's initiated by the AGI:
{noformat}
$agi->exec("Macro","stdexten-record-test");
{noformat}
This generates the first record in your database. A new CDR for channel 'SIP/101-00000059' immediately gets created, and is the one used for the rest of the call. Again you can follow the transitions in the log. As well you can verify that the start/end timestamps match as well for both inserted records.

Hope that helps!

> mysql two record
> ----------------
>
>                 Key: ASTERISK-28152
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28152
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: CDR/cdr_adaptive_odbc
>    Affects Versions: 13.23.1
>            Reporter: Mesut Altürk
>            Assignee: Unassigned
>         Attachments: debug_log_123456.txt, debug_log_cdr.txt, Ekran Alıntısı.JPG
>
>
> We have updated asterisk version from 13.2.0 to 13.23.1. In the following case, double-throwing records.
> *******extensions.conf*******
> [DLPN_DialPlan1]
> exten = 630,1,Queue(630,tkXx,,,,queue-set.php,)
> [macro-stdexten-record-test]
> exten => s,1,NoOp(Test)
> *******queue-set.php*******
> #!/usr/bin/php -q
> <?php
> require_once('phpagi.php');
> require_once('phpagi-asmanager.php');
> $agi=new AGI();
> $agi->exec("Macro","stdexten-record-test");
> ?>



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



More information about the asterisk-bugs mailing list