Disabled Phone number, or set to hang up, reties 4 times

RCCradio

New Member
Nov 12, 2025
13
0
1
56
So we have a few phone numbers in our system that are disabled, or are have the call routing set to "Hangup". When ever someone calls one of these numbers, they get the standard "You call can not be completed as dialed, please try again later." and the call log shows 4 calls at the same time. My SIP provider, Telnyx, said this appears to be my PBX retrying the number. Is there a way to stop the PBX software from retrying on disabled numbers, or those set to "Hangup"?

If I set the number to go to an extension, and suspend the extension I get a recording that says "No route to destination". I tried creating a new extension to route all unused numbers to, but this causes the same 4 call issue.
 
The PBX is most certainly not trying to call itself 4 times. Telnyx is doing it as part of its procedure. Your PBX is replying with a decline, so they keep trying again to make sure it wasn't a temporary failure. You can confirm that by investigating the SNGREP log. You will see 4 invites from them, one after another.
 
Freeswitch generates the response code. There is no common rule that all providers follow. Some want 480 and some want 603. Some would retry for any code to be sure. Everyone is doing their own thing.
 
yeah. I will see if I can set anything to send the code. It's not a big issue, just makes the call history look larger than it is.
 
Ok so on the inbound dialplan for the number that is disabled If Put put the following line in
Code:
        <action application="respond" data="603 Declined"/>
It stops retrying. I placed the line right before the Hangup command.

TagTypeDataOrder
condition${sip_req_user}^\+?1?(##########)$20
actionexportaccountcode=###.###.###.###30
actionrespond603 Declined31
actionhangup40
 
Thanks, I found that out before. Also found out that any changes made in the XML side, would be overwritten when using the Main Dialplan page. Found this out when working on removing the privacy header, as I initially started in the XML.
 
Here is another fun way.
Put a recording saying: The number you are dialing is out of service, or the number is not assigned.
You can also remove trunk on Telnyx side and let them handle it. Add a tag that it belongs to someone.
I always put labels or tags on my carriers, if they allow it.
 
NVGcom.

With Telnyx, if a call is a short duration call, less than 6 seconds, there is an extra charge, once short duration calls amount to over 15% of your calls. This is why I was just having them hangup.
I was removing them from my PBX, but Then it's not as easy to check for unused numbers, when we need to assign a number to a new customer.