Open vishalknishad opened 5 years ago
A hangup at the SpeechBackground application is most likely caused by some failure to initialize the speech driver for dialogflow. Any warnings or errors should be in the full log.
Can you post the relevant portions of your full log?
here are portions from full log
[Sep 12 18:55:01] VERBOSE[12499] loader.c: Loading res_speech_gdfe.so.
[Sep 12 18:55:01] DEBUG[12499] config.c: Parsing /etc/asterisk/res_speech_gdfe.conf
[Sep 12 18:55:01] DEBUG[12499] res_speech_gdfe.c: Loading service key data from /etc/asterisk/svc_key.json
[Sep 12 18:55:01] VERBOSE[12499] res_speech.c: Registered speech recognition engine 'GoogleDFE'
[Sep 12 18:55:01] VERBOSE[12499] res_speech.c: Made 'GoogleDFE' the default speech recognition engine
[Sep 12 18:55:01] VERBOSE[12499] loader.c: res_speech_gdfe.so => (Google DialogFlow for Enterprise (DFE) Speech Engine)
[Sep 12 18:55:01] VERBOSE[12499] loader.c: Loading app_speech_utils.so.
[Sep 12 18:55:01] VERBOSE[12499] pbx_app.c: Registered application 'SpeechCreate'
[Sep 12 18:55:01] VERBOSE[12499] pbx_app.c: Registered application 'SpeechLoadGrammar'
[Sep 12 18:55:01] VERBOSE[12499] pbx_app.c: Registered application 'SpeechUnloadGrammar'
[Sep 12 18:55:01] VERBOSE[12499] pbx_app.c: Registered application 'SpeechActivateGrammar'
[Sep 12 18:55:01] VERBOSE[12499] pbx_app.c: Registered application 'SpeechDeactivateGrammar'
[Sep 12 18:55:01] VERBOSE[12499] pbx_app.c: Registered application 'SpeechStart'
[Sep 12 18:55:01] VERBOSE[12499] pbx_app.c: Registered application 'SpeechBackground'
[Sep 12 18:55:01] VERBOSE[12499] pbx_app.c: Registered application 'SpeechDestroy'
[Sep 12 18:55:01] VERBOSE[12499] pbx_app.c: Registered application 'SpeechProcessingSound'
[Sep 12 18:55:01] VERBOSE[12499] pbx_functions.c: Registered custom function 'SPEECH'
[Sep 12 18:55:01] VERBOSE[12499] pbx_functions.c: Registered custom function 'SPEECH_SCORE'
[Sep 12 18:55:01] VERBOSE[12499] pbx_functions.c: Registered custom function 'SPEECH_TEXT'
[Sep 12 18:55:01] VERBOSE[12499] pbx_functions.c: Registered custom function 'SPEECH_GRAMMAR'
[Sep 12 18:55:01] VERBOSE[12499] pbx_functions.c: Registered custom function 'SPEECH_ENGINE'
[Sep 12 18:55:01] VERBOSE[12499] pbx_functions.c: Registered custom function 'SPEECH_RESULTS_TYPE'
[Sep 12 18:55:01] VERBOSE[12499] loader.c: app_speech_utils.so => (Dialplan Speech Applications)
[Sep 12 18:55:01] VERBOSE[12499] loader.c: Loading res_metering.so.
[Sep 12 18:55:01] WARNING[12499] res_metering.c: Configuration not found, using defaults
[Sep 12 18:55:01] DEBUG[12499] res_metering.c: Scheduled first metric event 298277ms from now
[Sep 12 18:55:01] VERBOSE[12499] loader.c: res_metering.so => (Usage metric tracking)
[Sep 12 18:55:01] VERBOSE[12499] loader.c: Loading func_pjsip_endpoint.so.
[Sep 12 18:55:01] VERBOSE[12499] pbx_functions.c: Registered custom function 'PJSIP_ENDPOINT'
[Sep 12 18:55:01] VERBOSE[12499] loader.c: func_pjsip_endpoint.so => (Get information about a PJSIP endpoint)
[Sep 12 18:55:01] VERBOSE[12499] loader.c: Loading res_pjsip_endpoint_identifier_anonymous.so.
[Sep 12 18:55:01] DEBUG[12499] res_pjsip.c: Register endpoint identifier anonymous(0x7ff9906e7180)
[Sep 12 18:55:01] VERBOSE[12499] loader.c: res_pjsip_endpoint_identifier_anonymous.so => (PJSIP Anonymous endpoint identifier)
[Sep 12 18:55:01] VERBOSE[12499] loader.c: Loading app_queue.so.
[Sep 12 18:55:01] DEBUG[12499] config.c: Parsing /etc/asterisk/queuerules.conf
The interesting things probably happened around the time of your call and the hangup. Can you share that part of the full log?
Hi, I've attached complete log.
full: https://gist.github.com/vishalknishad/d52d2bd3a8be6793857e3c0cea466c08 extensions.conf: https://gist.github.com/vishalknishad/eb475d759666335363be43401c4b6c6a
Thanks for the help.
Looking at the SpeechBackground application there are several scenarios where it will silently fail to start. The most likely based on your logs is that the channel's input audio is not the requested codec (I don't see that it will attempt to transcode). Can you try setting the codec for your call to ulaw only?
I'm not able use it as per documentation. A simple example would be highly appreciated.
Here is my extensions.conf
asterisk console messages: