Actions

ProSBC:Restful API SIP Domain Registrar

Revision as of 07:14, 24 January 2023 by Serdar Civici (talk | contribs) (Created page with "You can create/modify a SIP Domain Registrar in your system with RestFul API using JSON format. The JSON must be in the following format: <pre> { "enabled": true, "*...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

You can create/modify a SIP Domain Registrar in your system with RestFul API using JSON format. The JSON must be in the following format:


{
    "enabled": true,
    "***meta***": {
        "version": "3.1.137",
        "src_path": ""
    },
    "name": "3CX_REGISTRAR",
    "nap": "3CX",
    "position": 1
}

Important parameters in the JSON file

  • name
  • nap
  • position: If you need to add more than one SIP registrar you need to use position to give priority.

Adding a new SIP Domain Registrar

You can add a new SIP Domain Registrar with the POST command:

POST http://ProSBCIP:12358/configurations/configuration_name/sip_registration_domains/domainname/sip_registration_registrars

ProSBC will create a new SIP Domain Registrar from the name in the JSON file.

Example: We use the Postman tool in this example and the URL is:

http://192.168.1.25:12358/configurations/config_2/sip_registration_domains/TEST_DOMAIN/sip_registration_registrars


If the new SIP Domain Registrar is created successfully, you will see the following information in the Postman Tool