Record incoming external calls

Greetings everyone!

I’m starting in the world of Asterisk, my doubt is about incoming external calls.

I need to manipulate the “dialplan” of these calls, with an outgoing call, I can manipulate the dialplan through the file “extensions_custom.conf” that is in “/ etc / asterisk”, however with incoming calls I don’t know how to do it.
Can someone help me?

Thanks in advance!

Hi jpftc!

Starting the world of Asterisk is better from scratch, i.e. clear
installation without any GUI (FreePBX) on top ( seems extensions_custom.conf
is used by FreePBX ? )
in any case, before opening the world, always good to do some homework by
reading this:

My help could be copy/paste mentioned manual,  but in brief:

Incoming calls usually comes to dialplan from  endpoints, each endpoint 

has a ‘context’ option, this context is a section in your dialplan ( it can
be placed in any file, but must be included into
/etc/asterisk/extensions.conf directly, or via other includes).
Write you context dialplan

exten => _X.,1,Answer()
exten => _X.,n,Playback(demo-congrats)

and put option for peer :


finally, reload dialplan by :
rasterisk -rx ‘dialplan reload’

and reload peers profiles:

rasterisk -rx 'sip reload'

rasterisk -rx ‘pjsip reload’

next - make a call by monitoring logs to see results.

This appears to be a FreePBX question, for which you want for help.

Asterisk makes no distinction between internal and external calls except that imposed by the user, or GUI provider, dialplan.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.