Skip to content

Commit d807856

Browse files
add new menu trunk SIP erros
1 parent 1e92990 commit d807856

File tree

16 files changed

+486
-9
lines changed

16 files changed

+486
-9
lines changed

app/model/TrunkSipCodes.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* Classe que define a model "TrunkSIPCodes"
3+
*
4+
* =======================================
5+
* ###################################
6+
* MagnusBilling
7+
*
8+
* @package MagnusBilling
9+
* @author Adilson Leffa Magnus.
10+
* @copyright Copyright (C) 2005 - 2021 MagnusBilling. All rights reserved.
11+
* ###################################
12+
*
13+
* This software is released under the terms of the GNU Lesser General Public License v3
14+
* A copy of which is available from http://www.gnu.org/copyleft/lesser.html
15+
*
16+
* Please submit bug reports, patches, etc to https://github.com/magnusbilling/mbilling/issues
17+
* =======================================
18+
* Magnusbilling.com <[email protected]>
19+
* 25/03/2021
20+
*/
21+
Ext.define('MBilling.model.TrunkSipCodes', {
22+
extend: 'Ext.data.Model',
23+
fields: [{
24+
name: 'id',
25+
type: 'int'
26+
}, {
27+
name: 'ip',
28+
type: 'string'
29+
}, {
30+
name: 'code',
31+
type: 'int'
32+
}, {
33+
name: 'total',
34+
type: 'int'
35+
}, {
36+
name: 'percentage',
37+
type: 'string'
38+
}],
39+
proxy: {
40+
type: 'uxproxy',
41+
module: 'trunkSipCodes'
42+
}
43+
});

app/store/TrunkSipCodes.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* Classe que define o store "TrunkSIPCodes"
3+
*
4+
* =======================================
5+
* ###################################
6+
* MagnusBilling
7+
*
8+
* @package MagnusBilling
9+
* @author Adilson Leffa Magnus.
10+
* @copyright Copyright (C) 2005 - 2021 MagnusBilling. All rights reserved.
11+
* ###################################
12+
*
13+
* This software is released under the terms of the GNU Lesser General Public License v3
14+
* A copy of which is available from http://www.gnu.org/copyleft/lesser.html
15+
*
16+
* Please submit bug reports, patches, etc to https://github.com/magnusbilling/mbilling/issues
17+
* =======================================
18+
* Magnusbilling.com <[email protected]>
19+
* 25/03/2021
20+
*/
21+
Ext.define('MBilling.store.TrunkSipCodes', {
22+
extend: 'Ext.data.Store',
23+
model: 'MBilling.model.TrunkSipCodes',
24+
groupField: 'ip'
25+
});

build/MagnusBilling-current.tar.gz

-185 KB
Binary file not shown.

classic/src/view/trunk/Controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ Ext.define('MBilling.view.trunk.Controller', {
7070
}
7171
});
7272
}
73+
7374
});

classic/src/view/trunk/List.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Ext.define('MBilling.view.trunk.List', {
2525
fieldSearch: 'trunkcode',
2626
initComponent: function() {
2727
var me = this;
28+
2829
me.columns = me.columns || [{
2930
header: t('ID'),
3031
dataIndex: 'id',
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Classe que define a lista de "CallShopCdr"
3+
*
4+
* =======================================
5+
* ###################################
6+
* MagnusBilling
7+
*
8+
* @package MagnusBilling
9+
* @author Adilson Leffa Magnus.
10+
* @copyright Copyright (C) 2005 - 2021 MagnusBilling. All rights reserved.
11+
* ###################################
12+
*
13+
* This software is released under the terms of the GNU Lesser General Public License v3
14+
* A copy of which is available from http://www.gnu.org/copyleft/lesser.html
15+
*
16+
* Please submit bug reports, patches, etc to https://github.com/magnussolution/magnusbilling7/issues
17+
* =======================================
18+
* Magnusbilling.org <[email protected]>
19+
* 01/10/2013
20+
*/
21+
Ext.define('MBilling.view.trunkSipCodes.Controller', {
22+
extend: 'Ext.ux.app.ViewController',
23+
alias: 'controller.trunksipcodes'
24+
});
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Classe que define o form de "Trunk"
3+
*
4+
* =======================================
5+
* ###################################
6+
* MagnusBilling
7+
*
8+
* @package MagnusBilling
9+
* @author Adilson Leffa Magnus.
10+
* @copyright Copyright (C) 2005 - 2021 MagnusBilling. All rights reserved.
11+
* ###################################
12+
*
13+
* This software is released under the terms of the GNU Lesser General Public License v3
14+
* A copy of which is available from http://www.gnu.org/copyleft/lesser.html
15+
*
16+
* Please submit bug reports, patches, etc to https://github.com/magnussolution/magnusbilling7/issues
17+
* =======================================
18+
* Magnusbilling.org <[email protected]>
19+
* 25/06/2012
20+
*/
21+
Ext.define('MBilling.view.trunkSipCodes.Form', {
22+
extend: 'Ext.ux.form.Panel',
23+
alias: 'widget.trunksipcodesform',
24+
initComponent: function() {
25+
var me = this;
26+
me.items = [{
27+
xtype: 'textfield',
28+
name: 'ip',
29+
fieldLabel: t('IP')
30+
}, {
31+
xtype: 'numberfield',
32+
name: 'code',
33+
fieldLabel: t('Code')
34+
}, {
35+
xtype: 'numberfield',
36+
name: 'total',
37+
fieldLabel: t('Total')
38+
}];
39+
me.callParent(arguments);
40+
}
41+
});
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
* Classe que define a lista de "Trunk"
3+
*
4+
* =======================================
5+
* ###################################
6+
* MagnusBilling
7+
*
8+
* @package MagnusBilling
9+
* @author Adilson Leffa Magnus.
10+
* @copyright Copyright (C) 2005 - 2021 MagnusBilling. All rights reserved.
11+
* ###################################
12+
*
13+
* This software is released under the terms of the GNU Lesser General Public License v3
14+
* A copy of which is available from http://www.gnu.org/copyleft/lesser.html
15+
*
16+
* Please submit bug reports, patches, etc to https://github.com/magnussolution/magnusbilling7/issues
17+
* =======================================
18+
* Magnusbilling.org <[email protected]>
19+
* 25/06/2012
20+
*/
21+
Ext.define('MBilling.view.trunkSipCodes.List', {
22+
extend: 'Ext.ux.grid.Panel',
23+
alias: 'widget.trunksipcodeslist',
24+
store: 'TrunkSipCodes',
25+
fieldSearch: 'ip',
26+
initComponent: function() {
27+
var me = this;
28+
me.buttonCsv = false;
29+
me.allowPrint = false;
30+
me.buttonUpdateLot = false;
31+
me.allowCreate = false;
32+
me.allowUpdate = false;
33+
me.textDelete = t('Reset');
34+
me.columns = me.columns || [{
35+
header: t('Ip'),
36+
dataIndex: 'ip',
37+
flex: 3
38+
}, {
39+
header: t('SIP Code'),
40+
dataIndex: 'code',
41+
flex: 3
42+
}, {
43+
header: t('Total'),
44+
dataIndex: 'total',
45+
flex: 3
46+
}, {
47+
header: t('Percentage'),
48+
dataIndex: 'percentage',
49+
flex: 3
50+
}];
51+
me.callParent(arguments);
52+
}
53+
});
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Classe que define o panel de "Trunk"
3+
*
4+
* MagnusSolution.com <[email protected]>
5+
* 18/04/2012
6+
*/
7+
Ext.define('MBilling.view.trunkSipCodes.Module', {
8+
extend: 'Ext.ux.panel.Module',
9+
alias: 'widget.trunksipcodesmodule',
10+
controller: 'trunksipcodes'
11+
});

protected/commands/CallChartCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ public function user_cdr_show($calls)
190190
}
191191

192192
if (!count($modelSip)) {
193-
193+
if ($status == 'Ring') {
194+
$sip_account = $originate;
195+
}
194196
if (strlen($sip_account) > 3) {
195197
//echo "check per sip_account $originate\n";
196198
if (false !== $key = array_search($originate, $this->sipNames)) {

0 commit comments

Comments
 (0)