Created
October 26, 2022 15:19
-
-
Save davehorton/dc6380feda1a16502f9a13b5cb73acfb to your computer and use it in GitHub Desktop.
jambonz rest API example: adding a carrier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Add a carrier | |
POST http://jambonz.one/api/v1/ServiceProviders/2708b1b3-2736-40ea-b502-c53d8396247f/VoipCarriers | |
Authorization: Bearer <api-key> | |
{ | |
"name": "test", | |
"e164_leading_plus": 1, | |
"application_sid": null, | |
"account_sid": null, | |
"requires_register": 1, | |
"register_username": "foo", | |
"register_password": "bar", | |
"register_sip_realm": "blf.finotel.com", | |
"register_from_user": null, | |
"register_from_domain": "finotel.com", | |
"register_public_ip_in_contact": 0, | |
"tech_prefix": null, | |
"diversion": null, | |
"is_active": 1, | |
"smpp_system_id": null, | |
"smpp_password": null, | |
"smpp_inbound_system_id": null, | |
"smpp_inbound_password": null | |
} | |
201 Created | |
{"sid":"f5bf8cb2-ba61-4a36-8641-be488c0709d6"} | |
## attach a sip gateway to the carrier | |
POST http://jambonz.one/api/v1/SipGateways | |
Authorization: Bearer <api-key> | |
{ | |
"ipv4": "54.172.60.1", | |
"port": "5060", | |
"inbound": true, | |
"outbound": false, | |
"voip_carrier_sid": "f5bf8cb2-ba61-4a36-8641-be488c0709d6" | |
} | |
201 Created | |
{"sid":"41ecbf66-ea2b-46ef-b66d-d9c569e79fb0"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment