Questions tagged [asterisk]

Asterisk is a software PBX used to route audio and video calls. QUESTIONS REGARDING THE USE AND CONFIGURATION OF ASTERISK ARE OFF-TOPIC. Only programming questions are on-topic for Stack Overflow. For example: dialplan configuration in extensions.conf, interfacing with Asterisk's C APIs, or working with AGI scripts.

Asterisk is a Private Branch eXchange (PBX) software; its main aim is to route audio and video calls, but it supports the creation of services like voicemail, Interactive Voice Responders (IVR), least-cost routing (LCR) etc.

Asterisk supports different Voice over IP (VoIP) protocols - like SIP, IAX2, H.323 - and can be integrated with traditional telephony equipment and networks - like analog networks, ISDN BRI/PRI, GSM/UMTS.

Its behavior can be programmed using Asterisk Extension Language (AEL) or a legacy dialplan syntax, and it exposes various APIs (including HTTP APIs) for run-time interaction with other programs and servers. External scripts can be called via the Asterisk Gateway Interface (AGI.)

As Stack Overflow is a programming site, questions tagged must relate to the topic of programming. Such topics may include (but are not limited to):

  • Dialplan programming using traditional syntax or AEL
  • Connecting to Asterisk via API interfaces
  • Writing and calling AGI scripts
  • Work on the Asterisk codebase itself

Questions concerning the following topics are off-topic for Stack Overflow and may be better suited for another site such as Server Fault or Super User:

  • Asterisk configuration
  • Hardware interface problems
  • Asterisk GUIs such as FreePBX
  • Call quality issues (e.g. one-way audio)

Important links:

2895 questions
4
votes
2 answers

Originate a call with Asterisk - without the originating extension ringing

I have a completely standard installation of Trixbox with 2 SIP extensions set up on it. Both extensions are Snom 370 SIP phones. I can originate a call from one extension to the other using the following CLI command: originate sip/101 extension…
Roland
  • 146
  • 1
  • 1
  • 6
4
votes
6 answers

Python and Asterisk

Has anyone successfully used a Python API to connect to Asterisk AMI? Maybe Starpy or py-asterisk, or even FATS? If so can you please display examples or point to a link? There seems to be very little documentation regarding the Python APIs.
pdtpatrick
  • 175
  • 2
  • 8
4
votes
1 answer

Asterisk- How to 'whisper' music using ChanSpy(), or any alternative?

I intend to 'whisper' music/message file to one of the conference participants without making this message audible to other conference participants. I went through Audio Manipulation chapter in Asterisk Cookbook…
jeff musk
  • 1,032
  • 1
  • 10
  • 31
4
votes
1 answer

Watch active channels from remote machine into Asterisk

We would like to remotely monitor an Asterisk system for a conference call system managed from web frontend. We can get the terminated calls from the CDR table, and we know that it is possible to execute some CLI commands to locally monitor the…
Yanick Rochon
  • 51,409
  • 25
  • 133
  • 214
4
votes
2 answers

webRTC how to tell if there is audio

I am using WebRTC with Asterisk, and getting an error about 5% of the time where there is no audio due to an error with signaling. The simple fix is if there is no audio coming through, then stop the connection and try again. I know this is a…
Samuel Thompson
  • 2,429
  • 4
  • 24
  • 34
4
votes
3 answers

How to allow inbound calls in pjsip and Asterisk 13?

I have configured Asterisk 13.13.1 with PJProject 2.5.5 and enable PJSIP as SIP driver (without compiling chan_sip). I have the fully configured system and it's working but I have some problems with incoming calls. I have few numbers connected with…
user3025978
  • 477
  • 2
  • 8
  • 27
4
votes
3 answers

Unable to quit Asterisk CLI using exit or quit

I started Asterisk CLI with the below command: asterisk -vvvvvvc When I try to exit CLI using exit or quit, I see the errors below: *CLI> exit No such command 'exit' (type 'core show help exit' for other possible commands) *CLI> quit No such…
Blesson Jose
  • 698
  • 9
  • 14
4
votes
1 answer

Building channels/trunks between two Asterisk servers with PJSIP

the new asterisk versions (>13) use the PJSIP module instead of chan_sip. What I'm missing so far are practical examples how to use the PJSIP lib properly with asterisk. What I want to do is the following: I have two, three or more asterisk servers…
Ovomaltine
  • 191
  • 1
  • 8
4
votes
2 answers

What is the most up to date Python asterisk AGI framework for asterisk?

I have done some AGI development in the past with PERL and PHP, but my current project is using Python. I have found the frameworks listed here: http://www.voip-info.org/wiki/view/Asterisk+AGI , but they are all pretty old and do not seem kept up…
Ketema
  • 6,108
  • 3
  • 21
  • 24
4
votes
1 answer

Integrating Asterisk with WebRTC - ground up

I am trying to integrate Asterisk with webRTC. There was a query posted here but it barely provides any solution. I already have a basic webRTC infrastructure in place which I have tested for proof-of-concept. I use socket.io for signalling, COTURN…
Sunny
  • 9,245
  • 10
  • 49
  • 79
4
votes
2 answers

Direct Media and Direct RTP Setup in Asteisk

I want to set direct peer to peer media setup in asterisk I used directrtpsetup=yes Also I want to achieve it without re-Invite.So I use this parameter.In sip.conf its written that it works without re-Invite,But its not working for me.Any one…
snirali
  • 139
  • 1
  • 4
  • 11
4
votes
3 answers

How to increase volume level of sip calls in asterisk?

I want to increase volume level of calls in asterisk.I tried with VOLUME function but it doesn't change. I am using asterisk 11.
soni8010
  • 385
  • 1
  • 6
  • 19
4
votes
2 answers

mysql or perl function to match asterisk dialplan pattern

I have an old version of freePBX (over 5000 extensions, hundreds of IVRs) that I must document for migration to newer version. I must map what IVRs use which trunks. To do this, I must match the number being dialed to the dial pattern of the…
jerryrig
  • 125
  • 11
4
votes
1 answer

Configure Asterisk as SIP outbound proxy (as a SIP server relay)

I just installed an Asterisk and i would like to configure Asterisk as a SIP server relay. I already have a SIP server but this one doesn't accept directly Web Sockets (wss) connections. The purpose is to have a web client which use SIPJS library :…
wawanopoulos
  • 9,614
  • 31
  • 111
  • 166
4
votes
2 answers

Get Asterisk events inside web application

I'm developing a contact center with Laravel framework, I'm using Asterisk 13 to manage call system. Each operator is assigned an extension to use a SIP software (Zoiper) in order to answer customer calls. What I want is a convenient API to interact…
Amin
  • 579
  • 7
  • 23