SIP-Trunks auflisten
curl --request GET \
--url https://app.famulor.de/api/user/phone-numbers/sip-trunks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.famulor.de/api/user/phone-numbers/sip-trunks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.famulor.de/api/user/phone-numbers/sip-trunks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/phone-numbers/sip-trunks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.de/api/user/phone-numbers/sip-trunks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": 42,
"phone_number": "1000",
"nickname": "Provider X — Haupt",
"sip_username": "myuser",
"sip_address": "sip.provider.com",
"sip_calling_format": "+e164",
"inbound_authorization_type": "auth",
"allowed_inbound_ips": null,
"outbound_proxy": false,
"country_code": "US",
"created_at": "2026-03-31T10:00:00.000000Z",
"updated_at": "2026-03-31T10:00:00.000000Z"
},
{
"id": 43,
"phone_number": "+14155551234",
"nickname": null,
"sip_username": "trunk_user",
"sip_address": "sip.provider.com",
"sip_calling_format": "e164",
"inbound_authorization_type": "ip",
"allowed_inbound_ips": ["203.0.113.10", "198.51.100.20"],
"outbound_proxy": true,
"country_code": "US",
"created_at": "2026-03-31T11:00:00.000000Z",
"updated_at": "2026-03-31T11:00:00.000000Z"
}
]
}
SIP-Trunks auflisten
Alle SIP-Trunks des authentifizierten Benutzers abrufen
GET
/
api
/
user
/
phone-numbers
/
sip-trunks
SIP-Trunks auflisten
curl --request GET \
--url https://app.famulor.de/api/user/phone-numbers/sip-trunks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.famulor.de/api/user/phone-numbers/sip-trunks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.famulor.de/api/user/phone-numbers/sip-trunks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/phone-numbers/sip-trunks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.de/api/user/phone-numbers/sip-trunks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": 42,
"phone_number": "1000",
"nickname": "Provider X — Haupt",
"sip_username": "myuser",
"sip_address": "sip.provider.com",
"sip_calling_format": "+e164",
"inbound_authorization_type": "auth",
"allowed_inbound_ips": null,
"outbound_proxy": false,
"country_code": "US",
"created_at": "2026-03-31T10:00:00.000000Z",
"updated_at": "2026-03-31T10:00:00.000000Z"
},
{
"id": 43,
"phone_number": "+14155551234",
"nickname": null,
"sip_username": "trunk_user",
"sip_address": "sip.provider.com",
"sip_calling_format": "e164",
"inbound_authorization_type": "ip",
"allowed_inbound_ips": ["203.0.113.10", "198.51.100.20"],
"outbound_proxy": true,
"country_code": "US",
"created_at": "2026-03-31T11:00:00.000000Z",
"updated_at": "2026-03-31T11:00:00.000000Z"
}
]
}
Dieser Endpunkt gibt eine Liste aller SIP-Trunks zurück, die deinem Konto zugeordnet sind.
Antwort
array
Array von SIP-Trunk-Objekten
Anzeigen SIP-Trunk-Eigenschaften
Anzeigen SIP-Trunk-Eigenschaften
integer
Die eindeutige Kennung des SIP-Trunks
string
Die SIP-Erweiterung oder Telefonnummer (DID) im E.164-Format
string
Ein kurzes, menschenlesbares Label für den Trunk (oder
null, wenn nicht gesetzt)string
Der Benutzername für die SIP-Authentifizierung
string
Die SIP-Serveradresse
string
Das ausgehende Rufnummernformat:
+e164, e164 oder nationalstring
Die Methode für eingehende Authentifizierung:
auth (Benutzername/Passwort) oder ip (IP-Whitelist)array
Array mit freigegebenen IP-Adressen für eingehende Anrufe (nur wenn
inbound_authorization_type auf ip steht)boolean
Ob ausgehende Anrufe über eine feste Proxy-IP laufen
string
ISO-3166-2-Ländercode, in dem der SIP-Trunk liegt
string
ISO-8601-Zeitstempel der Erstellung
string
ISO-8601-Zeitstempel der letzten Aktualisierung
{
"data": [
{
"id": 42,
"phone_number": "1000",
"nickname": "Provider X — Haupt",
"sip_username": "myuser",
"sip_address": "sip.provider.com",
"sip_calling_format": "+e164",
"inbound_authorization_type": "auth",
"allowed_inbound_ips": null,
"outbound_proxy": false,
"country_code": "US",
"created_at": "2026-03-31T10:00:00.000000Z",
"updated_at": "2026-03-31T10:00:00.000000Z"
},
{
"id": 43,
"phone_number": "+14155551234",
"nickname": null,
"sip_username": "trunk_user",
"sip_address": "sip.provider.com",
"sip_calling_format": "e164",
"inbound_authorization_type": "ip",
"allowed_inbound_ips": ["203.0.113.10", "198.51.100.20"],
"outbound_proxy": true,
"country_code": "US",
"created_at": "2026-03-31T11:00:00.000000Z",
"updated_at": "2026-03-31T11:00:00.000000Z"
}
]
}
Passende Seiten: SIP-Trunk abrufen, SIP-Trunk erstellen und SIP-Trunk aktualisieren.
War diese Seite hilfreich?
⌘I

