Apologies. Tess is the application they are wanting to use… I have provided them ARI details in Asterisk Rest Interface Users.
In my scenario:
The exact scenario we need to achieve - In TESS Application I log in as 2003 extension as user and i will dial extension 2003 from 2002 and need to check whether i we will get call in 2003 SIP phone and event in the computer where TESS app is running
Efforts to try and get this working are:
-
Executing the following command using Node.js prompt:
wscat -c "ws://10.38.240.1:8088/ari/events?api_key=3rd_Party_Yucca:1d8c16f0eebafafceb7e0f6ab181e3f5&app=Tess_Asterisk"
-
It shows connected but when I dial from extension 2003 to 2004 no logs show.
-
When add the following context in extensions_custom.conf
[from-internal-test]
exten => 2003,1,NoOp(entering ${CONTEXT} as defined in extensions_custom.conf)
same => n,Answer()
same => n,Stasis(Tess_Asterisk,PJSIP/${EXTEN}, 45)
same => n,Hangup()
[from-internal-custom]
exten => 2004,1,NoOp(entering ${CONTEXT} as defined in extensions_custom.conf)
same => n,Answer()
same => n,Stasis(Tess_Asterisk,PJSIP/${EXTEN}, 45)
same => n,Hangup()
And then in the extension settings page set the context to “from-internal-test” I get some logs.
I want to make it so I do not have to define every extension in the custom conf.
- I changed the extensions_custom.conf to:
[from-internal-test]
exten => _XXXX,1,NoOp(entering ${CONTEXT} as defined in extensions_custom.conf)
same => n,Answer()
same => n,Stasis(Tess_Asterisk,PJSIP/${EXTEN}, 45)
same => n,Hangup()
When I point the extension to this context and dial, it logs but no sound can be heard from either extension at either end.
Hope this explains my problem and the efforts exhausted to try and get this working.