Skip to content

Commit

Permalink
fix queue isue
Browse files Browse the repository at this point in the history
  • Loading branch information
magnussolution committed Apr 20, 2023
1 parent 577ae0c commit e79a7a3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
Binary file modified build/MagnusBilling-current.tar.gz
Binary file not shown.
3 changes: 0 additions & 3 deletions resources/asterisk/DidAgi.php
Original file line number Diff line number Diff line change
Expand Up @@ -829,9 +829,6 @@ public function call_did_billing(&$agi, &$MAGNUS, &$CalcAgi, $answeredtime, $dia

if (isset($this->did_voip_model->id)) {

if ($MAGNUS->record_call == 1) {
system('cp -rf /var/spool/asterisk/monitor/' . $this->accountcode . '/*' . $this->uniqueid . ' /var/spool/asterisk/monitor/' . $this->did_voip_model->username . '/');
}
$MAGNUS->id_user = $this->did_voip_model->id;
$MAGNUS->sip_account = $this->did_voip_model_sip_account;
$CalcAgi->buycost = 0;
Expand Down
2 changes: 1 addition & 1 deletion resources/asterisk/QueueAgi.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public function callQueue(&$agi, &$MAGNUS, &$CalcAgi, $DidAgi = null, $type = 'q
$agi->verbose('$siptransfer => ' . $siptransfer['data'], 5);
if ($siptransfer['data'] != 'yes' && $type == 'queue') {

$CalcAgi->real_sessiontime = intval($CalcAgi->sessiontime);
if (!is_null($DidAgi)) {
$DidAgi->billDidCall($agi, $MAGNUS, $CalcAgi->sessiontime, $CalcAgi);
}
Expand All @@ -137,7 +138,6 @@ public function callQueue(&$agi, &$MAGNUS, &$CalcAgi, $DidAgi = null, $type = 'q
$MAGNUS->id_trunk = null;
$CalcAgi->starttime = date("Y-m-d H:i:s", time() - $CalcAgi->sessiontime);
$CalcAgi->sessiontime = $CalcAgi->sessiontime;
$CalcAgi->real_sessiontime = intval($CalcAgi->sessiontime);
$CalcAgi->terminatecauseid = $CalcAgi->terminatecauseid;
$CalcAgi->sessionbill = $DidAgi->sell_price;
$CalcAgi->sipiax = 8;
Expand Down

0 comments on commit e79a7a3

Please sign in to comment.