I am trying to add “stasis” for outbound call but it is not working.
I found online examples which shows stasis can be added for local internal generated extensions calls. But here I am trying to call external number using SIP provider.
Below code on asterisk executes till → same => n,Stasis(sttd) after that is doesnt work.
exten => _+1X.,1,NoOp(You called: ${EXTEN})
same => n,Stasis(sttd)
same => n(startnow),Set(CALLERID(all)="NAME" <+123456789>)
same => n,MixMonitor(recordings/rec123456789.wav)
same => n,Dial(SIP/OUTBOUND_SERVICES/${EXTEN},30)
same => n,Hangup()
Define “doesn’t work”. Calling Stasis will put the channel into the ARI application. It is then up to the ARI application to handle the channel until it either hangs up, or goes back into the dialplan.
Through the node ari application able to see channels were created.
Doesn’t work
From extension config it only runs till same => n,Stasis(sttd) where it was suppose to dial outbound number and connect internal caller to external customer.
Until the “sttd” ARI application returns the channel to the dialplan using continue[1] then it will remain in the Stasis dialplan application. That is how it works. You may want to describe exactly what you are trying to achieve, instead.
Based on what I am trying to achieve, I can use stasis for end user to listen to audio. I am also trying to see if this can allow server side call to talk to the end user as well. Is this possible?
ARI applications can dial outgoing channels[1] and bridge[2] them with other channels. They can also spy on and inject audio[3], which can be used to send a channel back into the dialplan while still receiving its audio. It all depends on what exactly is trying to be achieved, and I’m still unclear on what you’re doing.