Questions tagged [dialplan]
51 questions
2
votes
2 answers
Asterisk Dialplan: How to detect when a call has been successfully answered?
I'm having a really hard time figuring out if there is a trigger or a way to continue from the Dial action that allows you to detect if the call is answered. It seems like Dial doesn't respond until hangup, busy, or congested. What action or event…
Jb1128
- 57
- 1
- 7
1
vote
1 answer
Freeswitch - executing Shell script and save output
I am running FusionPBX 4.5.10 and Switch 1.10.1 (64bit) on Debian 9.
I am writing custom dialplan to excute sheel script using system application.
when i write this code it runs fine
but as…
Sohaib
- 13
- 3
1
vote
1 answer
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
- 35,483
- 13
- 81
- 108
1
vote
2 answers
How to get value of SIP header in Freeswitch?
I need to get value of CALLED_DID header and do some actions in dialplan, but i don't know how.
I've tried to use ${sip_h_CALLED_DID} but it's empty, because have no X- prefix before header name.
Is there any other method to extract value from SIP…
Sergey Khalitov
- 929
- 6
- 16
1
vote
2 answers
Need help getting Twilio X-Twilio-CallSid or X-Twilio-RecordingSid on outbound calls
We are logging calls along with Twilio's recording Sids to a database and since Asterisk only exposes Twilio's sip-headers to the dialplan on requests (as opposed to responses) we cannot get the headers X-Twilio-CallSid and X-Twilio-RecordingSid on…
leroyjenkinss24
- 364
- 1
- 8
1
vote
1 answer
Lua script in FreeSWITCH exits bridge immediately when bypass_media = true
How do I make the script wait for the bridge to terminate before continuing when I have "bypass_media" set to true?
This snippet -
freeswitch.consoleLog("err","session…
David Wylie
- 607
- 8
- 22
1
vote
1 answer
Asterisk 13.22.0 - No channel type registered for 'Agent' when queue rings
With the below config, I just keep gettings this in the Asterisk 13.22.0 CLI:
WARNING[15872][C-00000051]: channel.c:6343 ast_request: No channel type registered for 'Agent'
whenever a caller gets sent to that agent queue with logged in agents…
Stefan
- 111
- 1
- 10
1
vote
1 answer
Asterisk 13.22.0 - SHELL() function - does not pass multiple Asterisk variables
I've given up trying to use system() to call BASH scripts with parameters from Asterisk 13.
Turned out under Asterisk 13.22.0 System() DOES work, but only if you do NOT attempt to pass any parameters to the called script.
This works, and reliably…
Stefan
- 111
- 1
- 10
1
vote
0 answers
Asterisk 13.22.0 - "stat" dialplan function clears channel vars and doesn't function correctly
I have the following Asterisk 13.22.0 dialplan code that I use to play back recordings, the filename being provided in an originate statement to the AMI (AJAM) interface by my external application:
Action: Originate
ActionID: test
Channel:…
Stefan
- 111
- 1
- 10
1
vote
0 answers
Asterisk 13 - extensions.conf include not working when time range is specified, what is wrong?
Version: Asterisk 13.1.0~dfsg-1.1ubuntu4.1
seems, that includes without timerange are working without problems
if Time Range is specified "dialplan show 02175XXXXXX1@telekom_in" not showing this includes
all includes working fine, when timerange was…
Patric
- 35
- 7
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
- 350
- 1
- 5
- 14
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
- 1,891
- 5
- 20
- 39
0
votes
0 answers
Asterisk AGI python read dialplan variables and write results to asterisk
i have this basic python script {test.py} to read audio files and check if there is any sound in them or just blank (empty) and return results as below:
#!/usr/bin/python
import soundfile as np
import os
import sys
import shutil
from asterisk.agi…
Freegs Box
- 11
- 1
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
- 6
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
- 3