Hi everyone When I use the mohqueue module, I get the following error message: ``` 0(7901) ERROR: mohqueue [mohq_db.c:484]: update_mohq_lst(): Queue,Field (abc,mohdir): Unable to find MOH files (/var/kamailio/MOH//HeWillCall.8.*)! 0(7901) ERROR: mohqueue [mohqueue_mod.c:400]: mod_init(): Unable to load rtpproxy_answer! 0(7901) ERROR: <core> [core/sr_module.c:1039]: init_mod(): Error while initializing module mohqueue (/usr/local/lib64/kamailio/modules/mohqueue.so) ``` here is the audio file: ``` ll /var/kamailio/MOH/HeWillCall.8 -rwxrwxrwx. 1 root root 550080 Jul 28 13:53 /var/kamailio/MOH/HeWillCall.8 ``` kamailio version: kamailio 5.8.5 (x86_64/linux)
Hello,
maybe just a spelling mistake in the module parameter?
$ touch /tmp/HeWillCall.8
$ ls -la /tmp/HeWillCall.8.* ls: cannot access '/tmp/HeWillCall.8.*': No such file or directory
$ ls -la /tmp/HeWillCall.8 -rw------- 1 henning henning 0 Jul 28 08:16 /tmp/HeWillCall.8
Cheers,
Henning
-----Original Message----- From: 17603019528--- via sr-users sr-users@lists.kamailio.org Sent: Montag, 28. Juli 2025 08:57 To: sr-users@lists.kamailio.org Cc: 17603019528@163.com Subject: [SR-Users] Unable to find MOH files
Hi everyone When I use the mohqueue module, I get the following error message:
0(7901) ERROR: mohqueue [mohq_db.c:484]: update_mohq_lst(): Queue,Field (abc,mohdir): Unable to find MOH files (/var/kamailio/MOH//HeWillCall.8.*)! 0(7901) ERROR: mohqueue [mohqueue_mod.c:400]: mod_init(): Unable to load rtpproxy_answer! 0(7901) ERROR: <core> [core/sr_module.c:1039]: init_mod(): Error while initializing module mohqueue (/usr/local/lib64/kamailio/modules/mohqueue.so)here is the audio file:
ll /var/kamailio/MOH/HeWillCall.8 -rwxrwxrwx. 1 root root 550080 Jul 28 13:53 /var/kamailio/MOH/HeWillCall.8 ``` kamailio version: kamailio 5.8.5 (x86_64/linux) __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr- users@lists.kamailio.org To unsubscribe send an email to sr-users- leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Hello henning, thanks for your reply, It's not a misspelling of the letters, it's the printed log that is automatically added ".*"
here is the source code: ``` update_mohq_lst.c
rtpmap **pmohfiles = find_MOH(pmohdir, (char *)VAL_STRING(prowvals + MOHQCOL_MFILE)); if(!pmohfiles[0]) { LM_ERR("Queue,Field (%s,%.*s): Unable to find MOH files " "(%s/%s.*)!\n", pqname, STR_FMT(&MOHQCSTR_MDIR), pmohdir, (char *)VAL_STRING(prowvals + MOHQCOL_MFILE)); continue; } ```
Files shouldn’t have any extension?
Regards,
David Villasmil email: david.villasmil.work@gmail.com
On Mon, Jul 28, 2025 at 11:56 AM 17603019528--- via sr-users < sr-users@lists.kamailio.org> wrote:
Hello henning, thanks for your reply, It's not a misspelling of the letters, it's the printed log that is automatically added ".*"
here is the source code:
update_mohq_lst.c rtpmap **pmohfiles = find_MOH(pmohdir, (char *)VAL_STRING(prowvals + MOHQCOL_MFILE)); if(!pmohfiles[0]) { LM_ERR("Queue,Field (%s,%.*s): Unable to find MOH files " "(%s/%s.*)!\n", pqname, STR_FMT(&MOHQCSTR_MDIR), pmohdir, (char *)VAL_STRING(prowvals + MOHQCOL_MFILE)); continue; }
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
The full name of the file is based on RTP stream type. See Audio Files https://kamailio.org/docs/modules/6.0.x/modules/mohqueue.html#audiofiles for more information.
Regards, Bob
On Mon, Jul 28, 2025 at 6:41 AM David Villasmil via sr-users < sr-users@lists.kamailio.org> wrote:
Files shouldn’t have any extension?
Regards,
David Villasmil email: david.villasmil.work@gmail.com
On Mon, Jul 28, 2025 at 11:56 AM 17603019528--- via sr-users < sr-users@lists.kamailio.org> wrote:
Hello henning, thanks for your reply, It's not a misspelling of the letters, it's the printed log that is automatically added ".*"
here is the source code:
update_mohq_lst.c rtpmap **pmohfiles = find_MOH(pmohdir, (char *)VAL_STRING(prowvals + MOHQCOL_MFILE)); if(!pmohfiles[0]) { LM_ERR("Queue,Field (%s,%.*s): Unable to find MOH files " "(%s/%s.*)!\n", pqname, STR_FMT(&MOHQCSTR_MDIR), pmohdir, (char *)VAL_STRING(prowvals + MOHQCOL_MFILE)); continue; }
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!