[asterisk-users] Stumped with Dial
Anselm Martin Hoffmeister
anselm at hoffmeister-online.de
Sun Jan 14 19:04:13 MST 2007
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
More information about the asterisk-users
mailing list