CallNode speaks SIP in three directions. You can deliver outbound calls to your own SIP endpoint (egress), accept inboundcalls from your PBX or SBC into your CallNode agents (ingress), and have PSTN calls to your CallNode numbers bridged directly to your own SIP endpoint (BYOC inbound delivery). All three are configured per account and per number — no separate onboarding. A LiveKit SIP trunk is a typical endpoint on both sides: deliver a number's inbound calls to a LiveKit Agent, or place outbound calls into a LiveKit room.
198.27.122.194 or 192.95.44.47 (two switch nodes; allow both) and accepts inbound traffic at sip.callnode.io:5062 (UDP or TCP) for IP-authenticated trunks, or sip.callnode.io:5061(TLS) for registration trunks. SRTP is negotiated on TLS trunks when your equipment offers it, and a number's TLS delivery leg can require it (see encrypted delivery), as can a registration trunk (see encrypted audio on a registration trunk). An outbound call to a TLS address can require it too (see encrypted calls).1. SIP egress — deliver outbound calls to a SIP endpoint
Instead of dialing the phone network, an outbound call can be delivered straight to a SIP endpoint you control — a PBX, an SBC, a LiveKit SIP trunk, or your own carrier (BYOC). This uses the same Outbound Calls endpoint and the same HMAC request signing as the rest of the outbound API.
/api/v1/outbound/callsRequests are signed exactly as documented in Authentication. The to field takes one of three mutually exclusive forms:
| Form | Shape |
|---|---|
| PSTN number | to is an E.164 number — dialed over the phone network (the standard behavior). |
| Direct SIP URI | to is a sip: URI: sip:user@host[:port][;transport=udp|tcp|tls]. |
| Saved trunk (BYOC) | sipTrunkId names a saved trunk, and to is an E.164 number or extension string — delivered to that trunk's saved SIP host. |
Direct SIP URI
Pass a sip: URI as to. Transport defaults to udp when omitted, and the port to 5060 (5061 with TLS). A ;transport=tls address can also carry encrypted audio: see encrypted calls.
{
"to": "sip:agent@pbx.example.com:5060;transport=udp",
"from": "+15145550199",
"webhookUrl": "https://yourcrm.example.com/voice/n8n"
}Saved trunk (BYOC)
Create a trunk in the dashboard at /dashboard/trunks, then pass its ID as sipTrunkId. to is then an E.164 number (terminated by your carrier) or an extension string your host understands.
{
"to": "+16135551234",
"sipTrunkId": "cmb1xk2p40001abcd1234wxyz",
"from": "+15145550199",
"webhookUrl": "https://yourcrm.example.com/voice/n8n"
}In every form, from must be one of your CallNode numbers in E.164 — it becomes the caller ID presented to your SIP endpoint.
Compliance gates
Your account must be verified (KYC) for any SIP egress call. Do-not-call suppression and the 8am–9pm called-party-local-time (TCPA) window apply whenever to is an E.164 number — including the saved-trunk (BYOC) form. A sip: URI has no phone number to derive a timezone from, so those checks do not apply to it. A destination host that resolves to a private or reserved address is rejected.
Billing
SIP egress calls bill at your plan's SIP egress per-minute rate. These minutes do not draw from bundled or included minutes.
Failure reporting
The call status and the call.failed webhook return a failureCode plus a raw sipCause passthrough. There is no PSTN failover for a SIP destination — a rejected endpoint is terminal.
| failureCode | Meaning |
|---|---|
busy | The endpoint is busy. |
no_answer | The endpoint rang but was not answered. |
invalid_destination | The SIP URI or destination could not be parsed or resolved. |
endpoint_unreachable | The endpoint could not be reached (no route, timeout, or refused connection). |
endpoint_rejected | The endpoint answered signaling but rejected the call. The raw cause is in sipCause. |
SIP calls report sipTrunkId and sipUri on their status responses; both are null for regular phone-network calls. sipUri holds the normalized URI that was dialed, and sipTrunkId is set when a saved trunk was used.
Mid-call transfer to SIP
A conversational-webhook reply can bridge the current caller to a SIP endpoint mid-call by returning a transfer directive whose transferDestination is a sip: URI. See the conversational webhook contract for the full turn shape.
{
"transfer": true,
"transferDestination": "sip:agent@pbx.example.com"
}198.27.122.194 and 192.95.44.47 — allow both on your SIP server, PBX, or firewall; a call may leave from either switch. Manage saved trunks in the dashboard at /dashboard/trunks.2. SIP ingress — send calls from your infrastructure into your agents
This direction is inbound: your equipment originates the call and CallNode answers it with the same AI agents that answer your CallNode numbers. Pick whichever authentication method matches your network — the routing, webhook contract and billing are identical either way.
| IP authentication | Registration | |
|---|---|---|
| Endpoint | sip.callnode.io:5062 | sip.callnode.io:5061 |
| Transport | UDP or TCP | TLS only |
| You need | A static public IP | Nothing — works behind NAT |
| Credentials | None | Username + password we generate |
| Calls we send you | Go to your configured host | Go to wherever you last registered |
Set up an IP-authenticated trunk
- In the dashboard at /dashboard/trunks, create (or edit) a trunk.
- List your allowed source IP(s) — the public static IPs your PBX/SBC sends from. Only calls from these addresses are accepted; everything else is dropped.
- Turn on ingress for the trunk.
- Pick a default agent number for the trunk.
Set up a registration trunk
Use this when your PBX sits behind NAT or its public address changes. Your PBX registers to CallNode over TLS, and that registration is what identifies it — no IP list to maintain, and nothing to open on your firewall.
- Create a trunk with “Use registration instead of a fixed IP” turned on (or
registrationEnabled: truevia the API). - Copy the username and password shown once on creation, along with the server (
sip.callnode.io:5061) and domain (sip.callnode.io). - Configure a SIP trunk on your PBX pointing at that server with transport TLS and registration enabled.
- Pick a default agent number for the trunk.
The dashboard shows a live Registered badge once your PBX is connected. Calls CallNode sends you — API-originated calls through the trunk, or a mid-call transfer — go to whatever address you last registered from, so outbound works without any inbound firewall rules on your side.
Encrypted audio on a registration trunk
Calls your PBX sends over the registration carry encrypted audio whenever your PBX offers SRTP (RTP/SAVP). For the other direction, turn on “Encrypt the audio on calls we deliver to this trunk (SRTP)”on the trunk's Registration card, or set deliverySrtp to true via the API. Calls to your numbers that CallNode delivers to the trunk, and calls you place to the trunk through the API, then offer SRTP only, with SDES key exchange (AES_CM_128_HMAC_SHA1_80 or AES_CM_128_HMAC_SHA1_32), and never fall back to plain RTP: a PBX that cannot answer SRTP refuses the call rather than connecting it unencrypted. When such a call arrives on the switch node your PBX is not registered to, the link between our two switch nodes is encrypted as well (TLS signalling, SRTP audio).
deliverySrtp is accepted on registration trunks only, whose delivery leg is always TLS: SDES carries the keys inside the SDP, so the signalling must be encrypted. Turning registration off turns it back off. It covers calls to your numbers delivered to the trunk and calls you place to the trunk through the API (sipTrunkId); transfers to the trunk are not covered by it yet.
Routing
The number you dial, if it is one of yourCallNode numbers, reaches that number's voice agent — its voice.webhookUrl. Otherwise the call goes to the trunk's default agent number. If that number has no agent and delivers back to the same server the call came from, the call is refused and not billed, so a misdialed number never loops back to your own PBX. Your PBX can still dial its own numbers, up to 5 calls at a time for each number. The webhook contract is identical to a call from the public phone network; configure each number's webhook with PATCH /api/v1/numbers/:id.
Billing
SIP ingress calls bill at your plan's SIP ingress per-minute rate.
Wholesale outbound termination
Wholesale accounts can be enabled to send calls the other way — you INVITE any PSTN number on the same trunk and we complete it to the public network. It is off until our team enables it on your account; until then a call to a number you do not own reaches your trunk's default agent, as above. There is no API call to make: it is the same trunk, the same credentials, a different destination.
Fromuser against your own CallNode numbers on every call. Anything else — an end customer's number you do not hold with us, a spoofed identity, anonymous — is refused with 403 cli_not_authorized. Since 2026-11-13 the number must also be verified as a caller ID: a call presenting one of your numbers that is not yet verified is refused with 403 caller_id_not_verified and never reaches the carrier. Verify each number once in the dashboard (Numbers, open the number, Caller ID card): verification is automatic, so nothing rings on your trunk and there is no code to type. About a minute per number. If automatic verification ever fails, the next verification call rings through your trunk like any inbound call and you type the six-digit code read out on it. Plan your CLI strategy before migrating traffic, and talk to us first if you need to present an identity you do not own.Trunk-level outbound caller ID
A stock PBX or softphone on a registration trunk puts its username in the Fromheader — which is not a phone number, so every call would be refused. Set the trunk's Outbound caller ID(on the trunk's dashboard page, or outboundCliNumberId via the API) to one of your numbers and it is presented whenever the From does not itself resolve to a number you own. A From that is one of your numbers always wins, so a multi-number PBX still controls caller ID per call.
Refusals are SIP responses, and each one tells you what to do about it. The reason phrase and an X-CallNode-Reason header name the exact cause (for example 402 insufficient_balance), so your switch log says why:
| Response | Meaning | What to do |
|---|---|---|
| 402 Payment Required | Your prepaid balance will not cover a minute | Top up. Calls are also capped at what the balance can pay for, so a low balance shortens them before it stops them. |
| 403 Forbidden | Caller ID not one of yours (cli_not_authorized) or not yet verified as a caller ID (caller_id_not_verified), business verification incomplete, the destination class is not enabled on your account, or the number is on a do-not-call list | Do not retry — the same call will be refused again. For caller_id_not_verified, verify the number in the dashboard (automatic, about a minute) and the next call goes through. |
| 404 Not Found | The dialled number is not a valid E.164 destination | Fix the request URI. |
| 484 Address Incomplete | Ten bare digits in US shape (NXX-NXX-XXXX) with no country code. Read as E.164 they would be a number in Peru, Pakistan or elsewhere, which is almost always a dialer that dropped the leading 1, so the call is refused rather than guessed (reason missing_country_code). | Send +E.164 (+1 and the ten digits for the US and Canada). Do not retry the same digits. |
| 503 Service Unavailable | No route right now, your channel cap is full, or termination is enabled with no rate agreed | Retry later; if it persists, contact us. |
Billing is prepaid and per call: each completed call is charged to your wallet at the rate for the destination the moment it ends, rounded up to the whole minute. Rates are per destination (the public list is on the wholesale page); a contract rate on your account acts as the floor. Calls that ring and are never answered cost nothing. Your outbound rate and whether termination is enabled are both shown on the SBC Tenant page in your dashboard, and every charge appears in Billing as Wholesale Outbound Call.
Two limits apply alongside the gates above: your contracted concurrent-channel cap, and a per-call ceiling derived from your balance. A call that reaches the ceiling is ended with ALLOTTED_TIMEOUT.
3. BYOC inbound delivery — deliver PSTN calls to your SIP endpoint
For any CallNode number, you can set a SIP delivery address — a sip:URI. When it is set, an inbound PSTN call to that number is bridged directly to your SIP endpoint (your PBX or agent) instead of running the number's webhook agent. The shape is: PSTN → CallNode → your SIP endpoint. With LiveKit, point the address at your LiveKit SIP inbound trunk and your dispatch rule decides which LiveKit Agent answers.
The delivery leg presents the original caller's number as caller ID, so your agent sees who is calling.
Two ways to configure
- Dashboard.The number's detail page (/dashboard/numbers → a number) has a “SIP delivery (BYOC)” field.
- API.
PATCHthe number with avoice.sipUri.
/api/v1/numbers/{id}{
"voice": {
"sipUri": "sip:+15551234567@sbc.yourcompany.com"
}
}GET /api/v1/numbers/{id} returns the current voice.sipUri. Set it to null or "" to revert the number to its webhook agent. A host that resolves to a private or infrastructure address is rejected.
Encrypted delivery — TLS signalling and SRTP audio
Add ;transport=tls to the address and the delivery leg is signalled over TLS (port 5061 unless you give one). To encrypt the audio as well, set voice.srtp to true— on the dashboard, the “Encrypt the audio (SRTP)” switch that appears under a TLS address. The leg then offers SRTP with SDES key exchange (AES_CM_128_HMAC_SHA1_80 or AES_CM_128_HMAC_SHA1_32) and does not fall back to plain RTP: an endpoint that cannot answer SRTP refuses the call rather than connecting it unencrypted.
voice.srtp is accepted only beside a ;transport=tlsaddress, because SDES carries the media keys inside the SDP and the signalling has to be encrypted for that to mean anything. Changing the address to UDP or TCP, or switching the number to trunk delivery, turns it back off. Endpoints that require encrypted media — OpenAI's Realtime SIP endpoint, for example — need both:
{
"voice": {
"sipUri": "sip:+15551234567@sip.yourprovider.example;transport=tls",
"srtp": true
}
}Deliver a number to a trunk — including behind NAT
Instead of a literal address, a number can deliver to one of your saved trunks: set voice.trunkId (or pick the trunk in the dashboard's “Deliver to a SIP trunk”selector on the number's page). For a trunk with an egress host this is equivalent to the literal URI. For a registration trunk it is the capability a literal URI cannot express: inbound calls are delivered to wherever your PBX or softphone is currently registered, resolved at call time — which is how a number rings equipment behind NAT with no static address at all.
{
"voice": {
"trunkId": "cmb1xk2p40001abcd1234wxyz"
}
}voice.sipUri and voice.trunkIdare mutually exclusive — setting one clears the other. If a registration trunk is not registered when a call arrives, the call falls back to the number's webhook agent (when one is configured). A trunk that live numbers deliver to cannot be deleted until they are repointed (409 trunk_in_use) — disabling it is always allowed.
voice.sipUri or voice.trunkIdis set, it takes precedence over the number's webhook agent for inbound PSTN calls. Clear it to hand the number back to its webhook. Calls arriving over your own trunk to one of your delivered numbers route the same way as PSTN calls — with one guard: a registration trunk never delivers a call back onto the same trunk it came from (that call falls through to the trunk's default agent).4. Manage trunks via the API
Everything on the dashboard's /dashboard/trunks page is also available programmatically at /api/v1/trunks (base https://api.callnode.io). Use it to create, list, update, and delete saved trunks — the same objects you reference by sipTrunkId for egress (BYOC) and that authorize your inbound ingress source IPs. Every request is signed with the same X-Api-Key / X-Timestamp / X-Signature HMAC scheme as the rest of the public API — see Authentication for the signing details.
/api/v1/trunks/api/v1/trunks/api/v1/trunks/{id}/api/v1/trunks/{id}/api/v1/trunks/{id}/api/v1/trunks/{id}/rotate-credentialsPOST /api/v1/trunks is available only to verified (KYC) accounts. An unverified account gets 403 account_not_verified. Verify at /dashboard/compliance.Create a trunk
A trunk can be egress (outbound delivery to your SIP host), ingress(accept inbound calls from your PBX/SBC), or both. You must supply at least one direction's config — an egressHost, one or more allowedIps, or registrationEnabled: true — or the request is rejected with no_config.
| Field | Description |
|---|---|
name | Required. 1–64 characters. Must be unique across your active trunks (else duplicate_name). |
egressHost | Hostname or IP of your SIP endpoint for outbound (BYOC) delivery. Setting it enables egress. Omit for an ingress-only trunk. |
egressPort | Port for egress delivery. Defaults to 5060. |
egressTransport | udp, tcp, or tls for encrypted signalling. A tls trunk that omits egressPort defaults to 5061. |
allowedIps | Array of public IPv4 addresses your PBX/SBC sends from — the accepted ingress source IPs. Only calls from these addresses are admitted. |
ingressEnabled | Turn ingress on for this trunk. |
registrationEnabled | Make this a registration trunk for a PBX with no static IP. The response carries sipPassword once; the registration object holds the username, server and domain. |
defaultPhoneNumberId | The id of one of your numbers — the default agent for ingress calls that don't match one of your own DIDs. |
outboundCliNumberId | The id of one of your numbers — presented as caller ID on outbound calls when the From isn't itself one of your numbers. See trunk-level outbound caller ID. |
deliverySrtp | Registration trunks only. true makes calls CallNode sends to this trunk (calls to your numbers delivered to it, and calls you place to it through the API) offer encrypted audio only (SRTP, no plain-RTP fallback). Defaults to false. See encrypted audio on a registration trunk. |
confirmMonthlyFee | Set true to acknowledge the additional-trunk monthly fee when you're beyond your plan's included trunks (see Billing below). |
Create an ingresstrunk — accept inbound calls from your PBX and route numbers that aren't your own DIDs to a default agent:
{
"name": "HQ PBX",
"ingressEnabled": true,
"allowedIps": ["203.0.113.10", "203.0.113.11"],
"defaultPhoneNumberId": "cmpxeh9o60002pp4h7oznictb"
}Create an egress trunk — deliver outbound (BYOC) calls to your SIP host:
{
"name": "Carrier egress",
"egressHost": "sbc.yourcompany.com",
"egressPort": 5060,
"egressTransport": "udp"
}Create a registration trunk — for a PBX behind NAT, with no static IP:
{
"name": "Branch PBX",
"registrationEnabled": true,
"defaultPhoneNumberId": "cmpxeh9o60002pp4h7oznictb"
}The 201 response is the only place sipPassword ever appears — store it immediately. Everything else your PBX needs is in the registration object:
{
"id": "cmb1xk2p40001abcd1234wxyz",
"name": "Branch PBX",
"status": "active",
"registration": {
"username": "cnk4m8xq2z7pd",
"domain": "sip.callnode.io",
"server": "sip.callnode.io:5061",
"transport": "tls",
"enabled": true,
"registered": false,
"lastRegisteredAt": null
},
"sipPassword": "xK3mQ9pR7tLw2vBn5cYh8dFg",
"sipPasswordNotice": "Save this password now. It is shown only once ..."
}POST /api/v1/trunks/{id}/rotate-credentialsmints a replacement password (also returned once) and keeps the same username. The old password stops working within about a minute, so update your PBX promptly. Rotating a trunk that doesn't have registration enabled returns 400 registration_not_enabled.
The registration.registered flag reports whether your PBX is connected right now, with lastRegisteredAt and lastRegisteredIpfor troubleshooting. Placing an API call through a registration trunk whose PBX isn't connected returns 409 trunk_not_registered.
A successful create returns 201 with the trunk object. GET, PATCH, and DELETE /api/v1/trunks/{id} operate on a single trunk by its id; an unknown id returns 404 not_found. PATCH accepts any of name, egressHost (send null or "" to clear it and make the trunk ingress-only), egressPort, egressTransport, status (active or disabled), egressEnabled, allowedIps, ingressEnabled, registrationEnabled, defaultPhoneNumberId, outboundCliNumberId, and deliverySrtp; a PATCH with no recognized fields returns 400 no_fields. Turning on registrationEnabled for the first time returns sipPassword in that response — the only time it is shown. A DELETE returns { "success": true, "id": "..." } (soft delete — the row is retained for call history and traceback). A trunk included in your plan (no monthly fee, monthlyFeeApplies: false) can't be deleted: DELETE answers 409 included_in_plan. Disable it with PATCH { "status": "disabled" } instead; it stays free.
List trunks
GET /api/v1/trunks returns your trunks alongside account-level trunk settings:
{
"trunks": [
{
"id": "cmb1xk2p40001abcd1234wxyz",
"name": "HQ PBX",
"status": "active",
"egressEnabled": false,
"egressHost": null,
"egressPort": 5060,
"egressTransport": "udp",
"ingressEnabled": true,
"allowedIps": ["203.0.113.10", "203.0.113.11"],
"defaultPhoneNumberId": "cmpxeh9o60002pp4h7oznictb",
"monthlyFeeApplies": false,
"nextBillingDate": null,
"registration": {
"enabled": false,
"username": null,
"domain": "sip.callnode.io",
"server": "sip.callnode.io:5061",
"transport": "tls",
"registered": false,
"lastRegisteredAt": null,
"lastRegisteredIp": null
},
"createdAt": "2026-07-25T14:02:11.000Z",
"updatedAt": "2026-07-25T14:02:11.000Z"
}
],
"includedSipTrunks": 2,
"activeTrunkCount": 1,
"egressSourceIp": "198.27.122.194",
"egressSourceIps": ["198.27.122.194", "192.95.44.47"],
"ingressEndpoint": "sip.callnode.io:5062",
"registrationEndpoint": "sip.callnode.io:5061",
"sipRealm": "sip.callnode.io"
}Alongside trunks, the response reports includedSipTrunks(your plan's included trunk count; the example is a Pro Bundle account, and the count for each plan is on the pricing page), additionalTrunkMonthlyFee(your plan's fee for each trunk beyond that), activeTrunkCount, egressSourceIps (every IP your endpoints must allow — 198.27.122.194 and 192.95.44.47; egressSourceIp is kept as the first entry for older integrations), ingressEndpoint (sip.callnode.io:5062), registrationEndpoint (sip.callnode.io:5061), and sipRealm. Each trunk carries monthlyFeeApplies and nextBillingDate so you can tell which trunks are billable, plus a registration object reporting live registration state.
Errors
| Status | error | Meaning |
|---|---|---|
403 | account_not_verified | Trunk creation requires a verified (KYC) account. |
400 | invalid_name | name is missing or not 1–64 characters. |
400 | invalid_port | egressPort is not a valid port. |
400 | unsupported_transport | egressTransport is not udp, tcp or tls. |
400 | blocked_destination | egressHost resolves to a private or reserved address. |
400 | invalid_allowed_ips | allowedIps is not a list of public IPv4 addresses. |
400 | invalid_default_number | defaultPhoneNumberId is not one of your numbers. |
400 | srtp_requires_registration | deliverySrtp: true on a trunk that is not a registration trunk. |
400 | invalid_outbound_cli | outboundCliNumberId is not one of your active numbers. |
409 | trunk_in_use | A DELETE was refused because live numbers deliver to this trunk — repoint them first, or disable the trunk. |
409 | included_in_plan | A DELETE was refused because this trunk is included in your plan. Disable it instead; it stays free. |
400 | no_config | Neither an egress host nor any ingress IPs were provided. |
400 | no_fields | A PATCH included no recognized fields. |
402 | monthly_fee_confirmation_required | You're beyond your plan's included trunks — re-submit with confirmMonthlyFee: true. |
402 | insufficient_balance | Not enough wallet balance to cover the additional-trunk fee. |
409 | duplicate_name | You already have an active trunk with that name. |
404 | not_found | No such trunk on your account. |
Billing
Your plan includes a set number of trunks at no extra charge. Each trunk beyond your plan's included trunks incurs your plan's additional-trunk monthly fee, billed from your wallet. When a create would push you past the included count, the API first returns 402 monthly_fee_confirmation_required; re-submit the same request with confirmMonthlyFee: trueto acknowledge the fee and create the trunk. Whether a trunk is included or billed is set when you create it, and an included trunk can't be deleted (disable it instead). Per-minute egress and ingress usage bills separately at your plan's SIP rates (see the billing notes in the egress and ingress sections above).
5. Worked examples — connect a PBX or a softphone
Two end-to-end recipes: an Asterisk-based PBX (FreePBX-style) on an IP-authenticated trunk, and a desktop softphone (MicroSIP-style) on a registration trunk. Both receive inbound calls for your numbers and — where termination is enabled on your account — place outbound calls.
Asterisk / FreePBX-style PBX (IP-authenticated trunk)
Create a trunk with your PBX's public IP in allowed source IPs, then add a chan_pjsip trunk on the PBX:
| PBX setting | Value |
|---|---|
| SIP Server / port | sip.callnode.io port 5062, transport UDP |
| Authentication | None (your source IP is the credential) |
| Registration | None |
| Match / identify | All CallNode delivery sources: 198.27.122.194, 192.95.44.47, 192.99.90.89, 198.27.122.204 — see where delivery calls come from |
| Context | Your inbound context (e.g. from-pstn) with inbound routes per DID |
| Codecs | ulaw, alaw (G.711) |
| Outbound CID | One of your CallNode numbers in E.164 — or leave it to the trunk’s Outbound caller ID setting |
Inbound calls present the dialed number as +E.164 (with the plus) in the request URI — match your inbound routes accordingly. For outbound, point an outbound route at the trunk: an E.164 destination reaches your CallNode agents when it is one of your own numbers, and the public network where termination is enabled on your account.
Desktop softphone (registration trunk)
Create a registration trunk and copy the shown-once credentials into the softphone's account settings:
| Account setting | Value |
|---|---|
| Server | sip.callnode.io:5061 |
| Transport | TLS |
| Domain / realm | sip.callnode.io |
| Username | The trunk's generated username (e.g. cnk4m8xq2z7pd) |
| Password | The shown-once password |
Once the dashboard shows the trunk Registered: set the trunk's Outbound caller ID (a softphone's From carries its username, so without this, outbound calls are refused), and point any of your numbers at the trunk with deliver-to-trunk so inbound calls ring the softphone wherever it is registered — including behind NAT.
For the full numbers API — search, purchase, provisioning, and the SIP ingress setup — see Phone Numbers. For the complete outbound call surface, see Outbound Calls.