mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-01-24 22:37:51 +00:00
support call to queue and application from registered user
This commit is contained in:
@@ -198,8 +198,8 @@ module.exports = function(srf, logger) {
|
||||
return req.srf.endSession(req);
|
||||
}
|
||||
let deviceAppSid = null;
|
||||
const queue_name = uri.user.startWith('queue-') ? uri.user.match(/queue-(.*)/)[1] : null;
|
||||
if (uri.user.startWith('app-')) {
|
||||
const queue_name = uri.user.startsWith('queue-') ? uri.user.match(/queue-(.*)/)[1] : null;
|
||||
if (uri.user.startsWith('app-')) {
|
||||
// Call from registered device to test application.
|
||||
const appSid = uri.user.match(/app-(.*)/)[1];
|
||||
const app = await lookupAppBySid(appSid);
|
||||
|
||||
Reference in New Issue
Block a user