DialPlan Config Issue

I am new in Asterisk.I am using freePBX server.I create 2 extensions 102 and 103 .how to configure dialplan for make calls.

i tried this. is it correct

[ Context ‘from-internal’ created by ‘pbx_config’ ]

‘102’ => 1. Dial(SIP/102,20) [pbx_config]

‘103’ => 1. Answer() [pbx_config]

                2. Playback(hello-world)                      [pbx_config]

                3. Hangup()                                   [pbx_config]

Include => ‘from-internal-noxfer’ [pbx_config]

Include => ‘from-internal-xfer’ [pbx_config]

Include => ‘bad-number’ [pbx_config]

You need to ask on http://community.freepbx.org/ as your diallplans will interact with the include structure and existing dialplans created by FreePBX

If your calls can be directed into form-internal, with the extension number intact, and the above is the current live configuration, 102 will call the device, in sip.conf (or in users.conf) with device name 102 and wait 20 seconds of an answer.

103 will redundantly answer then play any sound file, in /var/lib/asterisk/sounds/LL, where LL is the language associated with the incoming device, and which has a file name extension for a type for which Asterisk has a codec conversion path to the one negotiated for the incoming device. It will finally, redundantly, hangup the caller.

That all sounds plausible, so you will need to say exactly what goes wrong and provide detailed logs to support that.

2 Likes