Hello, i’m trying to integrate the use of AEAP but i’m having some issues and this is probably because of my configuration but i’m not sure.
WARNING[1158992][C-00000004]: pbx.c:2936 pbx_extension_helper: No application ‘AEAP’ for extension
ERROR[1158992][C-00000004]: pbx_functions.c:699 ast_func_write: Function AEAP not registered
Am i calling the function wrongly or what seems to be the problem here?
All required modules seems to be installed, loaded and running.
extensions.conf
[test]
exten => s,1,NoOp(Starting Call Handling)
same => n,Answer()
same => n,Set(AEAP(application)=test)
same => n,NoOp(Using AEAP application: ${AEAP(application)})
same => n,Hangup()
I am also starting a python server that connects to this websocket and the connection works, however the error: No application ‘AEAP’ for extension ends the call. Am i using the correct syntax here?
I have updated the configuration files like this:
extensions.conf
[test]
exten => s,1,NoOp(Starting Call Handling)
same => n,Answer()
same => n,SpeechCreate(test)
same => n,SpeechStart()
same => n,Verbose(0,${SPEECH_TEXT(0)})
same => n,SpeechDestroy()
The call is recieved but immediately hangs up, no error messages.
Is the sorcery.conf in play here? Do i need to modify that or why is the call ending just like that instead of keeping the call active?
I am pretty new to this type of integration so i am sorry if i’m asking stupid questions but i really hope for some guidence. Would really appreciate it.
Because you haven’t told it to do anything. SpeechBackground is used to play back an audio file and do speech to text. After which you then have to actually use the results in some way. There is example dialplan in our example[1].
Thank you.
Although the examples was good in the link you provided but i’m not sure how to configure this the right way. I have a python server that connects to the websocket that will handle recording and playback but how do i make sure the configuration under extensions.conf keep the dialplan open and not immediately close it after the call is recieved?
I see, then i guess i better use EAGI instead.
I am creating an ai-assistant that can answer questions from the caller.
I have tried both the EAGI and AGI solution but i have trouble getting it to work fully where i would like to be able to playback audio and at the same time record user speech. I dont know if that is even possible using asterisk as the pbx. May i ask if this is even possible? That will say, play audio and at the same time record speech? If not, what would you say is a better solution here (if you know any)? I am wondering if maybe it would be possible if creating a conference call, because that way it should support multiple audiostreams at the same time, i think?