Hello all!
I will have the aforementioned board and Dialogic Release 6.0 for Windows. The board will work in ISDN PRI mode and each line will have a voice device attached.
In order to connect voice device to a network time slot, I need a SC_TSINFO of the latter to issue a dx_listen() call.
This is the first time I use a Springware board and I found out that they do not support gc_GetXmitSlot(), (gc_Listen() , etc) at all.
The question is how to obtain SC_TSINFO for a Springware board?
The documentation says "use nr_scroute()", which in effect calls dt_getxmitslot(). So I decided to call dt_getxmitslot() directly.
Here is what I do:
1. gc_OpenEx(..., ":N_dtiBxTy", ...) and dx_open(...).
2. wait for GCEV_OPENEX, GCEV_UNBLOCKED.
3. Obtain SC_TSINFO for the voice device using dx_getxmitslot().
4. Obtain network handle for the isdn device using gc_GetResourceH().
5. Obtain SC_TSINFO for the network handle using dt_getxmitslot().
6. Connect isdn to voice using dt_listen() and dx_listen().
Note that I'm using DTI API for the network device; I'm not sure if this OK since the handle doesn't come from a dt_open().
I can't check if this works or not since I don't have the hardware right now.
Thanks.
Hi Ivan,
this sounds correct to me.
You can use the handle returned by gc_GetResourceH() for dt_ functions. GC calls dt_open() in the background and gc_GetResourceH() for a network device returns that handle.
It should work fine the way you described it.
Ivan,
This looks good. You are correct, you can get the dt_getxmitslot() without the handle from dt_open(), as it looks like you get it from gc_Open() & gc_GetResourceH(). The main issue is no hardware! You really need to write your code w/ a board as you are likely to run into issues with functions that are only supported for a specific technology (example, the bit functions, like dt_settssig( ) only work on Springware boards and not DM3.
Good luck!
*edit ... ah, Christian posted same answer first, sorry ... at least we agree, your psuedo code looks solid.
Thanks a lot, guys!
When I run into problems, you know where I will look for the answers! :)