Displaying 20 results from an estimated 1000 matches similar to: "Extended logic syntax"
2003 Oct 23
1
agi script forcing asterisk reload
Hi. I am using #include to include a file in extensions.conf. I have an agi perl script which modifies the #included file and then forces an asterisk reload with 'system("asterisk -rx reload")';
After the reload I use set_context, set_extension and set_priority to tell asterisk where I want it to carry on from which is line 2 of the following.
exten => *80,1,AGI(bla.pl,
2004 Oct 05
1
difference between dtmf digit 8 and 9
Hello,
this is an example extensions.conf.
[default]
exten => 500,1,Answer
exten => 8,1,SetGlobalVar(firstdigit=8)
exten => 8,2,Goto(process,s,1)
exten => 9,1,SetGlobalVar(firstdigit=9)
exten => 9,2,Goto(process,s,1)
I call extension 500 and send dtmf digit 9. This is printed to the
CLI:
-- Executing Answer("Zap/20-1", "") in new stack
-- Accepting
2006 Mar 07
1
Setting Vaaibles
Helo List,
First I would like to apologize for my bad spelling as
well as that I did not search the wiki first. I only
have email access at the moment.
I am having trouble setting both variables and global
variables thru an extension.
I am using Asterisk 1.2.4 with Ztdummy on CentOS 3.4
with an Xlite softphone. I have two xlite phones on
diffent computers. One logs in as xlite1 and the other
as
2009 Feb 04
1
Issue with template.pp
Hi i am creating a template.pp for different OS.. Following is my
template.pp file
node basenode {
case $operatingsystem {
fedora: { include fedora }
default: { include debian }
}
include baseapps, sshd, admin, default
} <=== line 7
node default inherits basenode {}
I receive an error.
err: Could not parse for environment production: Syntax error
2006 May 22
1
behaviour depending on count of used lines
Hi there,
I want to set up an extension set that acts different depending on the count
of used lines. I have a EuroISDN E1 board with mISDN and I only want to offer
10 lines. Therefore I set up a global variables LINES in the general section
of extensions.conf and instantiate it with 0. I a call is incoming I check
the LINES variable wether is 10 or more. If so I make a call transfer. If not
2014 Feb 07
1
Remove cancelled timeslots from "Past Office Hours" section on "OfficeHours" page
Dear all,
In order to reduce clutter, may I suggest that cancelled timeslots be
removed from the "Past Office Hours" section of the "OfficeHours" wiki page?
Also, I noticed that the URL for 20th Jan 2014 event is missing.
Regards,
Timothy Lee
2009 May 20
1
Macro with DIALSTATUS
Hi,
I am trying to pass DIALSTATUS to a Macro so that i can set a
variable when a call is placed (call is placed via a call file to
another extension first). Basically i don't want to dial a number
where a call is already bridged and thats why i am setting a variable.
[macro-afterdial];
exten => s,1,Goto(s-${ARG1},1)
exten => s-ANSWER,1,SetGlobalVar(NUM${ARG2} = "ACTIVE")
2005 Mar 17
3
Undocumented "exten" syntax?
Over at http://www.voip-info.org/wiki-Asterisk+tips+911, I see these
extensions.conf lines:
exten => s,1,SetVar(SET_EMERG_FLAG=0)
exten => s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK})
exten => s,n,SetGlobalVar(EMERGENCY=1)
exten => s,n,SetVar(SET_EMERG_FLAG=1)
exten => s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM})
exten => s,s+2(trunkbusy),GotoIf($[${EMERGENCY} =
2013 Nov 27
3
issue with speech in IVR
hello list
i have an IVR menu in asterisk 1.4
like below
exten => 600,1,Ringing()
exten => 600,n,Wait(2)
exten => 600,n,Goto(home,s,1)
[home]
exten => s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/)
exten => s,n,Background(${sounds_path}music1)
exten => s,n,Background(${sounds_path}music2)
exten => s,n,Background(${sounds_path}music3)
exten =>
2003 Dec 14
1
Error loading modem driver
When I attempt to start asterisk with my modem setup listed it will not start
attached are the error messages i get and also the modem.conf that i am currently using. Any assistance would be greatly appreciated.
running CVS ver 12/7/03, modified only to allow the RxFax and TxFax to compile and run with it (from http://www.opencall.org)
just e-mail me privately if you need more info
Thanks in
2011 Mar 22
2
Play different voice-mail messages based on certain conditions
Hello List,
I have few installations out there based on 1.6.1 or above.
I'm trying to play different voice mail messages based on certain criteria's. For example, I want during office hours to play (in short): "we are not available to take your call, please leave a message", during off-hours and weekends I would play: "we are closed, our opening hours xx:xx-yy:yy, please
2003 Oct 14
3
use of SIP SHOW CHANNELS question
I am trying to figure out the correct syntax for the CLI command "SIP SHOW CHANNELS". I have tried
SIP SHOW CHANNELS SIP/200 and I've even tried to do this when a call is connected such as:
-- Zap/15-1 is ringing
-- Zap/15-1 answered SIP/206-4299
asterisk*CLI> sip show channel SIP/206-4299
No such SIP Call ID 'SIP/206-4299'
I always get the "No such SIP
2015 Dec 04
3
Running sshd with Privilege Seperation drops connection on password change
Hi folks,
I came across this issue on both stock CentOS(v6.4) and Ubuntu(14.04 LTS) and was wondering if any of you have seen it.
As far as I can tell this seems like a day-1 bug to me.
PROBLEM:
If I expire a linux user's password (passwd -e <user>) and then log in via ssh, it will prompt you for a password change.
On changing the password successfully, sshd will drop the connection
2003 Nov 07
7
CDR fields
hi,
i saw the cdr file called Master.csv and i want to
know what these represent. examples
"","","4","incoming","","Zap/1-1","Zap/4-1","Voicemail","u8888","2003-11-07
17:43:04","2003-11-07 17:43:04","2003-11-07
17:43:22","ANSWERED","DOCUMENTATION"
2003 Dec 04
4
Channelbank Recomendation and GS102 question
Hi All.
I'm working on an * configuration. We require 8 inbound POTS lines, and
CT1 or PRI seems like it will be
quite expensive at that level. I've read that a T1 Channelbank plus
the T100P would be a (the?) way to go
for this situation. What is the recommended channelbank for use in this
scenario? From searching the archives
I see a lot of suggestions to get "a
2003 Oct 13
1
AGI solution to Grandstream BT102 call waiting problem
I'm trying to fix a problem with the GrandStream Budgetone 102. I've been reading the source code, mailing lists and other resources. Here's the scenario and the approach I have been pursuing. I'm having some problems with the AGI calls and I hope someone can give me some clarification.
PSTN <---> T1,PRI * <---> Grandstream BT 102 (12)
2009 Jun 01
2
extensions not being detected consistently
G'afternoon everybody,
I'm having a problem with consistently being able to ring our extensions
from an outside line. I don't have a problem reaching the number, but
during our calls to Background(msg) that I am having a problem. It seems
to be an issue with timing. If I press the extension towards the end of
the Background(msg) the it often works. However, in the middle of the
2005 Feb 18
3
Help asterisk startup errors
Hello all,
HI i am very new to asterisk and my boss needs me to investigate setting
up asterisk for a new client. I have downloaded and installed (make,
make install and make progdocs)asterisk on my personal computer and
when i try to run it (./asterisk -vvvc) i get the following output
below:
NOTE: i am running REDHAT 9.0 on a 796MHz cpu machine:
I am excited to be able to work with asterisk
2005 Feb 12
0
Outbound calls on a busy Zap/1: BUSY vs. CHANUNAVAIL
Hi,
I'm using the macro below in extensions.conf for most of my outbound
calls. One issue with my current configuration is that when I make an
outbound call it doesn't properly detect that my PSTN line (Zap/1) is
busy with another call and then overflow to my outbound IAX
connections. I think the root cause is that DIALSTATUS gets reported
as BUSY. The debug output is below. My desired
2005 Jun 24
2
Set global variables without extension..
Is it at all possible to set a Global Variable freely whenever a context gets used without having to enter an extension priority to use SetGlobalVar? This is really limiting the dialplan for me. Heres an example of what I would like to be able to do.
[globals]
AREACODE=
[local]
exten=_NXXXXXX,1,Dial(SIP/${AREACODE}${EXTEN}/blah)
[anyoldcontext1]
AREACODE=313
include=local
[anyoldcontext2]