Logging SIP Call IDs per Channel (Origination and Destination)

Hi There Community,

I’ve been “playing” around with

But i’m only logging the origination request SIP CALL ID (Unique value of the SIP INVITE)
I’ve tried logging these values in the H extension at the end of a call, but im still logging the request call id.

Has someone logged the Outbound channel sip call id?

Any ideas will be greatly appreciated
Kind Regards!

The value comes from the channel on which it is executed. If you want it on the outgoing side at hangup then you’d need to use a hangup handler[1] attached using a pre-dial handler[2], or just output it in the pre-dial handler itself.

[1] Hangup Handlers - Asterisk Project - Asterisk Project Wiki
[2] Pre-Dial Handlers - Asterisk Project - Asterisk Project Wiki

1 Like

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