diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-06-29 23:20:40 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-06-29 23:20:40 +0000 |
commit | 62a3133df256c4374ace4623a216036bf0e0e402 (patch) | |
tree | 807c6d1651be4040c31451d639e9b8aa5e6daeef /channels | |
parent | 60eb82c2befcb533d923329690df2c8deae758d0 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@273078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 a87909de1..c11310810 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -25205,6 +25205,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; |