Re: [Freeswitch-dev] hooked functions are not called while using one single session [SOLVED]

2010-04-02 Thread Francisco Scaramanga
iness...@gmail.com To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] hooked functions are not called while using one single session The code you are looking at for playback and record has also changed the format of the channel to signed linear before writing, you are t

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-26 Thread Anthony Minessale
read_frame, SWITCH_IO_FLAG_NONE, > 0);" in function switch_ivr_session_echo, echo will not be sent back, but > then spoken audio will be recorded correctly. This is what I meant with > possible cross effect. > > -------------- > Date: Fri, 26 Mar 2010 13:07:14 -0500 >

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-26 Thread Francisco Scaramanga
ervall. Date: Fri, 26 Mar 2010 11:31:43 -0500 From: anthony.miness...@gmail.com To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] hooked functions are not called while using one single session you can only write back the exact number of bytes you negotiated per interval.

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-26 Thread Anthony Minessale
PCMA codec with 20 msec intervall. > > > -- > Date: Fri, 26 Mar 2010 11:31:43 -0500 > > From: anthony.miness...@gmail.com > To: freeswitch-dev@lists.freeswitch.org > Subject: Re: [Freeswitch-dev] hooked functions are not called while using > on

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-26 Thread Francisco Scaramanga
-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] hooked functions are not called while using one single session You can use the data you have, yes the the read will already be timed right when you get a frame that has flag SFF_CNG you know that there was not a real frame to read but

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-26 Thread Anthony Minessale
; > From: anthony.miness...@gmail.com > To: freeswitch-dev@lists.freeswitch.org > Subject: Re: [Freeswitch-dev] hooked functions are not called while using > one single session > > you can only write back the exact number of bytes you negotiated per > interval. > > > On Fri,

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-26 Thread Francisco Scaramanga
el_read_frame not? Date: Tue, 16 Mar 2010 13:59:28 -0500 From: anthony.miness...@gmail.com To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] hooked functions are not called while using one single session you probably want to use the application interface and

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-26 Thread Anthony Minessale
----- > Date: Mon, 22 Mar 2010 18:34:46 -0500 > > From: anthony.miness...@gmail.com > To: freeswitch-dev@lists.freeswitch.org > Subject: Re: [Freeswitch-dev] hooked functions are not called while using > one single session > > you don't use the hook functions you use a

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-26 Thread Francisco Scaramanga
0500 From: anthony.miness...@gmail.com To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] hooked functions are not called while using one single session you don't use the hook functions you use a frame pointer switch_frame_t *read_frame; switch_core_session_r

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-22 Thread Anthony Minessale
// Spoken audio samples from my microphone are written, but sometimes > samples are missing > fwrite((short *)frame->data, 2, frame->datalen/2 ,tmp); > } > > Is it possible that I don't get all audio samples by hooked functions? why > audio recorded in channel_write_f

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-22 Thread Francisco Scaramanga
2010 11:55:42 -0500 From: anthony.miness...@gmail.com To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] hooked functions are not called while using one single session Why do you even need the hooks? What exactly are you trying to do? Maybe you should explain it. On Mon

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-22 Thread Anthony Minessale
udio recorded in channel_write_frame is brilliant and in channel_read_frame > not? > > > > > > > -------------- > Date: Tue, 16 Mar 2010 13:59:28 -0500 > > From: anthony.miness...@gmail.com > To: freeswitch-dev@lists.freeswitch.org > Subject:

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-22 Thread Francisco Scaramanga
_write_frame is brilliant and in channel_read_frame not? Date: Tue, 16 Mar 2010 13:59:28 -0500 From: anthony.miness...@gmail.com To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] hooked functions are not called while using one single session you probably want to use

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-16 Thread Anthony Minessale
ch.org > Subject: Re: [Freeswitch-dev] hooked functions are not called while using > one single session > > > What exactly is your goal? > > those hooks will probably only be called if you send the channel to do > something that > requires reading and writing audio. > >

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-16 Thread Francisco Scaramanga
@lists.freeswitch.org Subject: Re: [Freeswitch-dev] hooked functions are not called while using one single session What exactly is your goal? those hooks will probably only be called if you send the channel to do something that requires reading and writing audio. On Tue, Mar 16, 2010 at 6:47 AM, Francisco

Re: [Freeswitch-dev] hooked functions are not called while using one single session

2010-03-16 Thread Anthony Minessale
What exactly is your goal? those hooks will probably only be called if you send the channel to do something that requires reading and writing audio. On Tue, Mar 16, 2010 at 6:47 AM, Francisco Scaramanga wrote: > Hello, > I am writing my own freeswitch module and have implemented 2 hooks for >

[Freeswitch-dev] hooked functions are not called while using one single session

2010-03-16 Thread Francisco Scaramanga
Hello, I am writing my own freeswitch module and have implemented 2 hooks for reading and writing audio (I did not implement the endpoint interface). My problem is that the channel_write_frame and channel_read_frame callback-functions are only called if I make an intercept with another session