VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
vincent.delporte at bi... Guest
|
Posted: Wed May 28, 2008 1:13 pm Post subject: [asterisk-users] [Extensions.conf] Interval + discrete exten |
|
|
Hello
We currently offer extensions 1-4, but we also need to add extension
9 so people can call an operator.
This is the first line for this section in extension.conf:
exten => _[1-4],1,Verbose(${CALLERID(name)} - ${CALLERID(num)})
Is this the right way to add extension 9?
exten => _[1-4,9],1,Verbose(${CALLERID(name)} - ${CALLERID(num)})
Thank you. |
|
Back to top |
|
|
tilghman at mail.jeffa... Guest
|
Posted: Wed May 28, 2008 1:29 pm Post subject: [asterisk-users] [Extensions.conf] Interval + discrete exten |
|
|
On Wednesday 28 May 2008 13:13:14 Vincent wrote:
Quote: | Hello
We currently offer extensions 1-4, but we also need to add extension
9 so people can call an operator.
This is the first line for this section in extension.conf:
exten => _[1-4],1,Verbose(${CALLERID(name)} - ${CALLERID(num)})
Is this the right way to add extension 9?
exten => _[1-4,9],1,Verbose(${CALLERID(name)} - ${CALLERID(num)})
|
You don't need the comma in there: _[1-49] is enough.
--
Tilghman |
|
Back to top |
|
|
asterisk.org at sedwar... Guest
|
Posted: Wed May 28, 2008 1:58 pm Post subject: [asterisk-users] [Extensions.conf] Interval + discrete exten |
|
|
On Wed, 28 May 2008, Tilghman Lesher wrote:
Quote: | On Wednesday 28 May 2008 13:13:14 Vincent wrote:
Quote: |
We currently offer extensions 1-4, but we also need to add extension
9 so people can call an operator.
Is this the right way to add extension 9?
exten => _[1-4,9],1,Verbose(${CALLERID(name)} - ${CALLERID(num)})
|
You don't need the comma in there: _[1-49] is enough.
|
Since "9" is for a different purpose than "1-4" you may want to start with
a separate exten like:
; call an operator
exten = 9,1, verbose(...)
exten = 9,n, dial(${OPERATOR},gr)
exten = 9,n, playback(nbdy-avail-to-take-call)
exten = 9,n, hangup()
You're going to need to "break out" "9" at some point. I find it makes the
dialplan more "robust" when you don't code in dependencies. I prefer my
code "dead obvious."
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000 |
|
Back to top |
|
|
vincent.delporte at bi... Guest
|
Posted: Wed May 28, 2008 5:03 pm Post subject: [asterisk-users] [Extensions.conf] Interval + discrete exten |
|
|
On Wed, 28 May 2008 11:58:54 -0700 (PDT), Steve Edwards
<asterisk.org at sedwards.com> wrote:
Quote: | Since "9" is for a different purpose than "1-4" you may want to start with
a separate exten like:
|
Thanks guys. |
|
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
|