Skip to content

Commit 4d93258

Browse files
authored
feat: expose feature_codes in proxy (#20)
1 parent 890b2c0 commit 4d93258

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

lib/astproxy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,5 +640,6 @@ exports.queueRecallingManager = queueRecallingManager;
640640
exports.CF_TYPES = CF_TYPES;
641641
exports.getExtensions = proxyLogic.getExtensions;
642642
exports.getQueues = proxyLogic.getQueues;
643+
exports.getFeatureCodes = proxyLogic.getFeatureCodes;
643644
exports.call = proxyLogic.call;
644645
exports.EVENTS = EVENTS;

lib/proxy_logic_13/proxy_logic_13.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,21 @@ function getPickupCode() {
12781278
}
12791279
}
12801280

1281+
/**
1282+
* Return all the asterisk feature codes.
1283+
*
1284+
* @method getFeatureCodes
1285+
* @return {object} The asterisk feature codes object.
1286+
* @static
1287+
*/
1288+
function getFeatureCodes() {
1289+
try {
1290+
return featureCodes;
1291+
} catch (err) {
1292+
logger.error(IDLOG, err.stack);
1293+
}
1294+
}
1295+
12811296
/**
12821297
* Set the initial trunks list read from JSON configuration file.
12831298
*
@@ -10288,6 +10303,7 @@ exports.recordAudioFile = recordAudioFile;
1028810303
exports.redirectParking = redirectParking;
1028910304
exports.getExtenCfValue = getExtenCfValue;
1029010305
exports.setFeatureCodes = setFeatureCodes;
10306+
exports.getFeatureCodes = getFeatureCodes;
1029110307
exports.getExtenCfbValue = getExtenCfbValue;
1029210308
exports.getExtenCfuValue = getExtenCfuValue;
1029310309
exports.EVT_EXTEN_HANGUP = EVT_EXTEN_HANGUP;

0 commit comments

Comments
 (0)