Name

Gosub() — Branches to a new location, saving the return address

Synopsis

Gosub(context,extension,priority)
Gosub(extension,priority)
Gosub(priority)

Branches to the location specified, similar to Goto(), except that Gosub() saves the return location, to be returned to later by invoking Return().

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.