I am using Asterisk 1.4.4 on a CentOS 5 machine for a small call center with 6 agents. I am using realtime for queues and sip and I am also trying to use realtime static to load agents.conf. The only problem I am having is that no agents are loaded when I start Asterisk. I have to manually do a "module reload chan_agent.so" so the agents get loaded from the database. Obviously this creates problems whenever there is a power outage that causes the server to go down. Why won't Asterisk load the configuration in the first place but read it fine when reloading the module? This used to work fine in Asterisk 1.2 -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070529/98000c6d/attachment.pgp
On 5/29/07, Carlos Chavez <cursor@telecomabmex.com> wrote:> I am using Asterisk 1.4.4 on a CentOS 5 machine for a small call center > with 6 agents. I am using realtime for queues and sip and I am also > trying to use realtime static to load agents.conf. The only problem I > am having is that no agents are loaded when I start Asterisk. I have to > manually do a "module reload chan_agent.so" so the agents get loaded > from the database.This sounds like it *might* be a problem with the order in which your modules are being loaded. To fix this, you might want to manually add the following lines to your modules.conf file, to make sure that chan_local and chan_sip get loaded *before* chan_agent: load => chan_local.so load => chan_sip.so load => chan_agent.so Give that a try and let me know if it works for you. -Jared
Carlos Chavez
2007-May-30 15:54 UTC
[asterisk-users] Agents.conf from realtime static (Solved)
On Tue, 2007-05-29 at 17:13 -0400, Jared Smith wrote:> On 5/29/07, Carlos Chavez <cursor@telecomabmex.com> wrote: > > I am using Asterisk 1.4.4 on a CentOS 5 machine for a small call center > > with 6 agents. I am using realtime for queues and sip and I am also > > trying to use realtime static to load agents.conf. The only problem I > > am having is that no agents are loaded when I start Asterisk. I have to > > manually do a "module reload chan_agent.so" so the agents get loaded > > from the database. > > This sounds like it *might* be a problem with the order in which your > modules are being loaded. To fix this, you might want to manually add > the following lines to your modules.conf file, to make sure that > chan_local and chan_sip get loaded *before* chan_agent: > > load => chan_local.so > load => chan_sip.so > load => chan_agent.so > > Give that a try and let me know if it works for you. >What needs to be preloaded is the realtime engine for Mysql. So you just have to insert the following line into /etc/asterisk/modules.conf: preload => res_config_mysql.so -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070530/3623bfa7/attachment.pgp