aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-03 23:46:23 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-03 23:46:23 +0000
commitef5917ea145e367a659cea2d37b99758bdf63cf6 (patch)
tree48ba3f2843c2f28464f15d6acc9f5a163d232d14 /channels
parent5fe44dda7645ae343f45670710a27cc5f34bea40 (diff)
small simplification in assignments, and fix a typo in a comment.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31871 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 63897dcf3..e57942b83 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7417,20 +7417,14 @@ static int get_refer_info(struct sip_pvt *transferer, struct sip_request *outgoi
}
-/*! \brief Call transfer support (old way, depreciated by the IETF)--*/
+/*! \brief Call transfer support (old way, deprecated by the IETF)--*/
static int get_also_info(struct sip_pvt *p, struct sip_request *oreq)
{
char tmp[256] = "", *c, *a;
- struct sip_request *req = oreq;
- struct sip_refer *referdata;
+ struct sip_request *req = oreq ? oreq : &p->initreq;
+ struct sip_refer *referdata = p->refer;
const char *transfer_context = NULL;
- referdata = p->refer;
-
- if (!oreq)
- req = &p->initreq;
- else
- req = oreq;
ast_copy_string(tmp, get_header(req, "Also"), sizeof(tmp));
c = get_in_brackets(tmp);