I thought I would start a clean thread as struggling to get this working
I have two extensions registered to two different phones.
1001 on one phone
1004 on the other phone
They can dial between each other.
I want calls to log in stasis ARI.
On both extensions, I change the context to from-internal-test
In extensions_custom.conf I enter the below dial plan:
[from-internal-test]
exten => _1XXX,1,NoOp()
same => n,Answer()
same => n,Stasis(hello-world)
same => n,Hangup()
So, I have node.js and wscat installed and connected using an ARI and logging into the wscat command prompt as below (when I dial from 1001 to 1004):
I want 1004 to ring when dialled from 1001 AND also log into the stasis ARI. At this minute I cannot get both to work.
I change the extension context back to from-internal and it rings but events do not fire into the ARI.
I change it to from-internal-test and I cannot get the other phone (1004) to dial. Really struggling with this and any help would be appreciated.
What does your Stasis application do? If youāre just connecting wscat then it would be behaving as expected. ARI gives you a āStasisStartā event and then itās up to you to do the rest. It doesnāt automatically dial anything, or connect them together, or any of that. Itās up to you to use ARI to do that.
According to your first image a call was directed into Stasis as expected. Nothing else happened because you donāt have an ARI application that does anything with the call.
What exactly are you trying to accomplish through the use of ARI?
Then you have to write an ARI application to do such things. ARI will not automatically know what you want to do and do it. You have to use the defined API and the primitives to write an application.
It is not doing what you want because you havenāt written the logic to do such a thing.
The Stasis application still has to do work to send it to continue in the dialplan, along with anything else it should do. Specifically defining how things will precisely work and what is required is needed for something like this, before deciding what the implementation itself will look like.
Inbound I just want the application to be told of the call, so I will give your context a go and see if it works - thanks
Outbound, the idea is to get the CRM to dial using the ARI I have provided the developers - this I guess will be the tricky but, but less āFreePBXā work and more getting the ARI to work with the PBXā¦
I will test the inbound theory and see if it follows onto the endpoint after hitting stasisā¦