Troubles with silent calls

2 views
Skip to first unread message

Marco Tinari

unread,
Jul 12, 2024, 10:32:08 AM (4 days ago) Jul 12
to UniMRCP
Hi, I'm writing to ask for a suggestion due to an error that I can't identify.
I installed the unimrcp-1-8-0 version of UNI MRCP with a customized version of the demo_recog_engine.c file.
Everything works without problems until a "silent" call arrives, that is, a call that is closed without speaking, practically
RING -> PHONE CALL STARTS --(silence)--> HOOK-OFF.
More precisely, with the debug points that I have put, I see that we arrive without problems at the call of the demo_recog_recognition_complete function which first sends the recogniton complete message mrcp_event_create(recog_channel->recog_request, RECOGNIZER_RECOGNITION_COMPLETE, recog_channel->recog_request->pool) then it calls the demo_recog_result_load and finally sends the asynch message with its last instruction mrcp_engine_channel_message_send(recog_channel->channel,message).
From that moment MRCP calls the demo_recog_stream_write function about ten times, without having done anything inside it (all IFs are FALSE).
After making these dozen calls MRCP crashes. 
On the contrary, if there is speech during the call, then everything is ok.
Is it normal for MRCP to call the demo_recog_stream_write function ten/fifteen times without anything being done inside it (all IFs have a FALSE condition)? How can I avoid this anomalous behavior? Thank you in advance for every suggestion!
Reply all
Reply to author
Forward
0 new messages