POST
Save Telephony Configuration

Authorizations

Authorization
string
header
required

Interactive user session: the login JWT, sent as Authorization: Bearer <token>.

Body

application/json

Request schema for Asterisk ARI configuration.

ari_endpoint
string
required
app_name
string
required

Stasis application name registered in Asterisk

app_password
string
required

ARI user password

provider
string
default:ari
Allowed value: "ari"
ws_client_name
string
default:""

websocket_client.conf connection name for externalMedia (e.g., peachdesk_staging)

trunk_endpoint
string
default:""

PJSIP endpoint name of the SIP trunk to route outbound calls through (e.g. bridgei2p). Leave empty to dial endpoints registered on the same Asterisk.

outbound_number_format
enum<string>
default:as_dialed

Digit format the trunk expects on outbound: as_dialed (send the number unchanged), e164 (+919876543210), strip_plus (919876543210), national (9876543210), national_zero (09876543210).

Available options:
as_dialed,
e164,
strip_plus,
national,
national_zero
trunk_country_code
string
default:""

ISO-2 country of the trunk (e.g. IN). Required only by the national and national_zero formats, which strip this country's dial code.

from_numbers
string[]

List of SIP extensions/numbers for outbound calls (optional)

Response

Successful Response