Skip to content

Commit

Permalink
refactor sip configuration patch into separate class
Browse files Browse the repository at this point in the history
  • Loading branch information
jannovak-msft committed Jun 8, 2021
1 parent 46a087a commit a045db3
Showing 1 changed file with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"name": "body",
"description": "Configuration patch.",
"schema": {
"$ref": "#/definitions/SipConfiguration"
"$ref": "#/definitions/SipConfigurationPatch"
}
}
],
Expand Down Expand Up @@ -115,6 +115,17 @@
}
}
},
"TrunkPatch": {
"description": "Represents a SIP trunk patch.",
"type": "object",
"properties": {
"sipSignalingPort": {
"format": "int32",
"description": "Gets or sets SIP signaling port of the trunk.",
"type": "integer"
}
}
},
"TrunkRoute": {
"description": "Represents a trunk route for routing calls.",
"required": [
Expand Down Expand Up @@ -169,6 +180,28 @@
}
}
}
},
"SipConfigurationPatch": {
"description": "Represents a SIP configuration patch.",
"type": "object",
"properties": {
"trunks": {
"description": "SIP trunks for routing calls.\r\nMap key is trunk's FQDN (1-249 characters).",
"maxLength": 250,
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/TrunkPatch"
}
},
"routes": {
"description": "Trunk routes for routing calls.",
"maxLength": 250,
"type": "array",
"items": {
"$ref": "#/definitions/TrunkRoute"
}
}
}
}
},
"parameters": {
Expand Down

0 comments on commit a045db3

Please sign in to comment.