Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More path to work chan_dongle #30

Open
awsswa59 opened this issue Jul 12, 2015 · 0 comments
Open

More path to work chan_dongle #30

awsswa59 opened this issue Jul 12, 2015 · 0 comments

Comments

@awsswa59
Copy link

        case 'dahdi':
            if ($count_inbound) {
                $channel_filter="(dstchannel LIKE 'DAHDI/".$destrunk_channelid."%' OR channel LIKE 'DAHDI/".$destrunk_channelid."%')";
            } else {
                $channel_filter="dstchannel LIKE 'DAHDI/".$destrunk_channelid."%'";
            }
        break;
        case 'dongle':
            if ($count_inbound) {
                $channel_filter="(dstchannel LIKE 'dongle/".$destrunk_channelid."%' OR channel LIKE 'dongle/".$destrunk_channelid."%')";
            } else {
                $channel_filter="dstchannel LIKE 'dongle/".$destrunk_channelid."%'";
            }
        break;



    //test number of calls
    $sqldatechannel=' AND lastdata>\''.$channel_filter.'\'';

$sql='SELECT COUNT(*) FROM cdr WHERE '.$disposition.' '.$sqldatechannel.' '.$sqldate.$sqlpattern;

$sql='SELECT DISTINCT(dst) FROM cdr WHERE '.$disposition.' '.$sqldatechannel.' '.$sqldate.$sqlpattern;

$sql='SELECT SUM(billsec) FROM cdr WHERE '.$disposition.' '.$sqldatechannel.' '.$sqldate.$sqlpattern;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant