projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a4094
)
Minor ACk fix (bug #2687, again)
author
Mark Spencer
<markster@digium.com>
Mon, 20 Dec 2004 09:35:11 +0000
(09:35 +0000)
committer
Mark Spencer
<markster@digium.com>
Mon, 20 Dec 2004 09:35:11 +0000
(09:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4504
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
158e79c
..
99e93ef
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-4486,14
+4486,14
@@
static int parse_ok_contact(struct sip_pvt *pvt, struct sip_request *req)
snprintf(pvt->our_contact, sizeof(pvt->our_contact) - 1, "<%s>", c);
+ strncpy(pvt->okcontacturi, c, sizeof(pvt->okcontacturi) - 1);
+
/* Make sure it's a SIP URL */
if (strncasecmp(c, "sip:", 4)) {
ast_log(LOG_NOTICE, "'%s' is not a valid SIP contact (missing sip:) trying to use anyway\n", c);
} else
c += 4;
- strncpy(pvt->okcontacturi, c, sizeof(pvt->okcontacturi) - 1);
-
/* Ditch arguments */
n = strchr(c, ';');
if (n)