summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2008-01-30 11:27:56 +0000
committerOlle Johansson <oej@edvina.net>2008-01-30 11:27:56 +0000
commit13c62afa80c7871f56e7f5dc0ccf7180e0bdb695 (patch)
treed456cf6ac68116f4d01756b4b17ed1ab3a1ed605
parent85b2ef5f0eb1b040e1eb5da897626f730fb9ccfc (diff)
Constifying the interface to get pvt_ids in the bridge, based on
suggestion from (const char *) Kevin. Thanks! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c4
-rw-r--r--include/asterisk/channel.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d6f4a05af..f9a70698d 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -1688,7 +1688,7 @@ static int sip_transfer(struct ast_channel *ast, const char *dest);
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 @@ static int sip_sendhtml(struct ast_channel *chan, int subclass, const char *data
}
/*! \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)
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index c1c9cc211..da48c51de 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -340,7 +340,7 @@ struct ast_channel_tech {
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;