diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-29 23:22:13 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-29 23:22:13 +0000 |
commit | a217b640c6d23dda80409c194077bc6caf4eb88b (patch) | |
tree | e12223001f3692fa9e6026f1bb5d04e422a321e9 /channels | |
parent | 91e119bab43c65614a8fd5cec1bf238d4ffa4452 (diff) |
Merged revisions 273078 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r273078 | tilghman | 2010-06-29 18:20:40 -0500 (Tue, 29 Jun 2010) | 17 lines
Merged revisions 273060 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r273060 | tilghman | 2010-06-29 18:15:28 -0500 (Tue, 29 Jun 2010) | 10 lines
Allow the "useragent" value to be restored into memory from the realtime backend.
This value is purely informational. It does not alter configuration at all.
(closes issue #16029)
Reported by: Guggemand
Patches:
realtime-useragent.patch uploaded by Guggemand (license 897)
Tested by: Guggemand
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@273087 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | 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 d6e8bb607..16efc0435 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -23939,6 +23939,8 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str ast_get_time_t(v->value, ®seconds, 0, NULL); } else if (realtime && !strcasecmp(v->name, "name")) { ast_copy_string(peer->name, v->value, sizeof(peer->name)); + } else if (realtime && !strcasecmp(v->name, "useragent")) { + ast_string_field_set(peer, useragent, v->value); } else if (!strcasecmp(v->name, "type")) { if (!strcasecmp(v->value, "peer")) { peer->type |= SIP_TYPE_PEER; |