[asterisk-bugs] [Asterisk 0017144]: [patch] Endpoints are not loaded when using Realtime

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 23 13:25:54 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17144 
====================================================================== 
Reported By:                nahuelgreco
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17144
Category:                   Channels/chan_mgcp
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Target Version:             1.6.2.10
Asterisk Version:           SVN 
JIRA:                       SWP-1273 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 256373 
Request Review:              
====================================================================== 
Date Submitted:             2010-04-06 15:44 CDT
Last Modified:              2010-06-23 13:25 CDT
====================================================================== 
Summary:                    [patch] Endpoints are not loaded when using Realtime
Description: 
When using Realtime, endpoints are loaded only if they are defined with a
trailing comma. So, if in the "lines" field of the "mgcpgw" table you have
"aaln/1,aaln/2", only "aaln/1" is loaded, because the code loads the
endpoint only when it encounters a comma, not the end of the string.

The attached patch trivially fixes the issue. 

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

---------------------------------------------------------------------- 
 (0123778) svnbot (reporter) - 2010-06-23 13:25
 https://issues.asterisk.org/view.php?id=17144#c123778 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 272145

U   trunk/channels/chan_mgcp.c

------------------------------------------------------------------------
r272145 | tilghman | 2010-06-23 13:25:53 -0500 (Wed, 23 Jun 2010) | 8
lines

Load all lines from realtime, not just the first one.

(closes issue https://issues.asterisk.org/view.php?id=17144)
 Reported by: nahuelgreco
 Patches: 
       20100513__issue17144__trunk.diff.txt uploaded by tilghman (license
14)
 Tested by: tilghman

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=272145 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-23 13:25 svnbot         Checkin                                      
2010-06-23 13:25 svnbot         Note Added: 0123778                          
======================================================================




More information about the asterisk-bugs mailing list