[Home]

Summary:ASTERISK-02170: 'mgcp reload' always reloads wildcard endpoints reguardless if they were loaded on startup
Reporter:duanecox (duanecox)Labels:
Date Opened:2004-08-01 12:00:37Date Closed:2004-09-25 02:11:28
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:asterisk starup (asterisk -vvvvvc)

[chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
 == Parsing '/etc/asterisk/mgcp.conf': Found
   -- Allocating subchannel '0' on aaln/*@63.252.240.2
   -- Allocating subchannel '1' on aaln/*@63.252.240.2
   -- Allocating subchannel '0' on aaln/1@63.252.240.2
   -- Allocating subchannel '1' on aaln/1@63.252.240.2
   -- Allocating subchannel '0' on aaln/2@63.252.240.2
   -- Allocating subchannel '1' on aaln/2@63.252.240.2
   -- Added gateway '63.252.240.2'
   -- Allocating subchannel '0' on aaln/*@63.252.240.58
   -- Allocating subchannel '1' on aaln/*@63.252.240.58
   -- Allocating subchannel '0' on aaln/1@63.252.240.58
   -- Allocating subchannel '1' on aaln/1@63.252.240.58
   -- Added gateway '63.252.240.58'
   -- Allocating subchannel '0' on aaln/*@63.252.242.2
   -- Allocating subchannel '1' on aaln/*@63.252.242.2
   -- Allocating subchannel '0' on aaln/1@63.252.242.2
   -- Allocating subchannel '1' on aaln/1@63.252.242.2
   -- Added gateway '63.252.242.2'
 == MGCP Listening on 0.0.0.0:2427
 == Using TOS bits 0
   -- MGCP Auditing endpoint aaln/1@63.252.242.2 for hookstate
   -- MGCP Auditing endpoint aaln/*@63.252.242.2 for hookstate
   -- MGCP Auditing endpoint aaln/1@63.252.240.58 for hookstate
   -- MGCP Auditing endpoint aaln/*@63.252.240.58 for hookstate
   -- MGCP Auditing endpoint aaln/2@63.252.240.2 for hookstate
   -- MGCP Auditing endpoint aaln/1@63.252.240.2 for hookstate
   -- MGCP Auditing endpoint aaln/*@63.252.240.2 for hookstate
 == Registered channel type 'MGCP' (Media Gateway Control Protocol (MGCP))

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

*CLI> mgcp reload
Reloading MGCP
 == Parsing '/etc/asterisk/mgcp.conf': Found
   -- Allocating subchannel '0' on aaln/*@63.252.240.2
   -- Allocating subchannel '1' on aaln/*@63.252.240.2
   -- Allocating subchannel '0' on aaln/*@63.252.240.58
   -- Allocating subchannel '1' on aaln/*@63.252.240.58
   -- Allocating subchannel '0' on aaln/*@63.252.242.2
   -- Allocating subchannel '1' on aaln/*@63.252.242.2
 == MGCP Listening on 0.0.0.0:2427
 == Using TOS bits 0

*CLI> mgcp reload
Reloading MGCP
 == Parsing '/etc/asterisk/mgcp.conf': Found
   -- Allocating subchannel '0' on aaln/*@63.252.240.2
   -- Allocating subchannel '1' on aaln/*@63.252.240.2
   -- Allocating subchannel '0' on aaln/*@63.252.240.58
   -- Allocating subchannel '1' on aaln/*@63.252.240.58
   -- Allocating subchannel '0' on aaln/*@63.252.242.2
   -- Allocating subchannel '1' on aaln/*@63.252.242.2
 == MGCP Listening on 0.0.0.0:2427
 == Using TOS bits 0

*CLI> mgcp reload
Reloading MGCP
 == Parsing '/etc/asterisk/mgcp.conf': Found
   -- Allocating subchannel '0' on aaln/*@63.252.240.2
   -- Allocating subchannel '1' on aaln/*@63.252.240.2
   -- Allocating subchannel '0' on aaln/*@63.252.240.58
   -- Allocating subchannel '1' on aaln/*@63.252.240.58
   -- Allocating subchannel '0' on aaln/*@63.252.242.2
   -- Allocating subchannel '1' on aaln/*@63.252.242.2
 == MGCP Listening on 0.0.0.0:2427
 == Using TOS bits 0
Comments:By: Mark Spencer (markster) 2004-08-01 14:18:57

Please try to explain your problem in complete sentences.

By: Mark Spencer (markster) 2004-08-01 17:36:23

I've made a change in an attempt to guess what the "issue" is.  CVS update and let me know if that fixes it.  If it doesn't, then please describe in detail and in complete sentences what the problem is.

By: duanecox (duanecox) 2004-08-01 17:52:32

Sorry Mark, I thought I had provided more detailed text in 'additional information' when posting the bug, apparently I didn't or it didn't post.

Either way, you have found, and fixed, the problem.  Thanks

Duane


Previously, 'mgcp reload' would aways reload wildcard endpoints, reguardless if they were newly defined in mgcp.conf (since last reload) or if they were in the conf file since startup.  Basically 'mgcp reload' would always reload wildcard endpoints even if they didn't need reloading.  Your CVS change has fixed this, and wildcard endpoints will only be 'reloaded' if they are new to the system.

By: Mark Spencer (markster) 2004-08-01 18:00:34

k cool, thanks!