Skip to content

Commit

Permalink
fix call recording download
Browse files Browse the repository at this point in the history
  • Loading branch information
magnussolution committed Aug 1, 2023
1 parent fa71f72 commit 3f4e1be
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Binary file modified build/MagnusBilling-current.tar.gz
Binary file not shown.
6 changes: 5 additions & 1 deletion classic/src/view/restrictedPhonenumber/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ Ext.define('MBilling.view.restrictedPhonenumber.Form', {
forceSelection: true,
editable: false,
value: '1',
store: [
store: window.bbx ? [
[1, t('Outbound')],
[2, t('Inbound')],
[3, t('Outbound & CallerID')]
] : [
[1, t('Outbound')],
[2, t('Inbound')]
]
Expand Down
2 changes: 1 addition & 1 deletion protected/commands/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fi

cd /var/www/html/mbilling
rm -rf MagnusBilling-current.tar.gz
wget https://raw.githubusercontent.com/magnussolution/magnusbilling7/source/build/MagnusBilling-current.tar.gz
wget --no-check-certificate https://raw.githubusercontent.com/magnussolution/magnusbilling7/source/build/MagnusBilling-current.tar.gz
tar xzf MagnusBilling-current.tar.gz


Expand Down
2 changes: 1 addition & 1 deletion protected/controllers/CallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function actionDownloadRecord()

$host = $modelCall->idServer->public_ip > 0 ? $modelCall->idServer->public_ip : $modelCall->idServer->host;
$url = 'http://' . $host . '/mbilling/record.php?id=' . $uniqueid . '&u=' . $modelCall->idUser->username;
exec("cd /var/www/html/mbilling/tmp/ && wget --quiet -O " . $uniqueid . '.gsm ' . $url, $output);
exec("cd /var/www/html/mbilling/tmp/ && wget --quiet -O " . $uniqueid . ".gsm '$url'", $output);
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=" . $uniqueid);
Expand Down

0 comments on commit 3f4e1be

Please sign in to comment.