-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support sip_parent_callid * fix github action
- Loading branch information
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ test('write timeseries data', async(t) => { | |
from: 'me', | ||
to: 'you', | ||
sip_callid: '[email protected]', | ||
sip_parent_callid: '[email protected]', | ||
answered: true, | ||
duration: 22, | ||
attempted_at: new Date(Date.now() - (3600 * 1000)), | ||
|
@@ -41,6 +42,7 @@ test('write timeseries data', async(t) => { | |
from: 'me2', | ||
to: 'you2', | ||
sip_callid: '[email protected]', | ||
sip_parent_callid: '[email protected]', | ||
answered: false, | ||
duration: 20, | ||
attempted_at: new Date(Date.now() - (7200 * 1000)), | ||
|
@@ -61,6 +63,7 @@ test('write timeseries data', async(t) => { | |
result = await queryCdrs({account_sid: 'xxxx', page: 1, page_size:25}); | ||
//console.log(JSON.stringify(result)); | ||
t.ok(result.data.length === 1, 'queried cdrs by account sid'); | ||
t.ok(result.data[0].sip_parent_callid === '[email protected]', 'sip_parent_callid successfully added'); | ||
|
||
result = await queryCdrs({account_sid: 'xxxx', filter: 'a', page: 1, page_size:25}); | ||
t.ok(result.data.length === 0, 'queried cdrs by from'); | ||
|