mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-11-08 12:34:14 +00:00
Feature/recent calls enhancement with sp (#47)
* write cdrs and alerts with service_provider_sid * update to latest @jambonz/http-authenticator which sends sip headers * add call_sid to cdr when call is connected * write call counts by SP as well as account, bugfix to allow digit '0' in dtmf-relay
This commit is contained in:
1 parent
996519404e
commit
ca0c9c157c
8 files changed
+156
-133
No files matched your search
+4
-2
@@ -43,7 +43,8 @@ const SdpWantsSrtp = (sdp) => {
|
||||
return /m=audio.*SAVP/.test(sdp);
|
||||
};
|
||||
|
||||
const makeCallCountKey = (sid) => `${sid}:incalls`;
|
||||
const makeAccountCallCountKey = (sid) => `${sid}:incalls:account`;
|
||||
const makeSPCallCountKey = (sid) => `${sid}:incalls:sp`;
|
||||
|
||||
const normalizeDID = (tel) => {
|
||||
const regex = /^\+(\d+)$/;
|
||||
@@ -87,7 +88,8 @@ module.exports = {
|
||||
SdpWantsSrtp,
|
||||
getAppserver,
|
||||
makeRtpEngineOpts,
|
||||
makeCallCountKey,
|
||||
makeAccountCallCountKey,
|
||||
makeSPCallCountKey,
|
||||
normalizeDID,
|
||||
equalsIgnoreOrder,
|
||||
systemHealth,
|
||||
|
||||
Reference in new issue
Block a user