Announcing queue position

377 views
Skip to first unread message

Massimo Vignone

unread,
Dec 6, 2020, 10:26:02 AM12/6/20
to sipxcom-users
Hi,

Some users ask that queue members hear a message with their position in queue.

I want to try to use the callcenter-announce-position.lua script found in https://freeswitch.org/confluence/display/FREESWITCH/mod_callcenter .

I presume that I should insert in /etc/sipxpbx/freeswitch/conf/dialplan/sipX_content.xml an entry like this:

...
<action application="set" data="result=${luarun(callcenter-announce-position.lua ${uuid} queue-XXX 30000)}"/>
...

But I can't figure out how to insert that entry in a way it will persist at every configuration change.

Any hints?

Massimo

Matt Keys

unread,
Dec 7, 2020, 1:04:21 PM12/7/20
to sipxcom-users
I've pinged dev on this. I remember there used to be a option to upload lua scripts in older versions (I'm thinking 14.04 or 17.10) but that was removed. Uniteme has a lua upload option beneath features - ivr.
I'm thinking you'd need to manually modify /etc/freeswitch/sipxpbx/conf/autoload_configs/callcenter.conf.xml. It looks like the related cfengine promise file is /usr/share/sipxecs/cfinputs/plugin.d/00_sipxcallqueue.cf.

Ari Sonesh

unread,
Dec 7, 2020, 1:40:33 PM12/7/20
to Matt Keys, sipxcom-users
Matt, I believe that the path is:    /etc/sipxpbx/freeswitch/conf/autoload_configs/callcenter.conf.xml.  

This file has the definition of queues, agents, etc.   But, queues and agents are also defined in the postgresql database.   Will this file be overwritten by the content of the database?

Ari



--
You received this message because you are subscribed to the Google Groups "sipxcom-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sipxcom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sipxcom-users/bf077220-76dd-4656-99d4-f019745fc27fn%40googlegroups.com.

Matt Keys

unread,
Dec 7, 2020, 1:50:44 PM12/7/20
to sipxcom-users
I'm not completely certain about the overwrite question which is why I pinged dev. I'm thinking if you were to do something like add another queue it would probably overwrite it using the definitions in /etc/sipxpbx/freeswitch/callcenter.conf.xml.vm.

Mircea Carasel

unread,
Dec 10, 2020, 6:34:00 AM12/10/20
to Matt Keys, sipxcom-users
Hi,
The LUA scripts upload is a OPENUC feature only.
Related to the callcenter configuration file, I looked over the code and the template is located here: /etc/sipxpbx/freeswitch/callcenter.conf.xml.vm
and the generated file is in autoload_configs/callcenter.conf.xml
Mircea

Ari Sonesh

unread,
Dec 10, 2020, 12:26:36 PM12/10/20
to Mircea Carasel, Matt Keys, sipxcom-users
Mircea, the agents and queue information is also in the Posgre DB.   How that relates to the  "autoload_configs/callcenter.conf.xml" file?

Ari 


Mircea Carasel

unread,
Dec 11, 2020, 5:37:30 AM12/11/20
to Ari Sonesh, Matt Keys, sipxcom-users
callcenter.conf.xml is generated based on the queue information saved in Postgres DB.
Freeswitch does not read data directly from our sipx Postgres database, it needs generated and replicated files to load needed configuration.

I am not familiar with mod callcenter in freeswitch, but callcenter.conf.xml is the needed configuration file
This doc might help:

Mircea

Reply all
Reply to author
Forward
0 new messages