Quantcast
Channel: FreePBX Community Forums - Latest posts
Viewing all articles
Browse latest Browse all 227017

Working with Asterisk ARI

$
0
0

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):

My problem now is that when I dial 1004, the phone displays “talking” and it doesnt actually dial 1004…

In the logs, I see the call does not even get 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.

Thanks in advance and sorry for the repost.


Viewing all articles
Browse latest Browse all 227017

Trending Articles