mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2025-12-19 04:37:43 +00:00
Feature/siprec server (#42)
* changes to handle siprec invites * retain xml for sending * send multipart body for siprec * fixup sdp * possibly trim xml string * fix prev commit * fix prev commit * still tweaking sdp * tweaks * tweaking * bit of refactoring * refactor siprec client stuff into a library * add direction in siprec metadata * fix
This commit is contained in:
9
app.js
9
app.js
@@ -111,6 +111,7 @@ const activeCallIds = srf.locals.activeCallIds;
|
||||
|
||||
const {
|
||||
initLocals,
|
||||
handleSipRec,
|
||||
identifyAccount,
|
||||
checkLimits,
|
||||
challengeDeviceCalls
|
||||
@@ -161,7 +162,13 @@ if (process.env.NODE_ENV === 'test') {
|
||||
}
|
||||
|
||||
/* install middleware */
|
||||
srf.use('invite', [initLocals, identifyAccount, checkLimits, challengeDeviceCalls]);
|
||||
srf.use('invite', [
|
||||
initLocals,
|
||||
handleSipRec,
|
||||
identifyAccount,
|
||||
checkLimits,
|
||||
challengeDeviceCalls
|
||||
]);
|
||||
|
||||
srf.invite((req, res) => {
|
||||
if (req.has('Replaces')) {
|
||||
|
||||
Reference in New Issue
Block a user