diff options
author | Mark Spencer <markster@digium.com> | 2004-07-31 04:04:05 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-07-31 04:04:05 +0000 |
commit | 2de01f7b7e5b25e8a7f3b5e7aa98cce7995fb9cd (patch) | |
tree | a28c085f1c455dcf938327e25d4caa8f28d54637 /channels | |
parent | 0369242c4cdd95574673d13e7fa30c7dd4ed5807 (diff) |
Send proper contact in 200 OK to REGISTER
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 756e11a9b..27de390e9 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4258,6 +4258,8 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req ast_verbose(VERBOSE_PREFIX_3 "Unregistered SIP '%s'\n", p->name); return 0; } + /* For the 200 OK, we should use the received contact */ + snprintf(pvt->our_contact, sizeof(pvt->our_contact) - 1, "<%s>", c); /* 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); |