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
5
votes
1 answer

Asterisk cross platform compilation

I am trying to compile asterisk from windows using netbeans c/c++ IDE. As i want to add some functionality into the existing code. when i am running the configure file i got the following errors cygwin warning: MS-DOS style path detected:…
Shrikant Soni
  • 2,337
  • 2
  • 30
  • 35
5
votes
1 answer

Asterisk ARI conference call app: authorize / ask for pin number

I'm using a C#/.NET library to implement the Asterisk RESTful Interface (ARI) to create conference call app. So far the app works like this: User calls the number App answers App starts voice detection App asks for name and records the audio App…
alex
  • 1,300
  • 1
  • 29
  • 64
5
votes
1 answer

PJSUA Error on sip registration with c

so i am writing a soft phone client with PJSUA using C. So first i tried out an example given from pjsip-homepage. Now i faced an error on registration to my asterisk-server, but i couldn't figure out why this happens. I can make successfully calls,…
Obi-Wan
  • 846
  • 1
  • 11
  • 26
5
votes
3 answers

Linux Asterisk script for test call

I need to measure the MOS and quality of the VOIP service in a network. I want to create a script that simulates calls and then measure the networks metrics. I'm using asterisk. Do you have any suggestion about how to script and schedulate test…
Kerby82
  • 4,934
  • 14
  • 48
  • 74
5
votes
2 answers

Asterisk ARI create outbound call

I'm trying to initiate calls using the ARI API, the process I followed was POST /ari/channels to create channel 1 to the local extension POST /ari/bridges to create a bridge POST /ari/bridges/{bridge-id}/addChannel with channel 1 POST /ari/channels…
grahambrown11
  • 51
  • 1
  • 1
  • 5
5
votes
4 answers

How can I know the status of a call - Asterisk and PHP?

I'm developing an application with PHP and a Asterisk Server. One of the features of the application is to check the call status (ringing, answered, hung...) of an specific caller ID, so I would like to know how to do this, because I'm trying with a…
Harph
  • 2,250
  • 2
  • 17
  • 16
5
votes
4 answers

AsteriskNOW vs FreePBX. What is the easiest to customize?

I develop asterisk and GUI. Asterisk GUI were exist several type. FreePBX, AsteriskNOW, Elastix, Trixbox... Finally, I have selected two type. FreePBX and AsteriskNOW. FreePBX is based on php, AsteriskNOW is based on java. Almost people used…
whdals0
  • 175
  • 1
  • 3
  • 21
5
votes
3 answers

Asterisk, How can i play an audio file

Here is the dial plan [testInComingCalls] exten => s,1,Answer exten => 30953025,1,Dial(SIP/20000,20) I would like to play an audio file as soon as somebody answered the call.. Please give me some idea how to call a php file, send the input and…
Shyju Pulari
  • 149
  • 1
  • 2
  • 11
5
votes
1 answer

Write log to a file using Sipp

How could write log to a file using Sipp, and How could I know every call return status, I only want to kown every call return response status, for example 200 ..
user1369887
  • 491
  • 1
  • 6
  • 10
5
votes
3 answers

simple Asterisk setup for LAN

I have been going back and forth trying out wanting to find a way for a way to communicate via LAN / WiFi easily, and making a call via LAN network would be great, so i tried asterisk a few times and lost in the way, i cant seem make it work, and…
Oraclecow
  • 51
  • 1
  • 1
  • 2
5
votes
3 answers

Double quotes vs asterisk filename expansion in Bash

In the directories ~/temp/a/foo/ and ~/temp/b/foo foo/ I have some files named bar1, bar2, bar bar1, bar bar2, etc. I am trying to write a line of Bash that copies all these files in a directory containing "foo" as last part of the name to the…
uvett
  • 69
  • 7
5
votes
1 answer

Receive sms on asterisk sip

I have received sms on my asterisk server via sip on my asterisk version 1.4.11 but not able to route it from agi or send it to some url bellow lines i can see on console. [Feb 24 23:50:29] WARNING[23972]: chan_sip.c:9496 receive_message: Received…
Huzoor Bux
  • 1,026
  • 4
  • 20
  • 46
5
votes
1 answer

Asterisk AGI - Originate a call using php agi

Is anybody knows , how we can Originate an external number call using PHP AGI script ?
bizzr3
  • 1,925
  • 4
  • 24
  • 37
5
votes
4 answers

How to get dtmf value in dialplan

I have one dialplan in which what i want is,if user press any key then play file again but i can not understand how to get dtmf value in dialplan. this is my dialplan: [callme] exten => s,1,Answer exten => s,n,Playback(demo/${FILENAME1}) first…
Bhavik Patel
  • 613
  • 3
  • 11
  • 28
5
votes
1 answer

How to call a context and return to the main context in asterisk?

Here is my dial plan in asterisk: [main-context] exten => s,1,Gosub(subcontext,s,1) exten => s,n,NoOp(End Main) [subcontext] exten => s,1,NoOp(Start subcontext) exten => s,1,NoOp(End subcontext) The problem is that when subcontext finishes,…
Karadous
  • 1,555
  • 3
  • 26
  • 37