Bugfix on interface reload.
authorAndreas Eversberg <andreas@eversberg.eu>
Sat, 14 Mar 2009 15:59:45 +0000 (16:59 +0100)
committerAndreas Eversberg <andreas@eversberg.eu>
Sat, 14 Mar 2009 15:59:45 +0000 (16:59 +0100)
modified:   README
modified:   interface.c

README
interface.c

diff --git a/README b/README
index ac17322..3484872 100644 (file)
--- a/README
+++ b/README
@@ -454,9 +454,11 @@ Changes in Version 1.2
 - Introduceing autoconf (./configure) with help of Joerg and Peter.
   -> Default installation path remains /usr/local/lcr, so don't worry!
 
-Changes after Version 1.3
+Changes in Version 1.3
 - Finished autoconf.
 - Obsolete "pbxwatch" is removed. 
+
+Changes after Version 1.3 release
 - fixes in chan_lcr, thanx to peter and gregor
 - message pointer forwarding fix, thanx to bodo!
 - capability fix, thanx to gregor
@@ -467,5 +469,7 @@ Changes after Version 1.3
 - Added patch by gregory, asterisk should now use faxdetection with mISDN_dsp
   disabled.
 
-Changes after Version 1.4
+Changes after Version 1.4 release
+- Bugfix: When reloading interfaces, interface will not be reopened, if
+  interface was specified by name.
 
index 1e4bc66..8a367d6 100644 (file)
@@ -1321,8 +1321,11 @@ void relink_interfaces(void)
                        mISDNport = mISDNport_first;
                        while(mISDNport)
                        {
+                               if (!strcmp(mISDNport->name, ifport->portname))
+                                       ifport->portnum = mISDNport->portnum; /* same name, so we use same number */
                                if (mISDNport->portnum == ifport->portnum)
                                {
+                                       PDEBUG(DEBUG_ISDN, "Port %d:%s relinking!\n", mISDNport->portnum);
                                        ifport->mISDNport = mISDNport;
                                        mISDNport->ifport = ifport;
                                        set_defaults(ifport);