[asterisk-bugs] [Asterisk 0017144]: [patch] Endpoints are not loaded when using Realtime
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu May 13 18:52:43 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.9
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-05-13 18:52 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.
======================================================================
----------------------------------------------------------------------
(0121893) tilghman (administrator) - 2010-05-13 18:52
https://issues.asterisk.org/view.php?id=17144#c121893
----------------------------------------------------------------------
I have modified your patch to use the standard parsing, instead. This
greatly improves the readability of the code, as well as adding a comment
that indicates how the code works, as well as a realtime table design
suggestion.
Issue History
Date Modified Username Field Change
======================================================================
2010-05-13 18:52 tilghman Note Added: 0121893
======================================================================
More information about the asterisk-bugs
mailing list