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
6
votes
2 answers

Reliably identifying and tracking Asterisk calls using C# and Aster.NET

I have been building a WinForms desktop application using C# that interfaces with Asterisk using Aster.NET (formerly/forked from Asterisk.NET). We're having real trouble reliably identifying and tracking calls that are related to an individual…
iam
  • 137
  • 4
  • 13
6
votes
2 answers

Asterisk Java AGI: utils.c write() returned error: Broken pipe

I have written a hello world Asterisk AGI script using Java. The script runs as expected and plays the hello world sound file, but the asterisk console is giving an error though: ERROR[31058]: utils.c:1164 ast_carefulwrite: write() returned error:…
Jason
  • 406
  • 1
  • 5
  • 16
6
votes
2 answers

FreeSWITCH minimal installation and module selection

As someone who is very new to the opensource PBX projects like Asterisk and FreeSWITCH, I am grappling with some information overload. Have read the basic FreeSWITCH docs on Wiki, but still have few questions. Since I am not very familiar with the…
jay
  • 203
  • 3
  • 7
6
votes
3 answers

on which port my asterisk software is running

Is there a way to find out on which port my asterisk software is running using command line interface or by any other way?
shehzy
  • 2,215
  • 3
  • 25
  • 45
6
votes
6 answers

Fastest way to match telephony prefixes using asterisk PHP script

and thanks in advance for the help. Background - I am writing a PHP script that needs to figure out the destination the caller is trying to reach. Telephony prefixes are strings that identify a destination. For each call, the program must find the…
Alex Recarey
  • 20,178
  • 4
  • 25
  • 22
6
votes
1 answer

multi line comments in asterisk dial plan

I knew single line comments in asterisk dial plan that is ";" e.g ;exten => s,1,Playback(project/eligibility_points_msc) but what is used for multi line comments in dial plan?
shehzy
  • 2,215
  • 3
  • 25
  • 45
6
votes
3 answers

Asterisk : originate call doesn't set the CALLERID in the dialplan

I am using Asterisk PBX to call a softphone, i use thise command : "originate SIP/100 extension 4004" , in the dialplan, I have to get the CALLERID variable, but in this case, it's always empty! P.S : if i call the extension (4004), from the…
Ahmed Laatabi
  • 907
  • 1
  • 8
  • 21
5
votes
2 answers

How do I establish a persistent connection to an Asterisk manager with PHP?

I'm attempting to connect to an Asterisk manager interface, and I'm having a problem with the code blocking, as well as connection persistence. Below is what I have, followed by a description of what's going wrong: /** * The parameters for…
5
votes
2 answers

Open Source Video Conferencing Server

How to create a Open Source Video Conferencing Server using Asterisk? Is it possible? I would like to create a n-way conference call but I cant using MeetMe and zaptel. I don't have Digium hardware. I am using asterisk 1.8 on ubuntu 10.10. Need some…
user1222905
  • 533
  • 2
  • 17
  • 36
5
votes
1 answer

How to convert 16bit wav to raw audio

I'm trying to use sox to convert asterisk voicemails to raw audio. The encoding information of the original wav is PCM S16 LE, so I thought I would just be able to do sox msg0000.wav msg0001.raw but the raw file from that is garbled and, according…
scotter
  • 105
  • 2
  • 3
  • 7
5
votes
2 answers

Playback in meetme (asterisk)

I would like to play an audio file to all members of a MeetMe conference, like a notification. Does anyone have any idea about how to do this?
Anil agrahari
  • 340
  • 1
  • 9
  • 25
5
votes
1 answer

Asterisk ARI - Pass channel to Stasis before Ringing

My goal Pass an incoming call directly to Stasis and allow the app to decide whether to play a ringing or busy tone to the caller. The problem With my ARI app, if I omit the same => n,Ringing line from my dialplan, the Stasis app returns an error if…
Jason Berryman
  • 4,760
  • 1
  • 26
  • 42
5
votes
1 answer

How to configure Asterisk `menuselect` build options programmatically?

I am writing a Bash script for installing Asterisk. Instead of running the make menuselect command, which provides an interactive UI to select different options, I want to use the command menuselect/menuselect --enable ____ menuselect.makeopts to…
User_890
  • 169
  • 1
  • 9
5
votes
2 answers

AWS polly sample example in python?

First Time I am trying AWS services. I have to integrate AWS polly with asterisk for text to speech. here is example code i written to convert text to speech from boto3 import client import boto3 import StringIO from contextlib import…
rajesh6115
  • 705
  • 9
  • 21
5
votes
0 answers

sipjs and asterisk voice call no audio issue

I am using sipjs 0.7.5 version and asterisk 13.12.1 to established call between 2 sipjs call through webRTC. Both sipjs client and asterisk server are in local network. I am giving asterisk log of both sip messages and rtp packet bellow: My problem…
tanim
  • 69
  • 6