# Porting script can't handle premium routes

**URL:** <https://hub.soprani.ca/t/porting-script-cant-handle-premium-routes/765>\
**Category:** Issues\
**Tags:** closed\
**Created:** [May 21, 2026, 7:48pm UTC](https://hub.soprani.ca/t/porting-script-cant-handle-premium-routes/765 "2026-05-21T19:48:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![phdavis1027](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phdavis1027](https://hub.soprani.ca/u/phdavis1027)\
**Post date:** [May 21, 2026, 7:48pm UTC](https://hub.soprani.ca/t/porting-script-cant-handle-premium-routes/765/1 "2026-05-21T19:48:39Z")

</div>

- need notification to MUC when registration with the sgx fails
- should not disconnect from original route until reachability succeeds
- should somehow handle case where such failure results in backend set to premium but customer has no tel, since we don’t disconnect the number from bandwidth now action should undoable

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [May 21, 2026, 9:20pm UTC](https://hub.soprani.ca/t/porting-script-cant-handle-premium-routes/765/2 "2026-05-21T21:20:38Z")

</div>

> should not disconnect from original route until reachability succeeds

This seems contrary to the entire system design

---

<div class="post-metadata">

**Author:** ![phdavis1027](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phdavis1027](https://hub.soprani.ca/u/phdavis1027)\
**Post date:** [May 21, 2026, 11:25pm UTC](https://hub.soprani.ca/t/porting-script-cant-handle-premium-routes/765/3 "2026-05-21T23:25:45Z")

</div>

> This seems contrary to the entire system design  
> Sure, and also maybe impossible? The more common failure seems to be registration with the backend sgx. Based on the fact that that the current code does that in an indeterminate order with respect to disconnection, that should be fine?

My thought was that we would switch the NumberChange invocation in porting script to use `should_delete: false` at first then only after the initial NumberChange had succeeded do we send another one with `should_delete: true`. Which would require allowing invocations where the backend and tel are both identical to the current ones, and the only effect of the command would be to disconnect the original number.

But a smaller potential change based on problems from today is that re-ordering commit that puts `change_tel_and_backend` first. That would at least prevent us from disconnecting numbers after we get a person with a premium backend in redis and no tel, but we also want to rewrite that function to prevent such an inconsistent state in the first place?

Just some thoughts, I’m not sure what the right solution is to make this script less brittle.

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [May 21, 2026, 11:32pm UTC](https://hub.soprani.ca/t/porting-script-cant-handle-premium-routes/765/4 "2026-05-21T23:32:21Z")

</div>

What does should delete control? Obviously in the move to premium case we don’t want to delete anything ever and I thought we accounts for that in the old tel == new tel case

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [August 17, 2026, 6:30pm UTC](https://hub.soprani.ca/t/porting-script-cant-handle-premium-routes/765/5 "2026-08-17T18:30:40Z")

</div>

Where are we at here? Are we using this yet?

---

<div class="post-metadata">

**Author:** ![phdavis1027](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phdavis1027](https://hub.soprani.ca/u/phdavis1027)\
**Post date:** [August 18, 2026, 12:43am UTC](https://hub.soprani.ca/t/porting-script-cant-handle-premium-routes/765/6 "2026-08-18T00:43:25Z")

</div>

I’m pretty sure this has stabilized and support is just using it without incident? Support, correct me?
