Questions tagged [dialplan]
54 questions
0
votes
1 answer
How do you write an Asterisk Dialpan to suspend 180-Ringing until after 183-progress in chan_sip?
I'm trying to write an Asterisk dialplan to suspend 180-Ringing until after 183-progress. What needs to happen in the dialplan to prevent this?
Below you can see the trace: The chan_sip driver sends "180 Ringing" and then immediately get a 503…

KJ7LNW
- 1,437
- 5
- 11
0
votes
1 answer
I need multiple execute php async and I should be shut down specific chanel when I want
Php File(demo.php);
#!/usr/bin/php -q

sha
- 1
- 2
0
votes
1 answer
Google-speech-api throws EOF error instead of performing audio transcription
In my project I am developing a websocket server in golang which is controlling asterisk channel via ARI and performing live audio transcription on the same channel with google-speech-api. On connection I want to save audio from an asterisk channel…

camilos
- 11
- 5
0
votes
1 answer
What is the Asterisk Dial() Option to Call Subroutine on "Ringing" Status Received from Called Party?
I need to execute AGI scripts when following events occur:
An incoming call (it is simple just call AGI() function).
When a call is "Ringing" (I cannot figure it out!). <-- Problem, how to do this?
When a call is "Answered" (I do it using…

Chitholian
- 432
- 1
- 10
- 19
0
votes
1 answer
Asterisk - setup hangup after seconds dialplan otpion S(sec)
When you dial 876, asterisk pbx start a call, send some dtmf code but doesn't close the call after 2 seconds.
The call need to be closed by the user.
[myplan]
exten => _876,1,NoOp(Now should call 207,3 seconds for answer timeout, send DTMF, close…

user2239318
- 2,578
- 7
- 28
- 50
0
votes
2 answers
Multiple Source Number in Call File Asterisk
i want to make call between 2 people which means i want to call the First person and if he answers it dials the second person's number.
First person has multiple numbers and it should dial each number one by one until one of them answers.
I'm using…

Marzie Keshavarz
- 21
- 7
0
votes
1 answer
Playing Multiple Sound Files
I would really like some help with this one.
I have a requirement to play an audio file, read the numeric values and end playing another audio file all on the one line, can this be done in the dialplan?
For example I want to be able to say.
You have…

Steven Sinfield
- 21
- 4
0
votes
3 answers
Asterisk block incoming call from matching number prefix
I am trying to make a dial plan to block incoming calls from any number starting with 88
Here is my dial plan
exten => _X.,1,NoOp(${CALLERID(num)})
same => n,Set(regx=^(88)[0-9]$)
same => n,GotoIf($[${REGEX("${regx}" ${CALLERID(num)})} =…

rohail dawood
- 11
- 4
0
votes
1 answer
Gotoif how to set it to allow a 3 or 4 digit response to meet the condition
Was wondering if anyone can help me currently I only accept 3 cvv numbers and I need to chage this to 4 but I can't find any where online how to put a range in this statement.
exten =>…

Steven Sinfield
- 21
- 4
0
votes
1 answer
Dialplan code error when redirecting calls
I have generated a dialplan, where you call one function or another, depending on what time you call.
My problem comes when it goes from morning shift to afternoon shift
Like i said earlier i create a time…

Infa
- 101
- 6
0
votes
2 answers
Asterisk. Get number of active calls in dialplan
I have production asterisk 16.4 with dialplan on LUA and two SIP providers. The first provider give me trunk with maximum 5 connections and the second provider give trunck with 20 connections. I prefer to use the first provider for outgoing calls…

user2248760
- 63
- 1
- 6
0
votes
1 answer
asterisk pbx realtime user with dynamic extensions
I have installed asterisk 16 on centos 8 with mysql and configured Realtime Sip with it what I am looking for is a way to have dialplan in my extensions so that anyone in that diaplan can call any extension without explicitly mentioning as mentioned…

user1492502
- 379
- 2
- 22
0
votes
2 answers
Storing an array of variables with quotes in dialplan
I've got an ODBC function that's pulling multiple values from my database and storing them in an array of variables. Later in the dialplan I'm using that variable, but all the double quote marks are getting removed – single quotes are untouched. If…

miken32
- 42,008
- 16
- 111
- 154
0
votes
1 answer
asterisk call from file
i want to use the call from file system.
the file.call looks like this:
;------------------------------------
Channel: Dongle/dongle0/07xxxxxxxx
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: testing
Extension: 07xxxxxxxx
CallerID:…

cfg
- 1
- 1
0
votes
1 answer
add pin conformation for outgoing call in asterisk 13
i want to add pin conformation for outgoing call in asterisk 13
before i implement this dial plan with asterisk 11. now i try it with asterisk 13. asterisk 13 in call always hangup
/etc/asterisk/extensions_custom.conf
[from-outgoinpin]
exten =>…

sachin kumara liyanage
- 514
- 5
- 11