This guide is for teams that page people through Opsgenie today and do not want to move to another hosted service. It is written for infrastructure, SRE and security teams at banks, payment companies and fintechs. In these teams, alert content is sensitive and the pager must survive the outage it reports.
By the end you will have four things. First, the dates and what Atlassian actually offers. Second, a read-only script that exports your Opsgenie setup before it disappears. Third, a mapping from Opsgenie concepts to a self-hosted design. Fourth, a hardened SIP trunk configuration and a cutover plan that never leaves you without a pager.
Short version. Opsgenie sales ended on 4 June 2025. On 5 April 2027, Atlassian says, "access to Opsgenie will be shut off" and "any unmigrated data in Opsgenie will also be deleted." Export your schedules, escalations, heartbeats and integrations now, through the API. Then choose: Jira Service Management, another hosted pager, or a self-hosted stack that calls through your own SIP trunk.
What Atlassian announced, and what it means
Atlassian's announcement gives two dates. End of sale was 4 June 2025: since then nobody can buy or sign up for Opsgenie. End of support is 5 April 2027. On that date access is shut off and unmigrated data is deleted.
Atlassian's recommended destination is Jira Service Management. Its migration page says on-call schedules, escalation policies and incident workflows are moved automatically. An Opsgenie owner who is also a site admin starts it from Settings > Plan your move. You get a 14-day migration demo and 120 days of parallel access after you schedule the move.
Three details are easy to miss:
- Renewals are limited. Atlassian says renewals are still allowed after end of sale, but only if the term ends before 5 April 2027. Edition upgrades and downgrades are not available.
- Opsgenie-provided phone numbers do not move. Atlassian's support page says these numbers "aren't supported in Jira Service Management." You must port them to your own Twilio account before you migrate. Atlassian warns a number that is not transferred in time could be "lost permanently."
- No new Atlassian-provided numbers. Atlassian stopped selling new incoming call routing numbers on 18 December 2025.
If your team uses Opsgenie's incoming call routing, start the number port first. Twilio's regulatory checks vary by country and can take days or weeks.
Step 1: export everything while you still can
Do this first, whatever you decide later. It is read-only and takes an afternoon. A complete export lets you rebuild elsewhere, and it gives auditors a record of how paging worked.
The Opsgenie REST API uses an API integration key in the header Authorization: GenieKey <key>. The documentation says the API integration must not be restricted by access configurations. EU accounts must use https://api.eu.opsgenie.com instead of https://api.opsgenie.com.
#!/usr/bin/env bash # Read-only export of an Opsgenie account. Needs curl and jq. set -euo pipefail API="${OPSGENIE_API:-https://api.opsgenie.com}" # EU: https://api.eu.opsgenie.com KEY_FILE="${KEY_FILE:-./opsgenie.key}" # API integration key, chmod 600 OUT="opsgenie-export-$(date +%F)" mkdir -p "$OUT/schedules" "$OUT/teams" og() { curl -sS --fail -H "Authorization: GenieKey $(cat "$KEY_FILE")" "$API$1"; } og "/v2/schedules?expand=rotation" > "$OUT/schedules.json" og "/v2/escalations" > "$OUT/escalations.json" og "/v2/heartbeats" > "$OUT/heartbeats.json" og "/v2/integrations" > "$OUT/integrations.json" og "/v2/teams" > "$OUT/teams.json" for id in $(jq -r '.data[].id' "$OUT/schedules.json"); do og "/v2/schedules/$id" > "$OUT/schedules/$id.json" og "/v2/schedules/$id/timeline?interval=3&intervalUnit=months" \ > "$OUT/schedules/$id-timeline.json" og "/v2/schedules/$id.ics" > "$OUT/schedules/$id.ics" sleep 1 done for id in $(jq -r '.data[].id' "$OUT/teams.json"); do og "/v2/teams/$id/routing-rules" > "$OUT/teams/$id-routing-rules.json" sleep 1 done echo "Export written to $OUT" Why it matters: each endpoint holds a different part of your paging logic. The .ics calendar alone is not enough. A migration write-up from incident.io notes that calendar exports miss routing rules and escalation policies, and cover only the next 12 months.
How to verify: count objects in each file and compare with the Opsgenie UI. For example, jq '.data | length' "$OUT/escalations.json" should match the number of escalation policies you see.
Notes on the endpoints, from the Opsgenie API documentation:
-
GET /v2/schedules?expand=rotationreturns schedules with their rotations. -
GET /v2/schedules/:identifier/timelineacceptsinterval,intervalUnit(days,weeksormonths, defaultweeks) andexpand(base,forwarding,override). -
GET /v2/schedules/:identifier.icsreturns the calendar file. -
GET /v2/teams/:teamIdentifier/routing-rulesreturns a team's routing rules. -
GET /v2/heartbeatsreturns each heartbeat's name, interval, interval unit and owner team. -
GET /v2/integrationslists integrations; you can filter bytype,teamIdorteamName.
If you send too many requests, Opsgenie returns HTTP 429. Every response carries an X-RateLimit-State header (OK, BURST or THROTTLED). The documentation recommends exponential backoff. The sleep 1 in the loop keeps a small export well below the limits.
Two more checks before you leave Step 1:
- Heartbeats. They are separate from alert integrations and easy to forget. Write down each heartbeat, its interval, and what sends the pings.
- Who rings whom. Use
GET /v2/schedules/:id/on-calls?flat=trueto list the people on call right now. Compare that with what your team believes. Differences show stale schedules you should not copy.
Store the export with your other audit records. It contains names and phone numbers, so treat it as personal data.
Step 2: choose a destination honestly
Not every team should self-host. For many, Jira Service Management is the fastest safe path. Here is a practical comparison:
| Option | Phone calls via | Alert data stays in-house | Ongoing work | Good fit when |
|---|---|---|---|---|
| Jira Service Management | Atlassian | No | Low | You already use Jira, and vendor processing is approved |
| Another hosted pager (PagerDuty, incident.io, Grafana Cloud IRM, others) | The vendor | No | Low | You want to leave Atlassian, and vendor processing is approved |
| GoAlert plus Twilio | Your Twilio account | Mostly; Twilio sees the call text | Medium | You want schedules in-house and accept a voice API |
| GoAlert plus your own SIP dialer | Your SIP trunk | Yes | Medium to high | Strict data rules, or you want an independent path |
| Small custom receiver plus SIP dialer | Your SIP trunk | Yes | Medium to high | Schedules already live elsewhere; you only need calls |
Avoid Grafana OnCall OSS as a destination. It was archived in March 2026; see our guide to Grafana OnCall OSS after the archive.
Icinga released Icinga Notifications 1.0.0 on 29 October 2026, with schedules, rotations and escalations. Its own announcement says: "What 1.0 does not do is call a phone or push to a mobile app." A webhook can hand alerts to a voice gateway that you run. That is the same gap the rest of this guide fills.
Self-hosting is a good choice when at least two of these are true:
- Alert text contains data that must not leave approved systems.
- You want to own the caller ID and the phone numbers, not rent them from a vendor.
- The pager must keep working when your main cloud region or SaaS providers are down.
- You already run Linux services with patching, monitoring and backups.
Step 3: map Opsgenie concepts to a self-hosted design
Opsgenie bundled many features. A self-hosted design splits them into smaller parts, and each part has an owner.
| Opsgenie concept | Self-hosted equivalent |
|---|---|
| Integration (API key per source) | Alertmanager webhook receiver, or a GoAlert integration key |
| Team routing rules | Alertmanager routes, or GoAlert services |
| Schedules and rotations | GoAlert schedules, or a calendar your receiver reads |
| Escalation policy | GoAlert escalation policy, or a state machine in your receiver |
| Notification rules (call, SMS, app) | Contact methods: a webhook to your SIP dialer, plus SMS or chat |
| Heartbeats | An always-firing alert, plus an external check on the receiver |
| Incoming call routing | An inbound route on your SIP trunk to the current on-call person |
| Alert acknowledgement | Press 1 on the call, or the web UI |
The design that keeps most of the Opsgenie experience is GoAlert for schedules and escalation, plus a small SIP dialer for the phone call.
GoAlert is an open-source on-call tool built by Target. It supports Twilio for voice and SMS. Since v0.31.0 it can also send webhooks as a contact method, both for on-call notifications and directly as an escalation policy step. That webhook is how you plug in your own dialer. The latest release on GitHub at the time of writing is v0.34.1.
The GoAlert webhook payload for a new alert includes AlertID, Summary, Details, ServiceID, ServiceName and GoAlertURL. Your dialer reads AlertID and a short Summary, places the call, and acknowledges the alert in GoAlert when the engineer presses 1.
GoAlert exposes a GraphQL API. Since v0.33.0, its GraphQL API keys are no longer experimental. The schema includes an updateAlerts mutation that takes alertIDs and a newStatus, and StatusAcknowledged is one of the status values. The acknowledgement looks like this; check the field names against your version's schema:
mutation { updateAlerts(input: { alertIDs: [1234], newStatus: StatusAcknowledged }) { id } } Why it matters: the acknowledgement stops GoAlert's escalation. Without it, GoAlert keeps escalating even after someone answered. Verify by acknowledging a test alert from the phone and checking that the alert shows as acknowledged in the GoAlert UI.
Give the dialer's API key the smallest role that can acknowledge alerts. Store it in a file readable only by the dialer's service account.
If you do not want GoAlert, a small custom receiver works too. Our Grafana OnCall article shows that design in detail, with Alertmanager webhooks, Asterisk call files, FreeSWITCH originate, and Twilio <Gather>. This guide does not repeat it. It focuses on the part most guides skip: running the SIP trunk safely.
Step 4: a hardened SIP trunk for paging
A SIP trunk is a phone line delivered over IP by a carrier. Asterisk or FreeSWITCH register to it and place calls through it. For a pager, the trunk has three jobs: stay registered, place calls reliably, and accept nothing from strangers.
The configuration below uses Asterisk's res_pjsip. It follows the trunk example in the Asterisk documentation, with TLS signalling and encrypted media added. Hostnames, ports and credentials are placeholders. Use the values your carrier documents.
; /etc/asterisk/pjsip.conf (Asterisk res_pjsip) [transport-tls] type=transport protocol=tls bind=0.0.0.0:5061 method=tlsv1_2 ; available values depend on the PJSIP build ca_list_file=/etc/asterisk/keys/carrier-ca.pem verify_server=yes ; check the carrier's certificate ; cert_file and priv_key_file only if the carrier requires client certificates [carrier-a] type=registration outbound_auth=carrier-a server_uri=sip:sip.carrier-a.example:5061;transport=tls client_uri=sip:pager-account@sip.carrier-a.example retry_interval=60 ; default 60 seconds forbidden_retry_interval=300 ; keep retrying after a 403 max_retries=10000 ; default is 10, then Asterisk gives up [carrier-a] type=auth auth_type=userpass username=pager-account password=CHANGE-ME [carrier-a] type=aor contact=sip:sip.carrier-a.example:5061;transport=tls qualify_frequency=60 ; default 0 means never checked qualify_timeout=3.0 [carrier-a] type=endpoint context=from-carrier-a ; a context that does nothing dangerous disallow=all allow=ulaw outbound_auth=carrier-a aors=carrier-a media_encryption=sdes ; SRTP; only if the carrier supports it dtmf_mode=rfc4733 ; default; carries the "press 1" [carrier-a] type=identify endpoint=carrier-a match=sip.carrier-a.example Why each setting matters, from the Asterisk documentation:
-
max_retries. Outbound registrations retry everyretry_intervalseconds, 60 by default. The defaultmax_retriesis 10, after which Asterisk stops trying. A carrier outage of about ten minutes can leave the pager silently unregistered. Set it high and monitor it. -
forbidden_retry_interval. This controls retries after a 403 Forbidden. Those retries count towardmax_retries. A short carrier-side authentication fault should not stop registration for good. -
qualify_frequency. The default is 0, which means Asterisk never checks whether the carrier is reachable. With 60, Asterisk sends an OPTIONS request every minute. A contact that does not answer withinqualify_timeout(default 3.0 seconds) is marked unavailable. -
media_encryption=sdes. The allowed values areno,sdesanddtls. SDES needs TLS signalling, because the media keys travel inside the SIP message. Use it only if your carrier supports SRTP. -
dtmf_mode=rfc4733. This is the default and sends key presses out of band. The acknowledgement depends on it. -
identifywithmatch. Asterisk accepts unauthenticated inbound requests on this endpoint only if they come from the carrier's address.
How to verify: run asterisk -rx "pjsip show registrations". Each trunk should show Registered. For one trunk, pjsip show registration carrier-a prints its full settings. Then place a test call to your own phone and press 1.
The Asterisk secure calling tutorial gives one more tip. Do not add transport=transport-tls to the endpoint, because that can cause "Connection refused" errors with pjproject 2.4.5 and later. Let pjproject choose the transport.
Lock the box down
A paging server only needs to talk to a few places. Restrict it at the network level, not just in Asterisk.
- Inbound SIP and RTP only from your carriers' published address ranges. Drop everything else at the firewall.
- Leave
allow_unauthenticated_optionsat its default ofno. The Asterisk documentation warns that enabling it can let outside parties enumerate endpoint names. - A dialplan context per trunk that cannot dial out. Calls arriving from the carrier should only reach the inbound on-call route, never an outbound trunk. This prevents toll fraud through your pager.
- Outbound calls only to the numbers in your on-call roster. A pager has no reason to call premium or international numbers. Many carriers let you block those destinations on their side too.
- Management access only from your admin network. That includes SSH, the Asterisk manager interface and any web UI.
If you choose FreeSWITCH instead, apply the same rules. Keep it patched; a 2026 bug let a single SIP MESSAGE run commands on the server. See the FreeSWITCH CVE-2026-116779 fix guide.
Two trunks, two carriers
One carrier is one failure domain. For a pager in a regulated business, use two carriers with separate registrations, for example carrier-a and carrier-b.
The dialer logic is simple: place the attempt via trunk A. If it fails without the call being answered, place the same attempt via trunk B. Record which trunk carried each call. A voice API such as Twilio or Telnyx can serve as the second path. Telnyx, for example, supports both credential and IP-based authentication for SIP trunks.
Check your carrier contracts too. Some trunks are sold for inbound calls only, or limit concurrent calls. A pager needs outbound calls and at least as many channels as the people it may call at once.
Step 5: replace heartbeats and incoming call routing
These two Opsgenie features are often forgotten until after the cutover.
Heartbeats. In Opsgenie, a heartbeat is a URL that a job pings at a fixed interval. If the ping stops, Opsgenie raises an alert, which defaults to priority P3. To replace it:
- For monitoring systems, send an always-firing alert from Alertmanager to your receiver. If the receiver stops seeing it, it should page someone.
- For cron jobs and batch work, have the job push a "last success" timestamp to your monitoring system, and alert when it gets too old.
- Check the receiver itself from outside your network, for example with an external uptime monitor. That covers the case where your whole site, including monitoring, is down.
Incoming call routing. Opsgenie could forward a phone call to whoever was on call. With your own trunk, you can rebuild this as an inbound route. A call to the published number reaches a small dialplan. That dialplan asks your scheduler who is on call, then forwards the call. If Opsgenie provided the number, port it out first, as described above.
Step 6: cut over without a gap
Never switch off the old pager before the new one has proven itself on real alerts. A parallel run is cheap and avoids a gap.
1. Send every alert to both systems. In Alertmanager, a route with continue: true keeps matching later sibling routes, so one alert can go to Opsgenie and to the new receiver. The default is false.
route: receiver: default routes: - matchers: ['severity="page"'] receiver: opsgenie continue: true # default false; keep matching the next route - matchers: ['severity="page"'] receiver: new-pager receivers: - name: opsgenie opsgenie_configs: - api_key_file: /etc/alertmanager/opsgenie.key # conflicts with api_key - name: new-pager webhook_configs: - url_file: /etc/alertmanager/new-pager-url # url and url_file are exclusive send_resolved: true # default true timeout: 10s # default 0s means no timeout - name: default Why it matters: both pagers see the same alerts, so you can compare them call by call. The webhook timeout defaults to 0s, which means no timeout. A short timeout stops one slow receiver from holding up notifications. Validate the configuration before you reload Alertmanager. The timeout field is in recent Alertmanager versions; check the reference for yours.
2. During the parallel run, only Opsgenie wakes people. Point the new system at a test phone, or at the on-call engineer's phone with a different caller ID. Compare timing and content for at least two weeks.
3. Run the failure drills. Before cutover, test each of these and write down the result:
- The primary does not answer. Does the call escalate to the secondary?
- The engineer answers but does not press 1. Is that treated as unacknowledged?
- Trunk A is down. Does trunk B carry the call?
- The receiver restarts mid-escalation. Does it resume?
- The alert resolves on its own. Do pending calls stop?
4. Flip, then keep Opsgenie as a backup for a short time. Make the new system primary. Keep Opsgenie receiving alerts, routed to a team channel, until your contract ends or the deadline is close.
5. Remove the old keys. Delete the Opsgenie receiver from Alertmanager. Revoke the API keys you used for the export and integrations. Integration keys are specific to Opsgenie, so nothing else should depend on them.
Common mistakes
- Waiting for the deadline. On 5 April 2027 the data is deleted. Export now, even if you migrate later.
- Exporting only the calendar. The
.icsfile misses escalation policies and routing rules, and covers only 12 months. - Forgetting heartbeats. They silently guard batch jobs and backups. If they vanish, failures go unnoticed.
- Leaving
max_retriesat its default. After 10 failed registration attempts, Asterisk stops trying. The pager looks fine until the next real alert. - No
qualify_frequency. The default is 0, so Asterisk never notices an unreachable carrier. - A dialplan that lets inbound calls dial out. That turns your pager into a toll-fraud target.
- One carrier, one region. The pager must not share a failure domain with what it reports on.
- Acknowledging in the dialer but not in the scheduler. If GoAlert is never told, it keeps escalating and wakes the whole team.
- Reading sensitive data aloud. Say what broke and where to look. Never read customer, card or transaction data over a phone line.
- Porting phone numbers too late. Regulatory checks can take weeks, and an unported Opsgenie number can be lost.
Copy-paste checklist
DEADLINES [ ] Recorded: Opsgenie shuts off 5 April 2027, unmigrated data deleted [ ] Checked contract end date (renewals only if term ends before 5 April 2027) [ ] Started port of any Opsgenie-provided phone numbers to Twilio EXPORT (read-only) [ ] API integration key, not restricted by access configurations [ ] Correct base URL (EU: api.eu.opsgenie.com) [ ] schedules (expand=rotation), per-schedule detail, timeline and .ics [ ] escalations, team routing rules, integrations, teams [ ] heartbeats, with interval and the job that pings each one [ ] Object counts match the UI; export stored as personal data DESIGN [ ] Destination chosen and approved (JSM, hosted, or self-hosted) [ ] Each Opsgenie concept mapped to an owner in the new design [ ] GoAlert webhook contact method -> SIP dialer (if using GoAlert) [ ] Dialer acknowledges in GoAlert via API key with minimal role SIP TRUNK (Asterisk res_pjsip) [ ] TLS transport with verify_server=yes and the carrier's CA [ ] max_retries raised; forbidden_retry_interval set [ ] qualify_frequency set on the carrier AOR [ ] media_encryption=sdes if the carrier supports SRTP [ ] identify/match limited to the carrier; firewall to carrier ranges [ ] Inbound context cannot dial out; outbound limited to roster numbers [ ] Second carrier or voice API as fallback path [ ] "pjsip show registrations" monitored and alerting CUTOVER [ ] Alertmanager parallel route with continue: true [ ] Webhook timeout set (default 0s = none) [ ] Two weeks of parallel run compared call by call [ ] Drills: no answer, no key press, trunk down, restart, auto-resolve [ ] Heartbeats replaced; external check on the receiver [ ] Opsgenie receiver removed and API keys revoked What we are building
errorbudget is building Callout, a self-hosted service that phones the on-call engineer through your own SIP trunk and escalates until someone presses 1. It is in development and not available yet. If you are planning an Opsgenie exit and want that piece without building it yourself, you can join the early-access list.
Sources
- The Evolution of IT Operations and Opsgenie (Atlassian)
- Opsgenie migration to Jira Service Management (Atlassian)
- Incoming call routing after migration (Atlassian Support)
- How to switch Opsgenie phone numbers to Twilio (Atlassian Support)
- Ending sale of Atlassian-provided Incoming Call Routing numbers (Atlassian Community)
- Opsgenie Schedule API
- Opsgenie Who is On Call API
- Opsgenie Escalation API
- Opsgenie Heartbeat API
- Opsgenie Integration API
- Opsgenie Team API
- Opsgenie Team Routing Rule API
- Opsgenie API rate limiting
- 12 Opsgenie data export gotchas (incident.io, vendor article)
- Opsgenie end of life: where open-source alerting stands in 2026 (Icinga)
- GoAlert releases (GitHub)
- GoAlert webhook notification package
- GoAlert graphql2 package
- Asterisk res_pjsip configuration examples
- Asterisk: configuring outbound registrations
- Asterisk res_pjsip module configuration reference
- Asterisk secure calling tutorial
- Telnyx: SIP trunking with Asterisk
- Alertmanager configuration reference
Originally published on errorbudget.io, where we also publish fix guides for actively exploited vulnerabilities.