Re: [asterisk-users] Detecting hook flash in asterisk

2010-06-30 Thread Ye Liu
Hi Paul,

On Sat, Jun 26, 2010 at 1:33 PM, Paul Belanger
paul.belan...@polybeacon.com wrote:
 On Sat, Jun 26, 2010 at 7:33 AM, Deepesh D deep.d2...@gmail.com wrote:
 Is it possible to do this action on hook flash?

 Currently no.  You would need to add logic to the channel driver.  Or
 use DTMF to initiate the hookflash:

My PSTN line has call waiting, and I have to use zapflash application
to answer the new incoming call. If I want to flash hook to switch
calls, which channel driver do I need to look at? chan_dahdi?

I noticed that I can use hook flash to switch between SIP calls, or
even between a SIP call and a PSTN call, does this mean chan_sip has
such hook flash detection logic so I can learn from there?


 extensions.conf
 [globals]
 DYNAMIC_FEATURES=zapflash

 features.conf
 [applicationmap]
 zapflash = *0,callee,flash,()

 --
 Paul Belanger | dCAP
 Polybeacon | Consultant
 Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode)
 blog.polybeacon.com

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




-- 
Ye Liu (AKA @jaux)

http://jaux.net

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] Detecting hook flash in asterisk

2010-06-26 Thread Deepesh D
Hello,

Is it possible to detect a hook flash in asterisk. I want to be able to
perform some functions an hook flash.

I have the following entry in features.conf which executes a Macro on
detecting key press '**'.

[applicationmap]
test = **,caller,Macro,testflash

Is it possible to do this action on hook flash?
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Detecting hook flash in asterisk

2010-06-26 Thread Paul Belanger
On Sat, Jun 26, 2010 at 7:33 AM, Deepesh D deep.d2...@gmail.com wrote:
 Is it possible to do this action on hook flash?

Currently no.  You would need to add logic to the channel driver.  Or
use DTMF to initiate the hookflash:

extensions.conf
[globals]
DYNAMIC_FEATURES=zapflash

features.conf
[applicationmap]
zapflash = *0,callee,flash,()

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode)
blog.polybeacon.com

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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