# Inbound call fails

**URL:** <https://community.freepbx.org/t/inbound-call-fails/78609>\
**Category:** Providers\
**Created:** [October 12, 2021, 8:14pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609 "2021-10-12T20:14:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyiu](https://community.freepbx.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kyiu](https://community.freepbx.org/u/kyiu)\
**Post date:** [October 12, 2021, 8:14pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/1 "2021-10-12T20:14:58Z")

</div>

Re:FreePBX 15.0  
I’m troubleshooting the inbound call failure. The outbound is working just fine. I’m not getting any inbound calls. When I called the numbers I this error message on asterisk:  
I got this error message on asterisk: WARNING[31542][C-0000000d]: Ext. s:7 @ from-sip-external: “Rejecting unknown SIP connection from 169.55.63.65:5060”. Looks like my ISP routed the call to my server, for unknown reason it get dropped instead of routing it to an extension. Why?

---

<div class="post-metadata">

**Author:** ![adell4444](https://community.freepbx.org/user_avatar/community.freepbx.org/adell4444/32/21492_2.png) [@adell4444](https://community.freepbx.org/u/adell4444)\
**Post date:** [October 12, 2021, 8:20pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/2 "2021-10-12T20:20:22Z")

</div>

If you receive this error message but the call is expected from your provider, your incoming settings on your trunk is not setup correctly for how the provider is sending you the calls.

---

<div class="post-metadata">

**Author:** ![david55](https://community.freepbx.org/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@david55](https://community.freepbx.org/u/david55)\
**Post date:** [October 12, 2021, 8:35pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/3 "2021-10-12T20:35:06Z")

</div>

A common cause of this sort of failure, on FreePBX, is enabling both chan\_sip and chan\_pjsip, but configuring for incoming calls in chan\_sip, Generally you want to disable chan\_sip and only use chan\_pjsip.

---

<div class="post-metadata">

**Author:** ![Stewart1](https://community.freepbx.org/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@Stewart1](https://community.freepbx.org/u/Stewart1)\
**Post date:** [October 12, 2021, 8:35pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/4 "2021-10-12T20:35:34Z")

</div>

This error occurs when the incoming call cannot be matched to a trunk. If this is a pjsip trunk, set Match (Permit) to the list of all addresses from which the provider can send calls.

If chan\_sip and using IP auth, if Bind Port is 5160 you’ll need to specify that port on the provider’s portal. A few providers including Vitelity don’t support that, though you can use Vitelity with registration on a non-standard port.

For other situations, please provide details.

---

<div class="post-metadata">

**Author:** ![kyiu](https://community.freepbx.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kyiu](https://community.freepbx.org/u/kyiu)\
**Post date:** [October 12, 2021, 8:37pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/5 "2021-10-12T20:37:54Z")

</div>

here’s the setup:  
OUTGOING:  
type=friend  
trustrpid=yes  
sendrpid=no  
qualify=yes  
keepalive=45  
insecure=port,invite  
[host=xxx.xxx.com](http://host=xxx.xxx.com)  
[fromdomain=server.isp.com](http://fromdomain=server.isp.com)  
dtmfmode=rfc2833  
disallow=all  
directmedia=no  
context=from-trunk  
allow=ulaw, alaw

INCOMING:  
type=friend  
port=5060  
[host=server.isp.com](http://host=server.isp.com)  
context=from-trunk

---

<div class="post-metadata">

**Author:** ![kyiu](https://community.freepbx.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kyiu](https://community.freepbx.org/u/kyiu)\
**Post date:** [October 12, 2021, 8:39pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/6 "2021-10-12T20:39:41Z")

</div>

FYI, my isp said they don’t support pjsip…

---

<div class="post-metadata">

**Author:** ![adell4444](https://community.freepbx.org/user_avatar/community.freepbx.org/adell4444/32/21492_2.png) [@adell4444](https://community.freepbx.org/u/adell4444)\
**Post date:** [October 12, 2021, 8:41pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/7 "2021-10-12T20:41:41Z")

</div>

> [@kyiu](#):
>
> my isp said they don’t support pjsip

That’s ridiculous. PJSIP is just a channel driver - it’s still SIP.

---

<div class="post-metadata">

**Author:** ![dicko](https://community.freepbx.org/user_avatar/community.freepbx.org/dicko/32/8712_2.png) [@dicko](https://community.freepbx.org/u/dicko)\
**Post date:** [October 12, 2021, 8:44pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/8 "2021-10-12T20:44:02Z")

</div>

As ever, we will ask you to pastebin a log of a failed call.

---

<div class="post-metadata">

**Author:** ![kyiu](https://community.freepbx.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kyiu](https://community.freepbx.org/u/kyiu)\
**Post date:** [October 12, 2021, 8:45pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/9 "2021-10-12T20:45:39Z")

</div>

Yes, I’ve setup pjsip previously and got no where. I switched to chan\_sip to try for a better luck. At least chan\_sip is giving the error message. I got nothing with pjsip.

---

<div class="post-metadata">

**Author:** ![dicko](https://community.freepbx.org/user_avatar/community.freepbx.org/dicko/32/8712_2.png) [@dicko](https://community.freepbx.org/u/dicko)\
**Post date:** [October 12, 2021, 8:46pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/10 "2021-10-12T20:46:24Z")

</div>

Without a log everyone , including you, will continue to guess . . .

---

<div class="post-metadata">

**Author:** ![kyiu](https://community.freepbx.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kyiu](https://community.freepbx.org/u/kyiu)\
**Post date:** [October 12, 2021, 8:49pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/11 "2021-10-12T20:49:57Z")

</div>

Sorry…where is the log file:kissing\_closed\_eyes:

---

<div class="post-metadata">

**Author:** ![Stewart1](https://community.freepbx.org/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@Stewart1](https://community.freepbx.org/u/Stewart1)\
**Post date:** [October 12, 2021, 8:50pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/12 "2021-10-12T20:50:04Z")

</div>

Try this for a simple fix; you can clean it up later:

Create a new pjsip trunk (leave the chan\_sip trunk in place for outgoing).  
Registration: None  
Authentication: None  
SIP Server: [sbc1.ixica.com](http://sbc1.ixica.com)  
Match (Permit): 169.55.63.65,199.247.85.15,184.169.220.75,64.120.214.84

If needed, set up a catch-all Inbound Route to see the format they are using for the DID.

---

<div class="post-metadata">

**Author:** ![dicko](https://community.freepbx.org/user_avatar/community.freepbx.org/dicko/32/8712_2.png) [@dicko](https://community.freepbx.org/u/dicko)\
**Post date:** [October 12, 2021, 8:51pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/13 "2021-10-12T20:51:51Z")

</div>

[https://wiki.freepbx.org/display/SUP/Providing+Great+Debug#ProvidingGreatDebug-AsteriskLogs-PartII](https://wiki.freepbx.org/display/SUP/Providing+Great+Debug#ProvidingGreatDebug-AsteriskLogs-PartII)

---

<div class="post-metadata">

**Author:** ![Stewart1](https://community.freepbx.org/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@Stewart1](https://community.freepbx.org/u/Stewart1)\
**Post date:** [October 12, 2021, 8:52pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/14 "2021-10-12T20:52:17Z")

</div>

log file is in  
`/var/log/asterisk/full`  
To see the SIP details, at the Asterisk command prompt (not a shell prompt) type  
`pjsip set logger on`  
`sip set debug on`  
make the failing incoming call, then paste the Asterisk log for the call.

---

<div class="post-metadata">

**Author:** ![kyiu](https://community.freepbx.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kyiu](https://community.freepbx.org/u/kyiu)\
**Post date:** [October 12, 2021, 9:06pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/15 "2021-10-12T21:06:09Z")

</div>

> [@Stewart1](#):
>
> 169.55.63.65,199.247.85.15,184.169.220.75,64.120.214.84

wow!! that works. I’ve disable the chan\_sip trunk - just running on the pjsip. Both inbound and outbound is working. Seems my isp tech doesn’t know about their own system. pjsip works on their trunks.

---

<div class="post-metadata">

**Author:** ![kyiu](https://community.freepbx.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kyiu](https://community.freepbx.org/u/kyiu)\
**Post date:** [October 12, 2021, 9:08pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/16 "2021-10-12T21:08:12Z")

</div>

BTW, I made the mistake on disclosing my sip trunk server ip. Can you guys mask it out for me? thanks,

---

<div class="post-metadata">

**Author:** ![dicko](https://community.freepbx.org/user_avatar/community.freepbx.org/dicko/32/8712_2.png) [@dicko](https://community.freepbx.org/u/dicko)\
**Post date:** [October 12, 2021, 9:09pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/17 "2021-10-12T21:09:01Z")

</div>

No, but you can edit your post

---

<div class="post-metadata">

**Author:** ![kyiu](https://community.freepbx.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kyiu](https://community.freepbx.org/u/kyiu)\
**Post date:** [October 12, 2021, 9:10pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/18 "2021-10-12T21:10:21Z")

</div>

I’ve done that already

---

<div class="post-metadata">

**Author:** ![kyiu](https://community.freepbx.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kyiu](https://community.freepbx.org/u/kyiu)\
**Post date:** [October 12, 2021, 9:54pm UTC](https://community.freepbx.org/t/inbound-call-fails/78609/19 "2021-10-12T21:54:08Z")

</div>

I’m curious, how did you find out the list of ip address for the server?

---

<div class="post-metadata">

**Author:** ![sorvani](https://community.freepbx.org/user_avatar/community.freepbx.org/sorvani/32/19434_2.png) [@sorvani](https://community.freepbx.org/u/sorvani)\
**Post date:** [October 13, 2021, 12:27am UTC](https://community.freepbx.org/t/inbound-call-fails/78609/20 "2021-10-13T00:27:30Z")

</div>

> [@kyiu](#):
>
> sip trunk server ip.

You realize, that it is impossible for these to be secret right?

[Next page](https://community.freepbx.org/t/inbound-call-fails/78609.md?page=2)
