Questions tagged [asterisk]
QUESTIONS REGARDING THE USE AND CONFIGURATION OF ASTERISK ARE OFF-TOPIC. Asterisk is a PBX software whose main aim is to route audio/video calls. It is released under a dual license: the GNU General Public License (GPL) and a commercial license.
2,879
questions
-1
votes
0
answers
14
views
How to transfer all data from asterisk to the new freepbx server? [closed]
I can't find the answer how to properly pull all the files from the old asterisk server and add them to the new freepbx server. Or how to install the freepbx GUI on asterisk?
I tried to transfer ...
0
votes
0
answers
32
views
PJSUA2 python swig module
I'm trying to write a simple SIP agent to receive a call using PJSUA2 python swig module, but can't see how this swig module works. I've got the following code
import pjsua2 as pj
import time
class ...
0
votes
1
answer
26
views
How to set dial options in Asterisk callfile
I'm already making calls from file, but I want to put TtM(MyMacro) dial options. The call file haves these properties:
$callFileOptions = "Channel: SIP/Algar_AMD/$phoneNumber
\...
0
votes
0
answers
53
views
Blind Call Transfer in Asterisk | ari-client (Node.js)
Precise overview about the flow:
I am calling my initial extension(100) using Zoiper through Twilio sip domain using Zoiper as soft phone which actually direct the call to my asterisk server.
Now when ...
0
votes
1
answer
45
views
Making a call from one extension(100) to another extension(200) through ari-client (Node.js)
Precise overview about the flow:
I am calling my initial extension(100) using Zoiper through Twilio sip domain which actually direct the call to my asterisk server.
Now when my call is in asterisk ...
0
votes
0
answers
33
views
Add PJSIP header on inbound channel
I am trying to add PJSIP header in asterisk in node.js but headers are not setting.
await new Promise((resolve, reject) => {
incoming.setChannelVar(
{variable: 'PJSIP_HEADER(add,X-...
0
votes
1
answer
74
views
run a macro on dial cmd Asterisk 18
i want run a macro on dial cmd,
this is my macro `
[macro-subrao]
exten => s,1,AMD()
exten => s,n,Set(RAO=${AMDSTATUS})
`
this is my dialplan
`
exten => _+33.,n,Set(FILENAME=${EXTEN}_${...
0
votes
0
answers
35
views
How to stream back audio using External Media Channel using ARI in asterisk
Working with AsterNET.ARI I am able to expose audio stream from asterisk, using ExternalMedia.
Scenario:
Call is started and Stasis App is invoked
Create ExternalMediaChannel that sends stream to a ...
1
vote
1
answer
210
views
Asterisk ARI Caller id is always Anonymous
I'm trying to make a outgoing call using asterisk and stasis.
From my app, i send a simple post to /ari/channels/create, like this:
params = {
endpoint: `PJSIP/${trunkPrefix}${numberOriginal}@${...
0
votes
1
answer
133
views
variables in extensions_custom.conf
I am using Queues to handle incoming calls which works pretty well.
What I would like to do now is to get the info which extensions has answered a call in "sub-queue-answer" context of ...
0
votes
1
answer
288
views
Laravel - listening for specific Asterisk events using Marcelog Pami
I'm building application in Laravel 8. In application I need to receive event from Asterisk. To do that I downloaded Pami package.
In app\Listeners folder I created file AmiTestListener.php for ...
-1
votes
1
answer
213
views
Asterisk extension, conditional execution?
I have an this extension in file /etc/asterisk/extensions_custom.conf:
exten => _XXXX,1,NoOp("-- from internal custom --")
exten => _XXXX,n,Set(CURL_RESULT=${CURL(https://your....
0
votes
2
answers
190
views
Asterisk Freepbx - hide external number on user's display after forwarding
For some reason I can not find the necessary information on the Internet.
Subscriber A has set forwarding to an external number (output to the city goes through a sip trunk). I want this external ...
-1
votes
1
answer
67
views
Browsing through multiple audio files for playback on Asterisk dialplan
I'm trying to make a voicemail system on Asterisk 16, FreePBX 16 and CentOS 7 that lets people browse and choose from a list of prerecorded audio files. When the caller enters the menu to select the ...
-1
votes
1
answer
113
views
Can Dynamic Feature 'playmonkeys' play audio to both channels?
How can I get the audio from the DYNAMIC_FEATURES "playmonkeys" to play on both channels at the same time? Not just the opposite channel.
playmonkeys => #9,peer,Playback,tt-monkeys ;...
-1
votes
2
answers
66
views
How can I use the ExecIf function in Asterisk so that for each subscriber I can set a list of subscribers with whom he can call?
exten => 1001,1,Dial(SIP/${EXTEN},15)
exten => 1001,2,VoiceMail(${EXTEN})
exten => 1001,3,MeetMe(${EXTEN})
exten => 1001,n,Hangup()
exten => 1002,1,Dial(SIP/${EXTEN},15)
exten => ...
-1
votes
1
answer
197
views
Asterisk Originate a muted call
i have a script that start a call from some channels in my asterisk
this scripts runs the folowing commands:
channel originate SIP/11 extension 800@from-internal
channel originate SIP/12 extension 800@...
1
vote
1
answer
518
views
Asterisk AMI Event AgentComplete is incomplete
I'm using AMi to connect to my Asterisk box (18.6.0) and capture some events that i need to process. In particular i need to capture two events, when an agent answer a call in a queue, for this i'm ...
0
votes
1
answer
516
views
how to play background music in Asterisk AGI while some process is Going on in background to remove the silence during execution
I am using python 2 in asterisk 2 there is a section where code listen to callers audio and process the audio. During the process there is a silence of 15 sec before the audio is played. I want to add ...
-1
votes
1
answer
515
views
How to redirect call from one Asterisk server to another to specific extension? IAX2
I got 2 Asterisk servers and i want to connect them with IAX2 protocol. Somehow i manage with this and i can redirect calls from one server to another on particular SIP device.
Like this.
exten = ...
0
votes
1
answer
37
views
Finding Keyed Numbers in Asterisk server
How can I get the numbers keyed by the user on Asterisk. There is an example I made, but I could not succeed in printing.
[customer]
exten => 100,1,NoOp(Test)
same => n,Read(DIGITSRESULT,/path/...
-1
votes
1
answer
70
views
how to exec a command when receive "200 ok" from b-leg in asterisk dialplan?
In Asterisk v13.38.3, I want to exec a command when receive "200 ok" from b-leg in dialplan, I try to use Dial(,,M), this:
same => n,Dial(SIP/...,,M(BLeg-Answer^${ARG}))
but BLeg-Answer ...
0
votes
1
answer
416
views
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 ...
1
vote
1
answer
138
views
Is there any way to do conference call with dial option using java OriginateAction
This is happening right now
step1: A party Calling using OriginateAction and not passing dialoptions like tTG so that channel do not have transfer functionality.
step2: B party Calling using dail() ...
0
votes
1
answer
152
views
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
<?php
set_time_limit(0);
ini_set('max_execution_time', 0);
require('phpagi.php');
$agi = new AGI();
$timeParameter = $argv[1];
$agi-&...
0
votes
1
answer
302
views
my execif variable ignored in Asterisk dialplan
For Extension 4111 I want to rewrite the caller id, if is 4111 must become 4442
I put this in dialplan reload and..is ignored.
Why?
exten => 4111,1,ExecIf($["${CALLERID(num)}" = "...
0
votes
1
answer
656
views
Asterisk: rewrite set Caller id if number is "number" and multiple conditions
I need to rewrite a Caller id: this code seems to work
but I want to set it for a multiple condition(for example, if number is 1005 rewrite to 383838, if number is 1006 then rewrite to 848481, etc)
...
2
votes
1
answer
112
views
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-...
1
vote
1
answer
560
views
After recording with mixmonitor, run the AGI script and POST the wav to another server via CURL
I want to start an AGI script after transferring a phone call with Asterisk and recording it with mixmonitor, and POST the wav to another server via CURL, but the extensions.conf I created does not ...
1
vote
1
answer
272
views
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 ...
1
vote
0
answers
331
views
Asterisk EAGI audio while running AMD or other asterisk app via "EXEC"
Is it possible to use "AMD" to detect silence in EAGI script and receive the audio on fd 3 at the same time?
Is this scenario supported or I am doing something wrong?
Simple demonstration ...
1
vote
1
answer
155
views
Asterisk use say with new mode
How do i use the new mode with say.conf?
I put in my dialplan same => n,Playback(num:55|say) but i get the following errors
[Aug 24 15:12:28] WARNING[2054461][C-000001a6]: file.c:789 ...
1
vote
1
answer
540
views
Asterisk Hangup caller after answered's hangup
Hello my èxtensions_conf`, this is a queue;
exten => 1,1,NoOp(call for call center)
same => n,Set(__OTHERCHANNEL=${CHANNEL})
;same => n,Set(CHANNEL(...
-2
votes
1
answer
401
views
google speech is not working in asterisk ivr
In asterisk i am using speech recognition from google cloud like this given below :
[inboundtest]
exten = 111,1,Answer()
same=n,agi(googletts.agi,"Say something in English, when done press the ...
1
vote
2
answers
323
views
Compiling wanpipe driver on kernel 5.11
I'm trying to compile Sangoma's wanpipe driver v7.0.32 on Ubuntu 21.04 with kernel v5.11 for use with my A200 telephony card. The driver was written to support kernel 5.8. I have successfully built ...
1
vote
1
answer
222
views
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 ...
0
votes
1
answer
971
views
Start call using Originate with a custom callerid on Asterisk
Try to making a simple dialer with NodeJS. Want to start a call with originate command using AMI, then move this call to a queue. Asterisk takes care of the rest. With the following command, i can do ...
1
vote
1
answer
2k
views
Asterisk GoSub() function not working for me
I am trying to make calls between extensions 101 and 102 and is NOT going through. I have the following extensions.conf file
[general]
autofallthrough=no
priorityjumping=yes
static=yes
writeprotect=no
...
2
votes
1
answer
1k
views
Asterisk AMI events sometimes missing
I have a Python service which connects to Asterisk via AMI and listens for events to detect when a call has begun.
This seems to work on most of the Asterisk servers I connect to. However, on a few ...
0
votes
1
answer
534
views
Asterisk hangup-handler
I am new to Asterisk.
I am trying to define a hangup-handler for a survey.
The survey needs to be activated after the agent hangs up the call.
I put that to my [macro-queue] context,
exten => s,n,...
0
votes
1
answer
248
views
Cant trigger python 3 code with asterisk AGI even on using subprocess inside python2
I am running a python2 code which is triggered by dial plan. In order to process saved recording I need to run a python 3 script. Is there any way to do it. If I am switching the code to python3 the ...
0
votes
1
answer
571
views
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 ...
2
votes
1
answer
599
views
Asterisk - macro GotoIf or operator
Asterisk 16.13.0
Want to switch action between (primo, secondo, terzo and bo) based on the caller number.
[macro-gigi]
exten => s,1,NoOp(macro-gigi: ${CALLERID(num)} - ${CALLERID(all)} - ${...
0
votes
1
answer
715
views
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 ...
0
votes
1
answer
462
views
Python script to detect blank audio files
I know so many topics have talked about silence detection, but I didn't find something that meets what I really need.
I'm working on an asterisk project, for inbound calls being recorded for the first ...
1
vote
0
answers
7k
views
How to configure on asterisk trunk PJSIP<->SIP?
I've got a problem with configure trunk on asterisk with PJSIP(IP:X.X.X.X) to SIP-server(IP:Y.Y.Y.Y).
I want to configure trunk by IP not with user:pass.
On SIP-server i have config in sip.conf file ...
0
votes
2
answers
81
views
Continue executer next extension of contexte after dial call
I would like to continue executing the next extension of the below contexte after dial() call is answered.
[sondage-80]
exten => 78767239,1,Answer(500)
same => 2, Set(CHANNEL(language)=moore)
...
0
votes
1
answer
211
views
What should be the value of ARGS in pyst2(python asterisk library)?
>>>from asterisk.agi import *
>>>agi = AGI() #after execute this, below thing poped
>>>ARGS: ['']
ENV LINE:
>>>class AGI: self.env = {}
I just import pyst2's agi ...
-1
votes
2
answers
519
views
What should my path if I am using python venv?
I use python 3.6.9 and asterisk 16.16.0 in Ubuntu 18.04.
If you know about AGI then you probably know about this line
#!/usr/bin/python
or this
#!/usr/bin/env python
if not then don't worry its tells ...
-1
votes
1
answer
110
views
How to make a change in the VoiceMail Asterisk 11
New to asterisk, and have to support an old installation. If I need to change the voicemail options, is the only way to change the ./usr/local/src/asterisk/apps/app_voicemail.c file?
After changing ...