<div dir="ltr">READ READ READ ....<div><br></div><div><a href="http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/asterisk-DP-Basics.html">http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/asterisk-DP-Basics.html</a><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Regards,<br>Mitul Limbani,<br>Business Head,<br>Enterux Solutions Pvt. Ltd.<br>110 Reena Complex, Opp. Nathani Steel, <br>Vidyavihar (W), Mumbai - 400 086. India<br><a href="http://www.enterux.com/" target="_blank">http://www.enterux.com/</a><br><a href="http://www.entvoice.com/" target="_blank">http://www.entvoice.com/</a><br>email: <a href="mailto:mitul@enterux.in" target="_blank">mitul@enterux.in</a><br>DID: +91-22-71967196<br>Cell: +91-9820332422<br><br></div></div></div>
<br><div class="gmail_quote">On Sun, Feb 22, 2015 at 8:25 AM, thufir <span dir="ltr"><<a href="mailto:hawat.thufir@gmail.com" target="_blank">hawat.thufir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm looking into the dialplan specifics:<br>
<br>
tleilax:~ #<br>
tleilax:~ # cat /etc/asterisk/extensions.conf<br>
[general]<br>
static=yes<br>
writeprotect=no<br>
<br>
[globals]<br>
CONSOLE=Console/dsp                             ; Console interface for<br>
demo<br>
TRUNK=DAHDI/r1                                    ; Trunk interface<br>
TRUNKX=DAHDI/r2                                 ; 2nd trunk interface<br>
TRUNKIAX=IAX2/<a href="http://ASTtest1:test@10.10.10.16:4569" target="_blank">ASTtest1:test@10.10.10.16:4569</a>    ; IAX trunk interface<br>
TRUNKIAX1=IAX2/<a href="http://ASTtest1:test@10.10.10.16:4569" target="_blank">ASTtest1:test@10.10.10.16:4569</a>   ; IAX trunk interface<br>
TRUNKBINFONE=IAX2/<a href="mailto:1112223333%3APASSWORD@iax.binfone.com">1112223333:PASSWORD@iax.binfone.com</a>   ; IAX trunk<br>
interface<br>
SIPtrunk=SIP/<a href="mailto:1234%3APASSWORD@sip.provider.net">1234:PASSWORD@sip.provider.net</a>     ; SIP trunk<br>
<br>
#include extensions-vicidial.conf<br>
<br>
<br>
<br>
Firstly, what language or format is this? Bash script?<br>
<br>
the line "#include ..." what is this called? An include statement?<br>
<br>
The "[globals]" -- what's the terminology for this? It's a context?  And<br>
a context is a logical separation in the dialplan?  Is that, in any way,<br>
analogous to a function or method?<br>
<br>
Once you create your this logical separation, what's the syntax<br>
surrounding invoking a specific context?  For example:<br>
<br>
tleilax:~ #<br>
tleilax:~ # tail /etc/asterisk/extensions-vicidial.conf<br>
<br>
[vicidial-auto]<br>
exten => h,1,AGI(agi://<a href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----" target="_blank">127.0.0.1:4577/call_log--HVcauses--PRI-----</a><br>
NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----<br>
${ANSWEREDTIME})<br>
<br>
include => vicidial-auto-internal<br>
include => vicidial-auto-phones<br>
include => vicidial-auto-external<br>
<br>
<br>
; END OF FILE    Last Forced System Reload: 2015-02-20 16:49:28<br>
tleilax:~ #<br>
<br>
<br>
when the above contexts are included, these contexts are declared within<br>
the extensions-vicidial.conf, meaning that when they're declared, they're<br>
not actually used/invoked/called **until** the actual "include => foo"<br>
syntax?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></span></blockquote></div><br></div>