Phone number is out of service. Received an unknown call with DID set to XXXXXX

Hi,

Inbound calls is getting to my server but it is saying Phone number is out of service.
I use an E1 PRI line
I have 2 FreePBX servers on the same LAN
Phone Number provisioned by E1 Provider 3809945

Server A - E1 PRI line connected
Server B - Main call center router for my agents

Server A trunk setup
host=ServerB
type=peer
qualify=yes
context=from-internal

Server A Inbound Route setup
Any CID/AnyDID

Server B trunk setup
host=ServerA
type=peer
qualify=yes
context=from-trunk

Server B Inbound Route setup
Agent Extension/Any CID
Set Destination to Agent Extensions

I can make Outbound calls from the main call center Server 2 but agents can’t receive inbound calls.

This is my log to show I can receive calls but it is saying phone number out of service.

– Accepting call from ‘08120867676’ to ‘3809945’ on channel 0/8, span 1
– Executing [[email protected]:1] Set(“DAHDI/i1/08120867676-575”, “__FROM_DID=3809945”) in new stack
– Executing [[email protected]:2] NoOp(“DAHDI/i1/08120867676-575”, “Received an unknown call with DID set to 4609945”) in new stack
– Executing [[email protected]:3] Goto(“DAHDI/i1/08120867676-575”, “s,a2”) in new stack
– Goto (from-pstn,s,2)
– Executing [[email protected]:2] Answer(“DAHDI/i1/08120867676-575”, “”) in new stack
– Executing [[email protected]:3] Wait(“DAHDI/i1/08120867676-575”, “2”) in new stack
– Executing [[email protected]:4] Playback(“DAHDI/i1/08120867676-575”, “ss-noservice”) in new stack
– <DAHDI/i1/08120867676-575> Playing ‘ss-noservice.gsm’ (language ‘en’)
– Executing [[email protected]:5] SayAlpha(“DAHDI/i1/08120867676-575”, “3809945”) in new stack
– <DAHDI/i1/08120867676-575> Playing ‘digits/3.gsm’ (language ‘en’)
– <DAHDI/i1/08120867676-575> Playing ‘digits/8.gsm’ (language ‘en’)
– <DAHDI/i1/08120867676-575> Playing ‘digits/0.gsm’ (language ‘en’)
– <DAHDI/i1/08120867676-575> Playing ‘digits/9.gsm’ (language ‘en’)
– <DAHDI/i1/08120867676-575> Playing ‘digits/9.gsm’ (language ‘en’)
– <DAHDI/i1/08120867676-575> Playing ‘digits/4.gsm’ (language ‘en’)
– <DAHDI/i1/08120867676-575> Playing ‘digits/5.gsm’ (language ‘en’)
– Executing [[email protected]:6] Hangup(“DAHDI/i1/08120867676-575”, “”) in new stack

Please assist

You don’t have an inbound route for DID 3809945.

Hi,

I have inbound route on both servers.

Inbound route for Server A - E1 PRI

Inbound route for Server B - main call center for agents
Same as inbound route on Server A
Agent Extension/Any CID example 1000/any CID, 1001/any CID

You didn’t actually share the DID you are using (at least, you didn’t share one that would work), but the system is crystal clear on this - you do not have an inbound route that corresponds to your DID of 3809945.

It’s considered good practice to always include a “default” DID entry of “<blank>/<blank>” (nothing set in the DID or CID fields). This way, if your provider sends you a call with a mangled DID, you can still answer it.

Hello cynjut,

See the DID am using.

Same inbound route config on the 2 servers

Inbound Route Destination set on Server A is to trunk
Inbound Route Destination set on Server B is to inbound queues for call agemts

I expect your problem is that you are using an unsupported version of FreePBX:

http://wiki.freepbx.org/display/PPS/Elastix+and+PBXinaFlash+to+FreePBX+Distro+Conversion+Tool

1 Like

How is this going to help my issue?

Hi,

It seems that the DID is: 4609945

Try to set an inbound route for the number 4609945.

If it does not work, do this instead:

  1. On server A and B create a general inbound with this pattern: _X. (call it Any).
  2. On server A and B create a general inbound with blank fields (call it Any).

A general inbound with blank fields is routed to the s extension

Thank you,

Daniel Friedman
Trixton LTD.

Hello danielf,

Appreciate your assistance.
Try to set an inbound route for the number 4609945. It was my error.

On server A and B create a general inbound with this pattern: _X. (call it Any).
On server A and B create a general inbound with blank fields (call it Any).

Please advise;
Server A destination is set to Trunks (being the server where E1 PRI line is attached)
Server B destination is set to my agent extensions (being the server where agent extensions are setup)

Is this correct?

Hello danielf,

That is exactly what i did and it worked.

Thanks everyone.

Hello,

I am glad that you succeeded to solve your problem.

But, I did not understood exactly what was your problem. Was it the incorrect DID configuration or the inbound routes configuration?

Thank you,

Daniel Friedman
Trixton LTD.

It was inbound routes configuration.