On Tue, Jan 10, 2012 at 12:18 PM, Juraj Fabo <juraj.fabo@gmail.com> wrote:
Hi,

When posting the original question I was working with the testapplication, rather a prototype based on the testapplications
from the freeswitch git to become familiar with the freetdm library.
However, now when I wanted to use this approach in application which would use only public freetdm library api and headers,
I had a problem caused by fact that the ftdm_channel is declared in the include/private/ftdm_code.h header and not known to application.

Please, is then my approach from the post earlier really proper way?
Are the applications which load and use the freetdm supposed to know the private/core declarations?

You are better off using mod_freetdm.c as the reference, the sample/test applications may be outdated.

ftdm_channel_t is an opaque type to API users. I don't remember what your exact question was. You should not use fchan.caller_data, you always get a copy of caller_data when you need it, the fact that is internally attached to the fchan pointer is not something you should rely on (and that's why is in a private header).

Moises Silva
Software Engineer, Development Manager

msilva@sangoma.com

Sangoma Technologies

100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada


t.   +1 800 388 2475 (N. America)

t.   +1 905 474 1990 x128

f.   +1 905 474 9223

 

Products | Solutions | Events | Contact | Wiki | Facebook | Twitter`| | YouTube