Actions

RESTful API: Updating a Route

Revision as of 11:46, 10 May 2019 by Luc Morissette (talk | contribs) (Created new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Updating a static route

To show the routing table in general it will be:

 tbconfig -u root -p root /configurations/main_config/routes/Route_1

To dump it into a file:

tbconfig -u root -p root /configurations/main_config/routes/Route_1 route1.json -r

The file route1.json will look something like this:

{
 "called" : "",
 "calling" : "",
 "custom_attributes" : {
   "forward_sip_domain" : "1",
   "priority" : "10",
   "private_address" : "",
   "remapped_private_address" : "",
   "weight" : "100"
 },
 "name" : "Route_1",
 "nap" : "NAP_SIP_1",
 "remapped_called" : "",
 "remapped_calling" : "",
 "remapped_destination_leg_profile" : "(same as NAP)",
 "remapped_nap" : "(By registered user)",
 "remapped_source_leg_profile" : "(same as NAP)",
 "routeset_name" : "",
 "***meta***" : {
   "src_path" : "",
   "version" : "3.0.134"
 }


Then the file can be modified and reloaded like this:

 tbconfig -u root -p root /configurations/main_config/routes/Route_1 -U route1.json