Relation between CDR values and SIP signaling

Hello,

In [1], you can read about CDR values. Among them, you have src and dst values, respectively defined as “the Caller ID Number” and “the destination extension”.

  1. Are these src and dst values natively equal to Dialplan variables (respectively CALLERID(num) or EXTEN) to some protocol-dependant headers (“user part of From header” or SIP request URI for PJSIP, …) ?

  2. Is there a way to log in CDR some SIP header values Asterisk computes ? Here, I’m thinking here about P-Asserted-Identity or Identity as having them along billing data would be very convenient.

[1] CDR Specification - Asterisk Documentation

Best regards

You coul use CDR(userfield) to fullfill with the data you want on
incoming calls

Le 18/04/2025 à 10:13, oza4h07 via Asterisk Community a écrit :

[oza4h07] oza4h07 https://community.asterisk.org/u/oza4h07
April 18

Hello,

In [1], you can read about CDR values. Among them, you have src and
dst values, respectively defined as “the Caller ID Number” and “the
destination extension”.

Are these src and dst values natively equal to Dialplan variables
(respectively CALLERID(num) or EXTEN) to some protocol-dependant
headers (“user part of From header” or SIP request URI for PJSIP, …) ?
Is there a way to log in CDR some SIP header values Asterisk
computes ? Here, I’m thinking here about P-Asserted-Identity or
Identity as having them along billing data would be very convenient.

[1] CDR Specification - Asterisk Documentation
https://docs.asterisk.org/Configuration/Reporting/Call-Detail-Records-CDR/CDR-Specification/#linkedid-propagation

Best regards


Visit Topic
https://community.asterisk.org/t/relation-between-cdr-values-and-sip-signaling/107928/1
or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here
<>.


Daniel

From recent testing, I think values in CDR tables are much more closely aligned with Dialplan variables (EXTEN, CALLERID(num) than with SIP headers themselves.

If one wants to log SIP headers, it seems quite easy to do for inbound calls, thanks to PJSIP_HEADER existence, but for outbound call, this seems quite difficult.

Thanks for replying

They would be, because Asterisk is an ISDN PABX to which SIP has been added, so there aren’t always going to be any SIP headers, and the core coded does not know about SIP.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.