Re: [asterisk-dev] 2 way Audiohook ?

2021-01-14 Thread Killian Matter
Okay, thanks, so I'll have to get the other channel and apply an audiohook to it Killian Matter Le jeu. 14 janv. 2021 à 14:42, Joshua C. Colp a écrit : > On Thu, Jan 14, 2021 at 9:40 AM Killian Matter > wrote: > >> Is it possible to have a 2 way Audiohook, that takes and works on two >>

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Killian Matter
It seems that nothing else change it's status, i ran the loop for more than 15 minutes and still, no change of status. Killian Matter Le jeu. 14 janv. 2021 à 10:02, Dennis Buteyn a écrit : > That loop is equivalent to: > > audiohook->status = AST_AUDIOHOOK_STATUS_SHUTDOWN; > while

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Killian Matter
No, no media flowing Le jeu. 14 janv. 2021 à 11:15, Joshua C. Colp a écrit : > On Thu, Jan 14, 2021 at 6:10 AM Killian Matter > wrote: > >> It seems that nothing else change it's status, i ran the loop for more >> than 15 minutes and still, no change of status. >> > > What is the underlying

Re: [asterisk-dev] 2 way Audiohook ?

2021-01-14 Thread Joshua C. Colp
On Thu, Jan 14, 2021 at 9:40 AM Killian Matter wrote: > Is it possible to have a 2 way Audiohook, that takes and works on two > channels, a call between caller and called one, an audiohook in between to > work on the audio. > I thought of the event when the bridge is done, get the other channel

[asterisk-dev] 2 way Audiohook ?

2021-01-14 Thread Killian Matter
Is it possible to have a 2 way Audiohook, that takes and works on two channels, a call between caller and called one, an audiohook in between to work on the audio. I thought of the event when the bridge is done, get the other channel and apply an audiohook to it but if there is an easier way, i'll

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Joshua C. Colp
On Thu, Jan 14, 2021 at 6:31 AM Killian Matter wrote: > No, no media flowing > Audiohooks predate timers, and require media flow to work properly. -- Joshua C. Colp Asterisk Technical Lead Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org --

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Killian Matter
Is it the same for datastore ? Le jeu. 14 janv. 2021 à 11:51, Joshua C. Colp a écrit : > On Thu, Jan 14, 2021 at 6:48 AM Killian Matter > wrote: > >> i'm trying to detach the audiohook after an h extension that's the >> origin of the problem, the flow of RTP just stop before. Have to find

[asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Killian Matter
Hello , I'm developing a module on asterisk, while debugging i've come across a problem I don't quite understand. I'm using a noise filter, at the end of the call I stop my filter , so clean up everything, detach the audiohook and there is the problem. It's stuck in the while loop in

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Joshua C. Colp
On Thu, Jan 14, 2021 at 6:48 AM Killian Matter wrote: > i'm trying to detach the audiohook after an h extension that's the > origin of the problem, the flow of RTP just stop before. Have to find > something else than the h extension, might try events. > If the channel is hung up then the

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Killian Matter
Okay, for now it's works ! Thanks for the help ! Killian Matter Le jeu. 14 janv. 2021 à 11:55, Joshua C. Colp a écrit : > On Thu, Jan 14, 2021 at 6:53 AM Killian Matter > wrote: > >> Is it the same for datastore ? >> > > Yes, datastores are also automatically destroyed upon channel hang up. A

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Joshua C. Colp
On Thu, Jan 14, 2021 at 6:10 AM Killian Matter wrote: > It seems that nothing else change it's status, i ran the loop for more > than 15 minutes and still, no change of status. > What is the underlying channel? Does it have media flowing? -- Joshua C. Colp Asterisk Technical Lead Sangoma

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Joshua C. Colp
On Thu, Jan 14, 2021 at 6:39 AM Killian Matter wrote: > by media flow you meant to allow media stream no ? > I forgot to say i use SIP. > It expects a constant flow of RTP and thus audio flowing through Asterisk to operate. -- Joshua C. Colp Asterisk Technical Lead Sangoma Technologies Check

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Dennis Buteyn
That loop is equivalent to: audiohook->status = AST_AUDIOHOOK_STATUS_SHUTDOWN; while (audiohook->status != AST_AUDIOHOOK_STATUS_DONE) {     sleep(...); } Something else (in another thread) must change the status in order for that loop to terminate. Side note: that struct member probably

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Killian Matter
by media flow you meant to allow media stream no ? I forgot to say i use SIP. Le jeu. 14 janv. 2021 à 11:33, Joshua C. Colp a écrit : > On Thu, Jan 14, 2021 at 6:31 AM Killian Matter > wrote: > >> No, no media flowing >> > > Audiohooks predate timers, and require media flow to work properly. >

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Killian Matter
i'm trying to detach the audiohook after an h extension that's the origin of the problem, the flow of RTP just stop before. Have to find something else than the h extension, might try events. Le jeu. 14 janv. 2021 à 11:43, Joshua C. Colp a écrit : > On Thu, Jan 14, 2021 at 6:39 AM Killian

Re: [asterisk-dev] Help, can't get out of while loop

2021-01-14 Thread Joshua C. Colp
On Thu, Jan 14, 2021 at 6:53 AM Killian Matter wrote: > Is it the same for datastore ? > Yes, datastores are also automatically destroyed upon channel hang up. A channel hang up will clean up any resources associated with the channel. -- Joshua C. Colp Asterisk Technical Lead Sangoma

[asterisk-dev] Asterisk 18.2.0-rc1 Now Available

2021-01-14 Thread Asterisk Development Team
The Asterisk Development Team would like to announce the first release candidate of Asterisk 18.2.0. This release candidate is available for immediate download at https://downloads.asterisk.org/pub/telephony/asterisk The release of Asterisk 18.2.0-rc1 resolves several issues reported by the

[asterisk-dev] Asterisk 16.16.0-rc1 Now Available

2021-01-14 Thread Asterisk Development Team
The Asterisk Development Team would like to announce the first release candidate of Asterisk 16.16.0. This release candidate is available for immediate download at https://downloads.asterisk.org/pub/telephony/asterisk The release of Asterisk 16.16.0-rc1 resolves several issues reported by the