简体   繁体   中英

Create outbound channel without ringing

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM