[asterisk-users] dialplan contexts syntax and terminology

Mitul Limbani
2015-02-22T03:02:26Z

READ READ READ ....

http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/asterisk-DP-Basics.html



Regards,
Mitul Limbani,
Business Head,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mitul at enterux.in
DID: +91-22-71967196
Cell: +91-9820332422


On Sun, Feb 22, 2015 at 8:25 AM, thufir <hawat.thufir at gmail.com> wrote:

> I'm looking into the dialplan specifics:
>
> tleilax:~ #
> tleilax:~ # cat /etc/asterisk/extensions.conf
> [general]
> static=yes
> writeprotect=no
>
> [globals]
> CONSOLE=Console/dsp                             ; Console interface for
> demo
> TRUNK=DAHDI/r1                                    ; Trunk interface
> TRUNKX=DAHDI/r2                                 ; 2nd trunk interface
> TRUNKIAX=IAX2/ASTtest1:test at 10.10.10.16:4569    ; IAX trunk interface
> TRUNKIAX1=IAX2/ASTtest1:test at 10.10.10.16:4569   ; IAX trunk interface
> TRUNKBINFONE=IAX2/1112223333:PASSWORD at iax.binfone.com   ; IAX trunk
> interface
> SIPtrunk=SIP/1234:PASSWORD at sip.provider.net     ; SIP trunk
>
> #include extensions-vicidial.conf
>
>
>
> Firstly, what language or format is this? Bash script?
>
> the line "#include ..." what is this called? An include
statement?
>
> The "[globals]" -- what's the terminology for this? It's
a context?  And
> a context is a logical separation in the dialplan?  Is that, in any way,
> analogous to a function or method?
>
> Once you create your this logical separation, what's the syntax
> surrounding invoking a specific context?  For example:
>
> tleilax:~ #
> tleilax:~ # tail /etc/asterisk/extensions-vicidial.conf
>
> [vicidial-auto]
> exten => h,1,AGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----
> NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----
> ${ANSWEREDTIME})
>
> include => vicidial-auto-internal
> include => vicidial-auto-phones
> include => vicidial-auto-external
>
>
> ; END OF FILE    Last Forced System Reload: 2015-02-20 16:49:28
> tleilax:~ #
>
>
> when the above contexts are included, these contexts are declared within
> the extensions-vicidial.conf, meaning that when they're declared,
they're
> not actually used/invoked/called **until** the actual "include =>
foo"
> syntax?
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20150222/64071cf4/attachment.html>