[asterisk-commits] tilghman: branch 1.6.2 r273087 - in /branches/1.6.2: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 29 18:22:18 CDT 2010


Author: tilghman
Date: Tue Jun 29 18:22:13 2010
New Revision: 273087

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273087
Log:
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
  ........
................

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/channels/chan_sip.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=273087&r1=273086&r2=273087
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Tue Jun 29 18:22:13 2010
@@ -23939,6 +23939,8 @@
 				ast_get_time_t(v->value, &regseconds, 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;




More information about the asterisk-commits mailing list