Some inbound callers receive "number not in service" message

Hello there,

Some inbound callers are getting a “number not in service” message. This only seems to happen to certain people/numbers. It works fine for most other callers.

Outbound works 100%

FreeBPX ver. 13.0

SipStation trunk

Asterisk log (sanitized)

[2018-09-06 12:52:15] VERBOSE[27983][C-000xxxxx] netsock2.c: == Using SIP RTP TOS bits 184
[2018-09-06 12:52:15] VERBOSE[27983][C-000xxxxx] netsock2.c: == Using SIP RTP CoS mark 5
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:1] NoOp(“SIP/192.xxx.xxx.xxx-000xxxxx”, “Received incoming SIP connection from unknown peer to 20xxxxxxxxxxxx21”) in new stack
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:2] Set(“SIP/192.xxx.xxx.xxx-000xxxxx”, “DID=20xxxxxxxxxxxx21”) in new stack
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:3] Goto(“SIP/192.xxx.xxx.xxx-000xxxxx”, “s,1”) in new stack
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Goto (from-sip-external,s,1)
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/192.xxx.xxx.xxx-000xxxxx”, “1?setlanguage:checkanon”) in new stack
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Goto (from-sip-external,s,2)
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:2] Set(“SIP/192.xxx.xxx.xxx-000xxxxx”, “CHANNEL(language)=en”) in new stack
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:3] GotoIf(“SIP/192.xxx.xxx.xxx-000xxxxx”, “1?noanonymous”) in new stack
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Goto (from-sip-external,s,5)
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:5] Set(“SIP/192.xxx.xxx.xxx-000xxxxx”, “TIMEOUT(absolute)=15”) in new stack
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] func_timeout.c: – Channel will hangup at 2018-09-06 12:52:30.875 EDT.
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:6] Log(“SIP/192.xxx.xxx.xxx-000xxxxx”, “WARNING,“Rejecting unknown SIP connection from 141.xxx.xxx.xxx””) in new stack
[2018-09-06 12:52:15] WARNING[21425][C-000xxxxx] Ext. s: “Rejecting unknown SIP connection from 141.xxx.xxx.xxx”
[2018-09-06 12:52:15] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:7] Answer(“SIP/192.xxx.xxx.xxx-000xxxxx”, “”) in new stack
[2018-09-06 12:52:16] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:8] Wait(“SIP/192.xxx.xxx.xxx-000xxxxx”, “2”) in new stack
[2018-09-06 12:52:18] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:9] Playback(“SIP/192.xxx.xxx.xxx-000xxxxx”, “ss-noservice”) in new stack
[2018-09-06 12:52:18] VERBOSE[21425][C-000xxxxx] file.c: – <SIP/192.xxx.xxx.xxx-000xxxxx> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[2018-09-06 12:52:23] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:10] PlayTones(“SIP/192.xxx.xxx.xxx-000xxxxx”, “congestion”) in new stack
[2018-09-06 12:52:23] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:11] Congestion(“SIP/192.xxx.xxx.xxx-000xxxxx”, “5”) in new stack
[2018-09-06 12:52:28] VERBOSE[21425][C-000xxxxx] pbx.c: == Spawn extension (from-sip-external, s, 11) exited non-zero on ‘SIP/192.xxx.xxx.xxx-000xxxxx’
[2018-09-06 12:52:28] VERBOSE[21425][C-000xxxxx] pbx.c: – Executing [[email protected]:1] Hangup(“SIP/192.xxx.xxx.xxx-000xxxxx”, “”) in new stack
[2018-09-06 12:52:28] VERBOSE[21425][C-000xxxxx] pbx.c: == Spawn extension (from-sip-external, h, 1) exited non-zero on ‘SIP/192.xxx.xxx.xxx-000xxxxx’
[2018-09-06 12:52:47] WARNING[27983] chan_sip.c: Retransmission timeout reached on transmission 1650945377-1381248119-1124448252 for seqno 1 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response

Any help is much appreciated!

You don’t have enough trunks set up (one per incoming IP address).

Dave, thanks for the response, not sure I follow though.

Could you clarify what you mean by one per incoming IP address?

I have a single sipstation trunk with 1 DID number

I have two trunks defined:

fpbx-1-uTWxxxxxxxxx
fpbx-2-uTWxxxxxxxxx

if I don’t have enough trunks defined then how do many of my inbound calls get through fine, but others don’t?

You have an incoming call from an unknown IP address. If this is, in fact, one of your “number not in service” calls, then you don’t have a trunk set up for the IP address that this call came from.

Since everything is sanitized, there’s no way I can know whether you’ve got this set up right or not. However, the error message is pretty straightforward.

Thanks for the info Dave. You were right.

That “incoming sip connection from unknown peer” was NOT the call that received the “number not in service” message. I got the time frame wrong.

Once I figured out the right time frame I went back to search the logs for any evidence of the call and found NONE. There is no indication that anyone tried to call during the time frame.

Does this mean that it is a sipstation problem?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.