[asterisk-users] Stumped with Dial

chester c young chestercyoung at yahoo.com
Sun Jan 14 19:36:38 MST 2007


--- Anselm Martin Hoffmeister <anselm at hoffmeister-online.de> wrote:

> Am Sonntag, den 14.01.2007, 17:13 -0800 schrieb chester c young:
> > cannot make Dial(...,,g) work correctly, although Dial(...,,gh)
> works
> > just fine.  (to make matters worse, it does seem to work sometimes,
> > although once working or not working between changes it either
> works or
> > doesn't work all the time.)
> 
> For me,
> 
> exten => 990,1,Dial(SIP/sip502,60,gro)
> exten => 990,2,Playback(special/monkeys)
> exten => 990,3,Hangup
> 
> does what I would expect, and it seems reliable:
> Sip phone 502 rings, after taking the call there and hanging up, the
> caller gets the monkeys file.
> 
> I use the "ro" here because it seems that makes Asterisk behave as I
> want it; "ro" should not be relevant for the "g".
> 
> It does not to work though if I do not specify a timeout (60 in my
> case)...
> 
> You can use the DIALSTATUS variable afterwards to find out wether a
> call
> had taken place, something like
> 
> exten => 990,3,GotoIf($[X${DIALSTATUS} = XANSWER]?10)
> exten => 990,10,NoOp(Call had been answered)
> 
> and do some dialplan magic :)
> 
> BR
> Anselm
> 

thanks, but tried gro and even Playback instead of Noop after the Dial
- still no luck.  it's placing the call to a pstn thru an aix.


 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 


More information about the asterisk-users mailing list