Patch Submitted by BKW on 5/10/2004 to chan_sip.c

Fixing 'show help' inefficency.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Anthony Minessale II
2004-05-10 18:45:20 +00:00
parent 87e3b8b2ad
commit 960c01e4c6
2 changed files with 2 additions and 2 deletions

View File

@@ -3749,7 +3749,7 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req
/* Save User agent */
useragent = get_header(req, "User-Agent");
if(useragent && strcasecmp(useragent, p->useragent)) {
strncpy(p->useragent, get_header(req, "User-Agent"),sizeof(p->useragent));
strncpy(p->useragent, useragent, sizeof(p->useragent));
if (option_verbose > 2) {
ast_verbose(VERBOSE_PREFIX_3 "Saved useragent \"%s\" for peer %s\n",p->useragent,p->name);
}