Telcobridges - Session Border Controllers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Script - Http Query to External Routing Engine in Post Format

Go down

Script - Http Query to External Routing Engine in Post Format Empty Script - Http Query to External Routing Engine in Post Format

Post by NicoleTan Tue Feb 07, 2023 5:54 pm

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 number to an external routing engine server : 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:
     {
     "route1":"NAP_A","priority":5,"weight":100,
     "route2":"NAP_B","priority":6,"weight":100,
     "route3":"NAP_C","priority":7,"weight":"100",
     "route4":"NAP_D","priority":8,"weight":"100"
     }.
     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
Script - Http Query to External Routing Engine in Post Format Attachment
http_query_to_external_routing_engine_in_post_format.zip Http Query to External Routing Engine in Post FormatYou don't have permission to download attachments.(3 Kb) Downloaded 16 times

NicoleTan

Number of Messages : 18
Point : 38
Registration Date : 2017-11-27

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum