Skip to content

Commit

Permalink
improve call online details
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Apr 12, 2019
1 parent d85772a commit f3c0e52
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion blue-classic/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion blue-crisp/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion blue-neptune/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion blue-triton/app.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions protected/controllers/CallOnLineController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ public function actionRead($asJson = true, $condition = null)

public function actionGetChannelDetails()
{
$model = $this->abstractModel->find('uniqueid = :key', array('key' => $_POST['id']));

$channel = AsteriskAccess::getCoreShowChannel($model->canal, null, $model->server);
$channel = AsteriskAccess::getCoreShowChannel($_POST['channel'], null, $_POST['server']);

$sipcallid = explode("\n", $channel['SIPCALLID']['data']);

Expand Down
2 changes: 1 addition & 1 deletion protected/models/CallOnLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function rules()
{
return array(
array('id_user', 'numerical', 'integerOnly' => true),
array('canal, tronco, from_ip', 'length', 'max' => 50),
array('canal, tronco, from_ip, sip_account', 'length', 'max' => 50),
array('ndiscado, status, duration', 'length', 'max' => 16),
array('codec, reinvite', 'length', 'max' => 5),
);
Expand Down

0 comments on commit f3c0e52

Please sign in to comment.