aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-22 20:35:10 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-22 20:35:10 +0000
commit6798dc75e69b1ea1d36e59e4b9c8e27c00f786a4 (patch)
treee31993095f4b8bfb76a913e5b7732d1fc79e16c8 /include/asterisk/channel.h
parente5bc0cbd61ef0bafff101817030efb0a4aa78480 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@99644 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r--include/asterisk/channel.h3
1 files changed, 3 insertions, 0 deletions
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;