[Asterisk-Dev] Executing two applications on same channel

Florian Overkamp florian at obsimref.com
Thu Dec 16 09:15:00 MST 2004


Hi, 

> -----Original Message-----
> Is it possible to execute two different applications in two threads on
> the same channel? What I want to do is to execute some code in
> parallel with Dial, while the bridged call is going on. The parallel
> thread is not going to use the channel for writing something. Just
> needs to read some parameters. Can I spawn a thread from Dial and call
> pbx_exec?

You can create a workaround by using chan_local:

Exten = 1,1,Dial(Local/2 at default/n&Local/3 at default)

Exten = 2,1,Do thread 1

Exten = 3,1,Do thread 2

Best regards,
Florian





More information about the asterisk-dev mailing list