[Asterisk-Users] Dialling Hook Flash on Zaptel

Steven Critchfield critch at basesys.com
Tue Feb 3 08:33:20 MST 2004


On Tue, 2004-02-03 at 06:59, Christopher Lee wrote:
> Hi,
> 
> I'm trying to get my X100P to Dial the following sequence to gain access to
> speed dial numbers on my Norstar PBX that the X100 is connected to...
> 
> [FLASH] [*] [0] [22] (where 22 is the speed dial number)
> 
> But so far I've had no luck, with the following extension:-
> 
> exten => 922,1,Flash(${DIALOUTANALOG})
> exten => 922,2,Dial(${DIALOUTANALOG}/*022)
> exten => 922,3,Congestion
> exten => 922,4,Hangup
> 
> Looking at the console, Asterisk doesn't get past the Flash command, telling
> me that it's not a valid Zap channel. The call is being made from my Cisco
> SIP phone through my local Asterisk Box, then via an IAX2 channel to the
> site with the Asterisk box+X100P connected to the Norstar.
> 
> ====CONSOLE LOG====
> -- Accepting AUTHENTICATED call from 192.168.1.1, requested format = 2,
> actual format = 2
> -- Executing Flash("IAX2[voipsrv at voipsrv]/2", "Zap/1") in new stack Feb  3
> 22:37:19 WARNING[1146896]: app_flash.c:85 flash_exec:
> IAX2[voipsrv at voipsrv]/2 is not a Zap channel
> == Spawn extension (local, 922, 1) exited non-zero on
> 'IAX2[voipsrv at voipsrv]/2'
> -- Hungup 'IAX2[voipsrv at voipsrv]/2'
> ====CONSOLE LOG====
> 
> Is there some other way to dial a flash with the dial command? I notice
> there's a W to insert a wait sequence.


The problem with your example is that a flash must be executed after you
have a channel since otherwise there is no offhook event to then be
toggled by the on then off hook, you just would be off hook. Second,
look at the documentation for flash and you will see that the flash
command doesn't accept a argument.

As to how to actually accomplish what you want, I don't know how.  
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list