Create outbound channel without ringing

801 views Asked by At

I need to create a channel using ARI and put it into stasis before dialling the extension, which according to the documentation is what should be happening. But as soon as I create the channel it starts ringing and goes into stasis only after being answered.

I have a testing extension configured in sip.conf which I've registered with a softphone, this is the extension I'm creating a channel to.

[101]
 type = friend
 username = 101
 secret = 1234
 context = from-internal
 host = dynamic
1

There are 1 answers

10
arheops On

Asterisk have two "legs", incoming and outgoing.

Ringing is first one.

So you have put it in stasis before ringing, after that put in stasis second leg on answer.

You can do it using dial via dial - Local channel.

For that need use dialstring like Local/number@stasis_out and in dialplan write like this

[stasis_out]
exten => _.,1,Stasis(out-app)

exten => h,1,Hangup()

Now you get it in stasis and can do additional Dial for call out.

Please note, stasis app have alot of perfomance issues, if you application expected be hi-load, better use dialplan.