[asterisk-dev] phone_read and phone_write not working on subchannels

Alok Prasad alok.prasad7 at gmail.com
Tue Nov 23 00:11:05 CST 2010


In continuation to my earlier post below i am giving some more details
about the problem.
I Created three subchannels one for normal call (SUB_REAL -0),second for
callwaiting (SUB_CALLWAIT - 1), and third one for 3-way conference
(SUB_THREEWAY - 2).

So i used SUB_REAL For normal call and set device FD using
ast_channel_set_FD() function.
after this my deviceXYZ_read() and deviceXYZ_write() api are getting polled
by asterisk
but when i set the same FD for call waiting scenario by keeping SUB_REAL
Channel on hold,
deviceXYZ_write() and deviceXYZ_read() for subchannel SUB_CALLWAIT is not
polled by asterisk.

I would like to know procedure how to use Same FD to make callwaiting or
3-wAY conference
work?
I also saw the swap_subs() in some of the channel driver implementation.Does
this do any mixing?? what is the purpose of this function?

Any help on this appreciated .thanks in advance

On Tue, Nov 23, 2010 at 8:51 AM, Alok Prasad <alok.prasad7 at gmail.com> wrote:

> I am trying to make a channel driver for my custom hardware..I am trying to
> copy the logic of
> chan_unistim.c
> chan_phone.c
> I am using logic of 3 subchannels in each asterisk channel..problem is FD
> is already allocated to one of the channel and when i make other channel
> active polling of phone_read and phone_write are not done by
> asterisk.
> Is it that i need a separate FD for each channel ?
> i also came across a function swap_subs what the use
> of the function in relation to this..
> Thanks
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20101123/893c0dce/attachment.htm 


More information about the asterisk-dev mailing list