All calls rejected?

This is a new install of FreePBX 2.10 with Asterisk 1.8.10. I set up 2 extensions (101 and 111). They are unable to call each other, or make use of an outbound route. Every attempt shows a message in the log like this one.

chan_sip.c:22622 handle_request_invite: Call from ‘111’ (IP:PORT) to extension ‘101’ rejected because extension not found in context ‘from-internal’.

Both extensions have the context set to “from-internal”.

The extensions register fine. I tried calling 111 and sip/111, same result.

The extensions are mostly using default settings. I set the number and a password.


I got this working by doing a dialplan reload… I expected the red bar in the UI to handle it…

Have you found a different solution for this? I have just installed FreePBX 2.10 and Asterisk 1.8.11. I’ve already had to reinstall FreePBX once and reapply the updates because sip.conf was not being written correctly and the peers were not being read by Asterisk.

Now that my phones have registered, I cannot use them because I receive the same error, “rejected because extension not found in context ‘from-internal’.” Unfortunately, there is no other information that I can find in the logs.

My guess is the problem revolves around the fact that there is no include statement in extensions.conf for extensions_additional.conf. When I added this manually, I received additional warnings and errors upon reload and still could not place a call.

dialplan reload does not work for me

How was the system installed? Something is very wrong with your install.

I want to make it clear, you did not install using the FreePBX distro (ISO)?

  1. Make symlinks from /var/www/html/admin/modules/core/etc
    extensions.conf features.conf iax.conf logger.conf sip.conf sip_notify.conf
    to files on /etc/asterisk

  2. Run apache as asterisk user/group

  3. Create some empty files in /etc/asterisk/

-rw-r–r-- 1 asterisk asterisk 0 Apr 30 22:53 extensions_override_freepbx.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:49 features_applicationmap_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:51 features_featuremap_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:46 features_general_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 29 11:26 globals_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:54 iax_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:55 iax_custom_post.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:52 iax_general_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:53 iax_registrations_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 logger_general_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 logger_logfiles_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 manager_additional.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 manager_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 meetme_additional.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 musiconhold_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 queues_additional.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 queues_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 queues_custom_general.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 queues_general_additional.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 28 14:25 queues_post_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 29 17:58 sip_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:57 sip_custom_post.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:54 sip_general_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:55 sip_nat.conf
-rw-r–r-- 1 asterisk asterisk 0 Apr 30 22:07 sip_notify_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Apr 30 21:56 sip_registrations_custom.conf

  1. Try to CLI command: dialplan show.
    You will see, that dialplan cannot load some dialplans. (Warnings)
    So, add in extensions_custom.conf following:
    ===============================================
    [ext-findmefollow]
    [from-internal-custom]
    [from-internal-noxfer-custom]
    [from-pstn-custom]
    [from-internal-noxfer-additional-custom]
    [from-internal-additional-custom]
    [macro-dial-one-custom]
    [macro-hangupcall-custom]
    [macro-blkvm-check-custom]
    [macro-blkvm-clr-custom]
    [macro-blkvm-set-custom]
    [macro-blkvm-setifempty-custom]
    [macro-simple-dial-custom]
    [macro-exten-vm-custom]
    [macro-vm-custom]
    [macro-block-cf-custom]
    [macro-setmusic-custom]
    [macro-dial-confirm-custom]
    [vm-callme-custom]
    [from-dahdi-custom]
    [from-zaptel-custom]
    [macro-outbound-callerid-custom]
    [macro-dialout-enum-custom]
    [macro-user-callerid-custom]
    [macro-dialout-dundi-custom]
    [macro-dialout-trunk-custom]
    [sub-pincheck-custom]
    [macro-auto-blkvm-custom]
    [macro-auto-confirm-custom]
    [macro-confirm-custom]
    [bad-number-custom]
    [app-blackhole-custom]
    [outbound-allroutes-custom]
    [macro-prepend-cid-custom]
    [macro-one-touch-record-custom]
    [sub-record-check-custom]
    [sub-record-cancel-custom]
    [ext-trunk-custom]
    [from-did-direct-ivr-custom]
    [ext-local-custom]
    [ext-did-catchall-custom]
    [ext-did-custom]
    [ext-test-custom]
    [app-chanspy-custom]
    [app-zapbarge-custom]
    [app-pickup-custom]
    [findmefollow-ringallv2-custom]
    [ext-local-confirm-custom]
    [app-userlogonoff-custom]
    [cidlookup-custom]
    [app-vmmain-custom]
    [app-dialvm-custom]
    [sub-hr12format-custom]
    [sub-hr24format-custom]
    [app-speakingclock-custom]
    [app-speakextennum-custom]
    [app-echo-test-custom]
    [app-directory-custom]
    [app-calltrace-perform-custom]
    [app-calltrace-custom]
    [ext-featurecodes-custom]
    [macro-systemrecording-custom]
    [app-recordings-custom]
    [ext-did-post-custom]
    [outrt-1]
    [ext-did-0001]

  2. Do not forget to reload - sip reload (look at warnings), dialplan reload (look at warnings).

lihtis provided marginal (at best) advice

Steps 1 & 2 are covered in the installation instructions.
Step 3 (first one) is not needed this is taken care of by FreePBX install script
Step 3 (second one) is nonsense, these are warning/notices, those custom hooks are supplied so programmers can extend FreePBX functionality.

It could be that file permissions are not set right.

If

ls -l /etc/asterisk/

doesn’t display the same “asterisk” user on all files - especially links - then you probably haven’t set up your apache to run as user asterisk. Look up the manual install docs on how to fix it.