[asterisk-commits] oej: trunk r101154 - in /trunk: channels/chan_sip.c include/asterisk/channel.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 30 05:27:56 CST 2008
Author: oej
Date: Wed Jan 30 05:27:56 2008
New Revision: 101154
URL: http://svn.digium.com/view/asterisk?view=rev&rev=101154
Log:
Constifying the interface to get pvt_ids in the bridge, based on
suggestion from (const char *) Kevin. Thanks!
Modified:
trunk/channels/chan_sip.c
trunk/include/asterisk/channel.h
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=101154&r1=101153&r2=101154
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Jan 30 05:27:56 2008
@@ -1688,7 +1688,7 @@
static int sip_fixup(struct ast_channel *oldchan, struct ast_channel *newchan);
static int sip_senddigit_begin(struct ast_channel *ast, char digit);
static int sip_senddigit_end(struct ast_channel *ast, char digit, unsigned int duration);
-static char *sip_get_callid(struct ast_channel *chan);
+static const char *sip_get_callid(struct ast_channel *chan);
static int handle_request_do(struct sip_request *req, struct sockaddr_in *sin);
static int sip_standard_port(struct sip_socket s);
@@ -3259,7 +3259,7 @@
}
/*! \brief Deliver SIP call ID for the call */
-static char *sip_get_callid(struct ast_channel *chan)
+static const char *sip_get_callid(struct ast_channel *chan)
{
struct sip_pvt *p = chan->tech_pvt;
if (!p)
Modified: trunk/include/asterisk/channel.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/channel.h?view=diff&rev=101154&r1=101153&r2=101154
==============================================================================
--- trunk/include/asterisk/channel.h (original)
+++ trunk/include/asterisk/channel.h Wed Jan 30 05:27:56 2008
@@ -340,7 +340,7 @@
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);
+ const char * (* get_pvt_uniqueid)(struct ast_channel *chan);
};
struct ast_epoll_data;
More information about the asterisk-commits
mailing list