Summary: | ASTERISK-08667: options from config template take precedence over per user options (iax.conf) | ||
Reporter: | pj (pj) | Labels: | |
Date Opened: | 2007-01-26 11:44:24.000-0600 | Date Closed: | 2007-01-26 18:11:50.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I'm using templates in configuration files, when I use template in iax.conf, it doesn't working as expected, ie. configuration options that are defined on per user basis haven't priority before same options defined in template. eg. I have "context=default" in template and "context=employee" in user's type=friend [591] config section, in show commands, this user have assigned default context (both peer and user), instead of empleyee context. ****** ADDITIONAL INFORMATION ****** [common](!) type=friend host=dynamic qualify=yes qualifysmoothing=yes qualifyfreqok=5000 transfer=no [swphone](!,common) disallow=all allow=alaw,gsm,ilbc context=default [591](swphone) secret=*** context=employee callerid="Tomas" <591> ipbx*CLI> iax2 show peer 591 ipbx*CLI> * Name : 591 Secret : <Set> Context : default <<<<<========= Mailbox : Dynamic : Yes Callerid : "Tomas" <591> Expire : 4 ACL : No Addr->IP : 193.85.xxx.xxx Port 11080 Defaddr->IP : 0.0.0.0 Port 4569 Username : Codecs : 0xe40a (gsm|alaw|ilbc) Codec Order : (alaw|gsm|ilbc) Status : UNREACHABLE Qualify : every 5000ms when OK, every 10000ms when UNREACHABLE (sample smoothing On) ipbx*CLI> iax2 show users Username Secret Authen Def.Context A/C Codec Pref 591 *** 000000000000003 default No Host | ||
Comments: | By: pj (pj) 2007-01-26 11:49:47.000-0600 to bugtracker admin: please change category of this issue from iax "database support" to iax "general", thx By: Joshua C. Colp (jcolp) 2007-01-26 18:11:50.000-0600 The peer issue has been fixed in 1.2 as of revision 52360, 1.4 as of revision 52370, and trunk as of revision 52371. As for the user one, they allow multiple contexts so only the first one is shown on the CLI. |