Permanent redirection

I’d like to redirect a extension permanently to a trunk.
It is just for a test - so a:

exten => 8888,1,Dial(dialout-trunk,1,5467)

would also be ok for me.
But the context “dialout-trunk” seems to be wrong…
Does anybody have an idea how to do that?



The syntax of a dial command is not to reference a context, it references a channel driver.

[quote=“From the Asterisk docs”]Dial(type/identifier, timeout, options, URL)

Dial(type1/identifier1[&type2/identifier2[&type3/identifier3… ] ], timeout, options, URL)


Attempts to “dial out” on all the specified channels (each specified by a type and identifier) simultaneously. The first channel that answers “wins”, and all the other outgoing channels are hung up. The originating channel that triggered this Dial command is then Answered, if necessary, and the two channels are connected together (“bridged”) allowing a conversation to take place between them. When the channel that triggered the Dial command hangs up, the Dial command exits. [/quote]

You need to follow the syntax.

You do not need to dial.
In extensions_custom.conf put

exten => 8888,1,Goto(18005558355,1)

I don’t know if this will work. Don’t you have to put the context in the goto statement?

context and extension are optional - check the docs
core show application Goto

Both worked fine for me!

exten => 8888,1,Dial(SIP/SIP_Trunk_Alcatel/5467,300)
exten => 8888,1,Goto(5467,1)