Re: [asterisk-users] How to steal an answered call?

2018-07-08 Thread Patrick Wakano
Not sure how elegant this is, but I think you can try to elaborate some
logic that when phone C dials something, it would retrieve you the channel
phone A is connected and use the Bridge application to force the connection
of phone C to phone A. So you need first to save the channels you have
connected in a call, later on read this info based on whatever the phone C
has dialed in and just use this as parameter to the Bridge app. When this
happens channel C gets connected to channel A and channel B should
automatically get disconnected (or maybe continue your dialplan execution).

On Mon, 9 Jul 2018 at 13:17, David Cunningham 
wrote:

> Hello,
>
> I'm familiar with Pickup/PickupChan for taking a ringing call, but does
> anyone know how a phone can "steal" an already answered call from another
> phone? Our users have decided that call parking is too long-winded and
> don't want to use that.
>
> For example: phone A calls phone B, phone B answers the call, phone C
> dials something to "steal" the call from B, and finally A and C are talking.
>
> Searching on voip-info.org shows a "BristuffSteal" command but it's very
> out of date (Asterisk 1.2).
>
> Thanks in advance for any suggestions.
>
> Kind regards,
>
> --
> David Cunningham, Voisonics Limited
> http://voisonics.com/
> USA: +1 213 221 1092
> New Zealand: +64 (0)28 2558 3782
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] How to steal an answered call?

2018-07-08 Thread David Cunningham
Hello,

I'm familiar with Pickup/PickupChan for taking a ringing call, but does
anyone know how a phone can "steal" an already answered call from another
phone? Our users have decided that call parking is too long-winded and
don't want to use that.

For example: phone A calls phone B, phone B answers the call, phone C dials
something to "steal" the call from B, and finally A and C are talking.

Searching on voip-info.org shows a "BristuffSteal" command but it's very
out of date (Asterisk 1.2).

Thanks in advance for any suggestions.

Kind regards,

--
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] MixMonitor multiple times to the same file

2018-07-08 Thread Patrick Wakano
Hello list,
Hope you are all doing fine!

While playing around with the MixMonitor, I've found out that it is
possible to start the MixMonitor multiple times to the same output file.
It is very easy to reproduce, via the CLI or via the dialplan. If the
MixMonitor is called twice from the same channel, to the same output file
and with option append. After that, with the "mixmonitor list" command we
can see two running instances, and also from Linux open files "lsof" we can
see two Asterisk process with the same file opened. Nevertheless, in this
case the file does not gets corrupted and the recording is completely fine.
However after observing such behavior I decided to call MixMonitor twice to
the same file but from different channels. The observed behavior is that
the output file has the contents of the first call until the second
MixMonitor command is called for the second call. After that only the
second call is recorded. If this is stopped, the first call is recorded
again.
I know we can consider an application/dialplan error to call MixMonitor
twice for the same output file like this, but I am just curious to know if
this situation is actually being handled by the Asterisk/MixMonitor code or
if it is completely undefined behavior, since the behavior I described  is
actually consistent.
Anyway, to avoid confusion and weird behavior, I think it would be probably
better if Asterisk just not allow creating a MixMonitor thread to a file
that is already opened by some other MixMonitor thread. Or is there any
reason/situation in which this is not desired?

Kind regards,
Cheers,
Patrick Wakano
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users