Skip to content

Commit

Permalink
allow outbound cdr has sip_parent_callid
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Oct 17, 2024
1 parent 3701e20 commit 6d466df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/call-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const initCdr = (req, invite) => {
account_sid: req.get('X-Account-Sid'),
call_sid: req.get('X-Call-Sid'),
sip_callid: invite.get('Call-ID'),
...(req.has('X-CID') && {sip_parent_callid: req.get('X-CID')}),
...(applicationSid && {application_sid: applicationSid}),
from,
to,
Expand Down

0 comments on commit 6d466df

Please sign in to comment.