GosubIf()
GosubIf(Bedingung
?PrioWahr
:PrioFalsch
)
GotoIf()
unter einer bestimmten Bedingung
(siehe Expression) im Dialplan, erlaubt es dem
Unterprogramm aber, mit Return()
zurückzukehren.exten => telcid,1,Set(CALLERID(all)=Apfelmus <0123456780>) exten => telcid,n,Return() exten => faxcid,1,Set(CALLERID(all)=Apfelmus <0123456785>) exten => faxcid,n,Return() exten => _0.,1,GosubIf($[${CHANNEL:4:2} = 43]?faxcid,1:telcid,1) exten => _0.,n,Dial(${TRUNK}/${EXTEN:1},,T)
————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about application 'GosubIf' =-
[Synopsis]
Conditionally jump to label, saving return address
[Description]
GosubIf(condition?labeliftrue[:labeliffalse])
If the condition is true, then jump to labeliftrue. If false, jumps to
labeliffalse, if specified. In either case, a jump saves the return point
in the dialplan, to be returned to with a Return.
--- in Asterisk 1.2
+++ in Asterisk 1.4
@@ -1,7 +1,7 @@
-= Info about application 'GosubIf' =-
[Synopsis]
- Jump to label, saving return address
+ Conditionally jump to label, saving return address
[Description]
GosubIf(condition?labeliftrue[:labeliffalse])
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -4,7 +4,7 @@
Conditionally jump to label, saving return address
[Description]
- GosubIf(condition?labeliftrue[:labeliffalse])
- If the condition is true, then jump to labeliftrue. If false, jumps to
+ GosubIf(condition?labeliftrue[(arg1[,...])][:labeliffalse[(arg1[,...])]]):
+ If the condition is true, then jump to labeliftrue. If false, jumps to
labeliffalse, if specified. In either case, a jump saves the return point
in the dialplan, to be returned to with a Return.