1
Other Yate server issues / Routing some calls by javascript module
« on: December 28, 2017, 05:08:52 AM »
Hello Yate team
I want to route incomming calls by asking a separate web service for the destination.
I will write a script for instance named inboundjsrouting.js
I think the javascript module will be the best solution.
But I don't want route all of my calls using the javascript module
The most calls, I want to route by regexroute.conf (how it works currently)
Therefore I think I can do a pre-routing , for instance all calls which are comming in by the number +49123456987 in the section contexts in regexroute.conf to a separate context for instance jsrouting in which I can call the javascript module.
Is this the right way?
And how I have to call the javascript module and the script (in the example inboundjsrouting.js) in the separate context (in the example jsrouting) in the regexroute.conf
Thanks for your help
Burkhard
I want to route incomming calls by asking a separate web service for the destination.
I will write a script for instance named inboundjsrouting.js
I think the javascript module will be the best solution.
But I don't want route all of my calls using the javascript module
The most calls, I want to route by regexroute.conf (how it works currently)
Therefore I think I can do a pre-routing , for instance all calls which are comming in by the number +49123456987 in the section contexts in regexroute.conf to a separate context for instance jsrouting in which I can call the javascript module.
Is this the right way?
And how I have to call the javascript module and the script (in the example inboundjsrouting.js) in the separate context (in the example jsrouting) in the regexroute.conf
Thanks for your help
Burkhard