Questions tagged [dialplan]
54 questions
3
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
- 87
- 2
- 10
2
votes
1 answer
how to get variable value from asterisk with asternet
I use the asterNet for manage event IN asterisk.
I need to get value of variable (result) in c# from dialplan query.
exten => test,1, NoOp(************ test ****************);
same => n,Answer();
same => n,Playback(hellow-world);
same =>…

AminRostami
- 2,585
- 3
- 29
- 45
2
votes
1 answer
Asterisk GOTOIf Command not hitting branch correctly
This is the code in my .conf file for asterisk freepbx I know for sure blocked is true
same => n,Noop(${Blocked})
same => n,GotoIf($["${Blocked}"=="TRUE"]?blah-ivr-v5-difficulties,s,1)
same => n,Noop("The code reaches here and doesnt hit the context…

M Suhayl
- 27
- 5
2
votes
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
- 472
- 3
- 8
1
vote
1 answer
Asterisk 11 match destination extension in macro
Long story short: Fanvil phones don't allow you to change microphone volume (that is too low).
I've created this custom macro, but cannot match the case the phone (exten 131) is receiving a call, it work only when it make a…

user2239318
- 2,578
- 7
- 28
- 50
1
vote
1 answer
IVR Asterisk Dial Plan goes indefinite for invalid key press
I'm doing Asterisk Dial Plan in extensions.conf.
I am creating a simple IVR in which invalid key press by customer should repeat only two times. After that it should disconnect.
But here loop goes indefinite.
[ivr1]
exten =>…

Senthil Kumar
- 31
- 3
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
- 4
1
vote
3 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
- 987
- 7
- 17
1
vote
1 answer
Free Switch with 10+ digit regex validation?
When we install Free-Switch... by default we will get 20 endpoints (1000.xml to 1019.xml).
If we want to create our own endpoints like +919885098850 or +16308045480. How can we do that?
Instead of creating static endpoints inside Free-Switch...…

Cherry
- 699
- 1
- 7
- 20
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
- 637
- 1
- 8
- 24
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
- 316
- 2
- 16
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
- 316
- 2
- 16
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
- 316
- 2
- 16
0
votes
0 answers
Freeswitch Hangup issue
I run a Python script that plays iVR and bridges to the available extension (agent) in my freeswitch. It functions correctly, but when the customer or agent hangs up, the call is still in an active position when I check show calls. My best…
0
votes
0 answers
Call forwarding
Okay so the problem here is I've been trying to find a dialplan for call forwarding but so far I've found only one on the official site, I configured it according to my requirement but it doesn't work, the call forward number is set but, the call…

Meet Patankar
- 1
- 1