Asterisk AGI error

I am using asterisk 20.8.1 on fedora 40 server.

After installing asterisk
If you run systemctl status asterisk, it will show that it is not working as shown below.

[root@localhost asterisk]# systemctl status asterisk
× asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; generated)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: failed (Result: exit-code) since Thu 2024-07-18 19:23:54 KST; 2min 24s ago
Docs: man:systemd-sysv-generator(8)
Process: 125826 ExecStart=/etc/rc.d/init.d/asterisk start (code=exited, status=1/FAILURE)
CPU: 3ms

Jul 18 19:23:54 localhost.localdomain systemd[1]: Starting asterisk.service - LSB: Asterisk PBX…
Jul 18 19:23:54 localhost.localdomain asterisk[125826]: /etc/rc.d/init.d/asterisk: Line 42: /etc/rc.d/init.d/functions: No such file or directory doesn’t exist
Jul 18 19:23:54 localhost.localdomain systemd[1]: asterisk.service: Control process exited, code=exited, status=1/FAILURE
Jul 18 19:23:54 localhost.localdomain systemd[1]: asterisk.service: Failed with result ‘exit-code’.
Jul 18 19:23:54 localhost.localdomain systemd[1]: Failed to start asterisk.service - LSB: Asterisk PBX.

However, if rasterisk -vvvvvv
[root@localhost asterisk]# rasterisk -vvvvvvvvvvvvvv
Asterisk 20.8.1, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
================================================================================= =======================
Connected to Asterisk 20.8.1 currently running on localhost (pid = 125921)

localhost*CLI>

Access the cli screen as follows.

Actually, if you call and run it using a soft phone,

– Executing [s@ivr-parkgolf:1] Wait(“PJSIP/9001-00000001”, “1”) in new stack
– Executing [s@ivr-parkgolf:2] Answer(“PJSIP/9001-00000001”, “”) in new stack

0x7fd43001f010 – Strict RTP learning after remote address set to: 172.30.1.70:53560
– Executing [s@ivr-parkgolf:3] NoOp(“PJSIP/9001-00000001”, “…4444444… …START …”) in new stack
– Executing [s@ivr-parkgolf:4] NoOp(“PJSIP/9001-00000001”, “9001”) in new stack
– Executing [s@ivr-parkgolf:5] Set(“PJSIP/9001-00000001”, “chan_use=1”) in new stack
[Jul 18 19:33:50] WARNING[129467][C-00000002]: pbx.c:2928 pbx_extension_helper: No application ‘AGI’ for extension (ivr-parkgolf, s, 6)
== Spawn extension (ivr-parkgolf, s, 6) exited non-zero on ‘PJSIP/9001-00000001’

AGI doesn’t run, but I don’t know what the problem is.

in module.conf
Because res_agi.so needs to be added
I’m asking a question because the same thing happens even if I add it to the module.

Did you manage to resolve it? I have the same issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.