[Asterisk-Dev] how to get control of the file descriptor from pbx?

Horacio J. Peña horape at kaskaskia.com.ar
Fri Aug 20 21:53:35 MST 2004


Hola!

I'm working on MFC/R2 support for asterisk. When I want to send
a call (zt_call) I'd need to take the control of the channel from the
pbx (because signalling is inband)

I'd need something like this:

zt_call(...) 
{
...
ast_givecontrol(astchannel, fd);

}

r2_event_handler(...)
{
switch(event) {
  case R2_ALERTING:
    ast(getcontrolback(astchannel, fd));
...
  }
}

Some help on how to do it? Or a better idea about how to go around this?

This,
					HoraPe
---
Horacio J. Peña
horape at compendium.com.ar
horape at uninet.edu

----- End forwarded message -----

-- 
					HoraPe
---
Horacio J. Peña
horape at compendium.com.ar
horape at uninet.edu



More information about the asterisk-dev mailing list