nimbleape / asterisk-dialogflow-rtp-audioserver

MIT License
41 stars 18 forks source link

Asterisk just playing back some sentences from dialogflow #19

Closed Toni-Navarro closed 3 years ago

Toni-Navarro commented 3 years ago

Hi guys, I hope you can help here. I am trying to use this code but not able to run it properly. ARI bridge looks fine and I can see fulfillmentMessage/Transcript there and also in RTP server. As well, tcpdump shows data in the port but, unfortunately, only some sentences are listened randomly in my softphone.

Has somebody experimented this behaviour?

My config is exactly the same for ARI bridge and RTP server. (Only difference is that i run a mqtt server on host, but this issue was also when I used mosquitto servers

Running Asterisk 16.13.0 on raspbx On asterisk log I just can see these warnings:

[2020-11-30 10:45:40] WARNING[24256]: translate.c:408 framein: no samples for slin 8000khz -> 16000khz [2020-11-30 10:45:46] NOTICE[24256]: translate.c:597 ast_translate: 28650 lost frame(s) 63893/35242 (slin@8000)->(slin@16000) [2020-11-30 10:45:46] NOTICE[24252][C-0000000b]: translate.c:597 ast_translate: 28651 lost frame(s) 63893/35241 (slin@16000)->(slin@8000)->(ulaw@8000)

Thanks in advance. Let me know if you need anything else

danjenkins commented 3 years ago

Hi @Toni-Navarro - sorry for the delay in getting back to you - busy!

Are you still trying to get this to work? I wonder if its a ulaw vs alaw problem?

Toni-Navarro commented 3 years ago

Hi @danjenkins

I was running asterisk, audioserver and ari bridge in a raspberry pi 3. The issue disappeared when I install them in a VM in GCP. Then the solutions worked properly. Probably it was a performance issue related with codec tranlations. Now, everything is working properly.

Thanks a lot for this amazing code. If there is a chance, i would like to pay you a lot of pints!!! Thanks again

danjenkins commented 3 years ago

Great I'll close this out then. If you want to support the open source work you can always sponsor the github org :) https://github.com/sponsors/nimbleape