# Capturing SIP Header Call-ID

**URL:** <https://community.asterisk.org/t/capturing-sip-header-call-id/40927>\
**Category:** Asterisk Support\
**Created:** [November 1, 2012, 12:11pm UTC](https://community.asterisk.org/t/capturing-sip-header-call-id/40927 "2012-11-01T12:11:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrispx001](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@chrispx001](https://community.asterisk.org/u/chrispx001)\
**Post date:** [November 1, 2012, 12:11pm UTC](https://community.asterisk.org/t/capturing-sip-header-call-id/40927/1 "2012-11-01T12:11:41Z")

</div>

Hi,

When using the Dial command to make a call out via SIP, Asterisk generates the sip header info including a ‘Call-ID’ in the format of: \>unique\_id\>@\<server\_ip\>: Many other switches store this ID to help with accounting etc, however Asterisk does not.

Does anyone know if there is a way to be able to capture this outbound ‘Call-ID’ and then add it to the CDR for that call please.

Thank you in advance for any help!

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [November 1, 2012, 1:04pm UTC](https://community.asterisk.org/t/capturing-sip-header-call-id/40927/2 "2012-11-01T13:04:12Z")

</div>

You can experiment with the G option on Dial, the BRIDGEPEER variable and user or custom fields on the CDR. You will need the Bridge application to complete the call.

I haven’t tried this.
