From: Andreas Eversberg Date: Sat, 14 Mar 2009 15:59:45 +0000 (+0100) Subject: Bugfix on interface reload. X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=68eab068230bf7595dc866732444fedb3c6bf394 Bugfix on interface reload. modified: README modified: interface.c --- diff --git a/README b/README index ac17322..3484872 100644 --- 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. diff --git a/interface.c b/interface.c index 1e4bc66..8a367d6 100644 --- a/interface.c +++ b/interface.c @@ -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);