# INVITES Seen in SNGREP but Not in Asterisk CLI with NO Firewall

**URL:** <https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044>\
**Category:** Endpoints\
**Created:** [January 30, 2023, 9:55pm UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044 "2023-01-30T21:55:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerryriggin](https://community.freepbx.org/letter_avatar_proxy/v4/letter/j/7feea3/32.png) [@jerryriggin](https://community.freepbx.org/u/jerryriggin)\
**Post date:** [January 30, 2023, 9:55pm UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/1 "2023-01-30T21:55:22Z")

</div>

FreePBX 16.0.26 The firewall is off, iptables and fail2ban turned off with systectl, se linux disabled. I see INVITEs from my ISP in sngrep, but no response from asterisk. No evidence of inbound in CLI with verbosity 30 and SIP debug on. It looks just like ISP blocked by a firewall, but there is none. On the 5th or 6th dial, the call comes through.

Legacy SIP credential trunk with only 1 registration confirmed by ISP.

Any ideas greatly appreciated.

---

<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:** [January 31, 2023, 2:24am UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/2 "2023-01-31T02:24:25Z")

</div>

sngrep sees kernel traffic, asterisk sees traffic filtered by any firewall rules

---

<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:** [January 31, 2023, 11:06am UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/3 "2023-01-31T11:06:05Z")

</div>

OP claims there is no such firewall enabled.

---

<div class="post-metadata">

**Author:** ![jerryriggin](https://community.freepbx.org/letter_avatar_proxy/v4/letter/j/7feea3/32.png) [@jerryriggin](https://community.freepbx.org/u/jerryriggin)\
**Post date:** [January 31, 2023, 4:40pm UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/4 "2023-01-31T16:40:38Z")

</div>

Correct, FreePBX firewall, iptables and fail2ban all disabled. What else could be filtering?

---

<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:** [January 31, 2023, 5:00pm UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/5 "2023-01-31T17:00:44Z")

</div>

> [@jerryriggin](#):
>
> Legacy SIP credential trunk with only 1 registration confirmed by ISP.

I assume that you mean it’s a chan\_sip trunk. Is this a system that had been working and is now failing? If so, do you have any idea what may have changed (new ISP, new modem/router, software update, etc.)? If this is a new system, why did you even think about using chan\_sip? If it’s because you had trouble with pjsip, please explain.

> [@jerryriggin](#):
>
> What else could be filtering?

Most likely, the INVITE is sent to a port other than what Bind Port is set to.  
Or, the INVITE is corrupted, most likely by a SIP ALG.  
Or, there is a competing registration, such as a pjsip trunk.

If you still have trouble, post the complete INVITE as shown by sngrep.

---

<div class="post-metadata">

**Author:** ![jerryriggin](https://community.freepbx.org/letter_avatar_proxy/v4/letter/j/7feea3/32.png) [@jerryriggin](https://community.freepbx.org/u/jerryriggin)\
**Post date:** [January 31, 2023, 5:30pm UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/6 "2023-01-31T17:30:40Z")

</div>

Thanks, Stewart. This system has had the same ISP since it was FreePBX13. (Which is why it is also chan\_sip instead of pjsip – never got around to upgrading. ) I could upload a whole sip trace that shows 6 INVITEs to port 5060 (correct) with no response from asterisk, then a 7th exactly the same that connects the call, however per company policy for this client I would have to sanitize most of the file – PIA and not much to see. There was no output at all in asterisk CLI output at all for the first 6 invites seen in sngrep.

So, what could prevent asterisk from seeing the INVITES the kernel saw?

BTW: Asterisk 18

---

<div class="post-metadata">

**Author:** ![dobrosavljevic](https://community.freepbx.org/user_avatar/community.freepbx.org/dobrosavljevic/32/30258_2.png) [@dobrosavljevic](https://community.freepbx.org/u/dobrosavljevic)\
**Post date:** [January 31, 2023, 5:41pm UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/7 "2023-01-31T17:41:34Z")

</div>

Can you share a screenshot of your PJSIP settings under Settings → Asterisk SIP settings → chan\_pjsip?

---

<div class="post-metadata">

**Author:** ![jerryriggin](https://community.freepbx.org/letter_avatar_proxy/v4/letter/j/7feea3/32.png) [@jerryriggin](https://community.freepbx.org/u/jerryriggin)\
**Post date:** [January 31, 2023, 9:36pm UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/8 "2023-01-31T21:36:44Z")

</div>

PJSIP is disabled via Advanced Settings on this server. Here is the SIP config. The ISP is voip.ms and their docs require that nothing but registration is on “Inbound” Tab.

[voipms]  
username=123456  
type=peer  
trustrpid=yes  
sendrpid=yes  
secret=XXXXXXXXXXXXXX  
qualify=yes  
nat=yes  
insecure=invite  
host=208.100.60.30  
fromuser=123456  
disallow=all  
context=from-trunk  
canreinvite=nonat  
allow=ulaw

Register: 123456:XXXXXX@208.100.60.30:5060

---

<div class="post-metadata">

**Author:** ![dobrosavljevic](https://community.freepbx.org/user_avatar/community.freepbx.org/dobrosavljevic/32/30258_2.png) [@dobrosavljevic](https://community.freepbx.org/u/dobrosavljevic)\
**Post date:** [January 31, 2023, 9:42pm UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/9 "2023-01-31T21:42:17Z")

</div>

Sorry, should have asked for chan\_sip screenshot instead of pjsip. Missed where you said that it’s a legacy SIP trunk.

---

<div class="post-metadata">

**Author:** ![system](https://community.freepbx.org/uploads/default/original/3X/f/7/f7056d57e04fdbf71c6ad967e1ced351317f5c3f.png) [@system](https://community.freepbx.org/u/system)\
**Post date:** [March 3, 2023, 9:42pm UTC](https://community.freepbx.org/t/invites-seen-in-sngrep-but-not-in-asterisk-cli-with-no-firewall/88044/10 "2023-03-03T21:42:59Z")

</div>

Closed on March 3, 2023, 9:42pm UTC

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