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:
Dave Horton authored and GitHub committed 2022-09-16 11:49:42 +02:00
1 parent 996519404e
commit ca0c9c157c
8 files changed
+156 -133

No files matched your search

+4 -2
View File
@@ -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,