From b8aa3248ec9deecf45f535893a34c693b38e508c Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Tue, 22 Jan 2008 20:35:10 +0000 Subject: Add a generic function to set the bridged call PVT unique id string as a channel variable BRIDGEPVTCALLID This is important for call tracing in log files and CDRs, so that the SIP callID can be traced along servers. The CHANNEL dialplan function won't work here, since the outbound channel is gone when we need the Call-ID. Other channel drivers may now implement the same function :-), but this patch only supports chan_sip.so. Inspired by (issue #11816) Reported by: ctooley Patch by oej git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99644 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/channel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/asterisk/channel.h') diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index efb87fde6..58fec7a46 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -335,6 +335,9 @@ struct ast_channel_tech { /*! \brief Set base channel (agent and local) */ int (* set_base_channel)(struct ast_channel *chan, struct ast_channel *base); + + /*! \brief Get the unique identifier for the PVT, i.e. SIP call-ID for SIP */ + char * (* get_pvt_uniqueid)(struct ast_channel *chan); }; struct ast_epoll_data; -- cgit v1.2.3