D
D
Devate2017-02-08 20:11:54
Asterisk
Devate, 2017-02-08 20:11:54

How to make forwarding to an external number + extension?

Hello!
There is FreePBX, when dialing extension numbers in IVR, there is a redirection to external numbers with a lattice at the end. But there are rare cases when that same external number has its own PBX with IVR and its own extensions. It is necessary to simulate the situation as if a number was dialed from a simple phone in the following form: +79999999999.1 - that is, after calling an external number, you need to automatically dial an extension, since the greeting that is there is completely unnecessary in our case.
Tell me, is it possible to solve this using FreePBX? If not, how else can you do it? Thanks :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Devate, 2017-02-09
@Devate

I got the following solution (I have FreePBX, so I write for it):
in the /etc/asterisk/extensions_custom.conf file, add
[from-internal-custom]
exten => _Z9999999999,1,Set(TRUNK_OPTIONS="D(1) ")
where 9999999999 is the external number for which you need to enter the extension after the call,
D(1) is the extension number (indicated in brackets) that will be "pressed" - sent as a DTMF sequence after the handset is lifted.
There is another option to set the FreePBX trunk setting "Asterisk Trunk Dial Options" - "D(1)". But this option didn't work for me.

D
Dmitry Shitskov, 2017-02-09
@Zarom

On Asterisk it is solved like this:
You can also use pause. A single w pauses for half a second after the called party has answered, e.g.

exten => 7999,1,Dial(SIP/outtrunk/79999999999,,D(w1))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question