VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
hawat.thufir at gmail.com Guest
|
Posted: Sat Feb 21, 2015 9:56 pm Post subject: [asterisk-users] dialplan contexts syntax and terminology |
|
|
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@10.10.10.16:4569 ; IAX trunk interface
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk
interface
SIPtrunk=SIP/1234:PASSWORD@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 |
|
Back to top |
|
|
mitul at enterux.in Guest
|
Posted: Sat Feb 21, 2015 10:03 pm Post subject: [asterisk-users] dialplan contexts syntax and terminology |
|
|
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@enterux.in (mitul@enterux.in)
DID: +91-22-71967196
Cell: +91-9820332422
On Sun, Feb 22, 2015 at 8:25 AM, thufir <hawat.thufir@gmail.com (hawat.thufir@gmail.com)> wrote:
Quote: | 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@10.10.10.16:4569 ; IAX trunk interface
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ([email]1112223333%3APASSWORD@iax.binfone.com[/email]) ; IAX trunk
interface
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ([email]1234%3APASSWORD@sip.provider.net[/email]) ; 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
|
|
|
Back to top |
|
|
hawat.thufir at gmail.com Guest
|
Posted: Sun Feb 22, 2015 12:43 am Post subject: [asterisk-users] dialplan contexts syntax and terminology |
|
|
On Sun, 22 Feb 2015 08:32:26 +0530, Mitul Limbani wrote:
Quote: | READ READ READ ....
|
I know, I have the 4th edition and I've been reading it. Personally, I
find it more general than specific, but I'll go back through that
chapter, absolutely.
thanks,
Thufir
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
mitul at enterux.in Guest
|
Posted: Sun Feb 22, 2015 12:51 am Post subject: [asterisk-users] dialplan contexts syntax and terminology |
|
|
This one specifically
hawat.thufir@gmail.com (hawat.thufir@gmail.com)> wrote: Quote: | On Sun, 22 Feb 2015 08:32:26 +0530, Mitul Limbani wrote:
Quote: | READ READ READ ....
|
I know, I have the 4th edition and I've been reading it. Personally, I
find it more general than specific, but I'll go back through that
chapter, absolutely.
thanks,
Thufir
--
_____________________________________________________________________
-- 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
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|