Open masteringvoip opened 3 years ago
The only difference I can see from a machine that I had this working on was this:
diff --git a/apps/app_audiofork.c b/apps/app_audiofork.c
index 1b3a0174f..12e5b2f81 100644
--- a/apps/app_audiofork.c
+++ b/apps/app_audiofork.c
@@ -598,7 +598,7 @@ static int setup_audiofork_ds(struct audiofork *audiofork,
ast_verb(2, "Connecting websocket server at %s\n",
- audiofork_ds->wsserver);
+ audiofork->audiofork_ds->wsserver);
//check if we're running with TLS
if (audiofork->has_tls == 1) {
It definitely worked for me before I switched over to using the external media channel via ARI:
globalARI.channels.externalMedia({
channelId: "EM-"+incoming.id,
app: "externalMedia",
external_host: ip+":"+rtpPort,
format: "slin16",
encapsulation: "rtp",
transport: "udp",
variables: {channel: incoming.id}
})
Hi Sir @MattRiddell ,
Can you share, the specific type of asterisk that you use so that this script https://github.com/nadirhamid/asterisk-audiofork/blob/master/app_audiofork.c worked?
Thanks
It's out of a git fork but just config changes.
Version is 16.10.x
If it keeps crashing do a backtrace on it and see where:
@MattRiddell it working on asterisk 16.10
Thanks Sir
No problems - post back if you have issues and I'll help where I can
Hi Sir @MattRiddell ,
On previous message you said "I switched over to using the external media channel via ARI", can you share it on this github? so I can try it
i'm looking programs for realtime TTS or STT conneted to Google Voice.
Thanks
Hah ok,
So @DanJenkins shared a repository with me that I used:
I'm using it for a different purpose than what I used this repository for.
This repository I used to send off a stream for transcribing.
Dan's repository I used for just dealing directly with the audio so I could feed it into my AI pipeline.
Bear in mind, with Dan's repository you'd be responsible for parsing RTP etc.
Anyway, hope that helps 😊
Dan's repository is probably perfect for you - he connects to Microsoft's dialog voice or whatever it's called.
I still use this repository to split off a stream for transcribing though.
Each has its purpose 😊
Hi Sir @MattRiddell @danjenkins
Thank you very much for the help, you are so kind to reply to my question, I am so happy to be able to try it. Good luck to me.
Thanks
Hi @MattRiddell @masteringvoip
I tried this with Asterisk 16.6.2 & Asterisk 16.10.0 but no luck.
Here is the error: -- Executing [s@STREAM:1] NoOp("SIP/voda-00000000", ""starting audio fork------"") in new stack -- Executing [s@STREAM:2] Answer("SIP/voda-00000000", "") in new stack
0x7fdc1c00a670 -- Strict RTP switching to RTP target address 10.229.6.148:17800 as source vl073096-app52-pd-obd-vcz-cts-blr-in-vf*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups
You'll need to get a back trace.
Instructions here
Hi Sir,
It not working with asterisk 16
Here is the error:
== Using SIP RTP CoS mark 5
Thanks