Script - Http Query to External Routing Engine in Get Format
Page 1 of 1
Script - Http Query to External Routing Engine in Get Format
This filter is used to:
- Call arrives TMG, checked the flag: http_routing of the incoming NAP, if it is set to YES, continue the next steps!
- Send query with incoming NAP name, calling and called nubmer to an external routing engine server in GET format: a URL LIKE https://192.168.2.100/api/routingengine/routingengine.php.. as an example
- Get required parameters: dest_nap, priority, weight from the external routing engine server:
a. For valid call with routes: 200 OK with response like below:
dest_nap1,priority,weight|dest_nap2,priority,weight|…dest_napN,priority,weight.
b. For invalid call, 404 no route
- Compose the routes by the returned string
- Combine the Routes with the route from the ProSBC Routes configuration
- Call arrives TMG, checked the flag: http_routing of the incoming NAP, if it is set to YES, continue the next steps!
- Send query with incoming NAP name, calling and called nubmer to an external routing engine server in GET format: a URL LIKE https://192.168.2.100/api/routingengine/routingengine.php.. as an example
- Get required parameters: dest_nap, priority, weight from the external routing engine server:
a. For valid call with routes: 200 OK with response like below:
dest_nap1,priority,weight|dest_nap2,priority,weight|…dest_napN,priority,weight.
b. For invalid call, 404 no route
- Compose the routes by the returned string
- Combine the Routes with the route from the ProSBC Routes configuration
- Attachments
NicoleTan- Number of Messages : 18
Point : 38
Registration Date : 2017-11-27
Similar topics
» Script - Http Query to External Routing Engine in Post Format
» Modifying calling_sip_host Parameter in Routing Script
» Routing Script to disable route retry
» Routing script to limit call duration
» Routing script to add SIP header with incoming SIP IP
» Modifying calling_sip_host Parameter in Routing Script
» Routing Script to disable route retry
» Routing script to limit call duration
» Routing script to add SIP header with incoming SIP IP
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum