Gosub()Gosub([[Context,]Extension,]Priorität)
Gosub(benannte_Priorität)Goto() im Dialplan, erlaubt es dem
Unterprogramm aber, mit Return() zurückzukehren.exten => 123,1,Gosub(cid-setzen)
exten => 123,n,Dial(SIP/${EXTEN})
exten => 123,10(cid-setzen),Set(CALLERID(all)=Apfelmus GmbH <012345678>)
exten => 123,n,Return()————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about application 'Gosub' =-
[Synopsis]
Jump to label, saving return address
[Description]
Gosub([[context|]exten|]priority)
Jumps to the label specified, saving the return address.--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -4,5 +4,5 @@
Jump to label, saving return address
[Description]
- Gosub([[context|]exten|]priority)
- Jumps to the label specified, saving the return address.
+ Gosub([[context,]exten,]priority[(arg1[,...][,argN])]):
+ Jumps to the label specified, saving the return address.