[asterisk-bugs] [Asterisk 0016029]: sip peers loaded with realtime doesnt load useragent

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 6 13:47:10 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16029 
====================================================================== 
Reported By:                Guggemand
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16029
Category:                   Functions/func_realtime
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.6 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-06 13:47 CDT
Last Modified:              2009-10-06 13:47 CDT
====================================================================== 
Summary:                    sip peers loaded with realtime doesnt load useragent
Description: 
Useragent isn't shown when doing
sip show peer <name> load

Following patch (against 1.6.1.6) fixes the issue

--- chan_sip.c.orig     2009-08-10 21:30:55.000000000 +0200
+++ chan_sip.c  2009-10-06 20:35:34.000000000 +0200
@@ -22090,6 +22090,8 @@
                        inet_aton(v->value, &(peer->addr.sin_addr));
                } 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_copy_string(peer->useragent, v->value,
sizeof(peer->useragent));
                else if (realtime && !strcasecmp(v->name, "fullcontact"))
{
                        if (alt_fullcontact && !alt) {
                                /* Reset, because the alternate also has a
fullcontact and we

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-06 13:47 Guggemand      New Issue                                    
2009-10-06 13:47 Guggemand      Asterisk Version          => 1.6.1.6         
2009-10-06 13:47 Guggemand      Regression                => No              
2009-10-06 13:47 Guggemand      SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list