“Caller rejected because extension not found” in asterisk












3















I'm an asterisk newbie and I've just installed it on my ubuntu 12.04 server with sudo apt-get install asterisk. I'm following the tutorial for asterisk from here: https://wiki.asterisk.org/wiki/display/AST/Basic+PBX+Functionality



which describes setting up the most simplest PBX with two sip phones demo-alice and demo-bob. I've followed the instruction to the dot, however, when I make a call from demo-bob to demo-alice I get:



[Feb  5 13:23:03] NOTICE[13667]: chan_sip.c:22622 handle_request_invite:
Call from 'demo-bob' (192.168.1.2:5060) to extension '6001' rejected
because extension not found in context 'users'.


However, the dialplan gives me:



*CLI> dialplan show users
[ Context 'users' created by 'pbx_config' ]
'6001' => 1. Dial(SIP/demo-alice) [pbx_config]
'6002' => 1. Dial(SIP/demo-bob) [pbx_config]

-= 2 extensions (2 priorities) in 1 context. =-


So I clearly HAVE extension 6001 in context users. What am I doing wrong? Please help?



Some more info:



I've reloaded the config and dialplan with sip reload and dialplan reload. I'm using asterisk 1.8. This is the output of sip show peers:



*CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status
demo-alice/demo-alice 192.168.1.12 D N A 5060 Unmonitored
demo-bob/demo-bob 192.168.1.2 D N A 5060 Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]









share|improve this question























  • try something like channel originate SIP/thufir extension 18003569377@outbound from the console. You'll have to to modify for your system.

    – Thufir
    Jan 11 '17 at 12:17
















3















I'm an asterisk newbie and I've just installed it on my ubuntu 12.04 server with sudo apt-get install asterisk. I'm following the tutorial for asterisk from here: https://wiki.asterisk.org/wiki/display/AST/Basic+PBX+Functionality



which describes setting up the most simplest PBX with two sip phones demo-alice and demo-bob. I've followed the instruction to the dot, however, when I make a call from demo-bob to demo-alice I get:



[Feb  5 13:23:03] NOTICE[13667]: chan_sip.c:22622 handle_request_invite:
Call from 'demo-bob' (192.168.1.2:5060) to extension '6001' rejected
because extension not found in context 'users'.


However, the dialplan gives me:



*CLI> dialplan show users
[ Context 'users' created by 'pbx_config' ]
'6001' => 1. Dial(SIP/demo-alice) [pbx_config]
'6002' => 1. Dial(SIP/demo-bob) [pbx_config]

-= 2 extensions (2 priorities) in 1 context. =-


So I clearly HAVE extension 6001 in context users. What am I doing wrong? Please help?



Some more info:



I've reloaded the config and dialplan with sip reload and dialplan reload. I'm using asterisk 1.8. This is the output of sip show peers:



*CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status
demo-alice/demo-alice 192.168.1.12 D N A 5060 Unmonitored
demo-bob/demo-bob 192.168.1.2 D N A 5060 Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]









share|improve this question























  • try something like channel originate SIP/thufir extension 18003569377@outbound from the console. You'll have to to modify for your system.

    – Thufir
    Jan 11 '17 at 12:17














3












3








3








I'm an asterisk newbie and I've just installed it on my ubuntu 12.04 server with sudo apt-get install asterisk. I'm following the tutorial for asterisk from here: https://wiki.asterisk.org/wiki/display/AST/Basic+PBX+Functionality



which describes setting up the most simplest PBX with two sip phones demo-alice and demo-bob. I've followed the instruction to the dot, however, when I make a call from demo-bob to demo-alice I get:



[Feb  5 13:23:03] NOTICE[13667]: chan_sip.c:22622 handle_request_invite:
Call from 'demo-bob' (192.168.1.2:5060) to extension '6001' rejected
because extension not found in context 'users'.


However, the dialplan gives me:



*CLI> dialplan show users
[ Context 'users' created by 'pbx_config' ]
'6001' => 1. Dial(SIP/demo-alice) [pbx_config]
'6002' => 1. Dial(SIP/demo-bob) [pbx_config]

-= 2 extensions (2 priorities) in 1 context. =-


So I clearly HAVE extension 6001 in context users. What am I doing wrong? Please help?



Some more info:



I've reloaded the config and dialplan with sip reload and dialplan reload. I'm using asterisk 1.8. This is the output of sip show peers:



*CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status
demo-alice/demo-alice 192.168.1.12 D N A 5060 Unmonitored
demo-bob/demo-bob 192.168.1.2 D N A 5060 Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]









share|improve this question














I'm an asterisk newbie and I've just installed it on my ubuntu 12.04 server with sudo apt-get install asterisk. I'm following the tutorial for asterisk from here: https://wiki.asterisk.org/wiki/display/AST/Basic+PBX+Functionality



which describes setting up the most simplest PBX with two sip phones demo-alice and demo-bob. I've followed the instruction to the dot, however, when I make a call from demo-bob to demo-alice I get:



[Feb  5 13:23:03] NOTICE[13667]: chan_sip.c:22622 handle_request_invite:
Call from 'demo-bob' (192.168.1.2:5060) to extension '6001' rejected
because extension not found in context 'users'.


However, the dialplan gives me:



*CLI> dialplan show users
[ Context 'users' created by 'pbx_config' ]
'6001' => 1. Dial(SIP/demo-alice) [pbx_config]
'6002' => 1. Dial(SIP/demo-bob) [pbx_config]

-= 2 extensions (2 priorities) in 1 context. =-


So I clearly HAVE extension 6001 in context users. What am I doing wrong? Please help?



Some more info:



I've reloaded the config and dialplan with sip reload and dialplan reload. I'm using asterisk 1.8. This is the output of sip show peers:



*CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status
demo-alice/demo-alice 192.168.1.12 D N A 5060 Unmonitored
demo-bob/demo-bob 192.168.1.2 D N A 5060 Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]






ubuntu-12.04 voip asterisk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 5 '14 at 13:29









hogliuxhogliux

116112




116112













  • try something like channel originate SIP/thufir extension 18003569377@outbound from the console. You'll have to to modify for your system.

    – Thufir
    Jan 11 '17 at 12:17



















  • try something like channel originate SIP/thufir extension 18003569377@outbound from the console. You'll have to to modify for your system.

    – Thufir
    Jan 11 '17 at 12:17

















try something like channel originate SIP/thufir extension 18003569377@outbound from the console. You'll have to to modify for your system.

– Thufir
Jan 11 '17 at 12:17





try something like channel originate SIP/thufir extension 18003569377@outbound from the console. You'll have to to modify for your system.

– Thufir
Jan 11 '17 at 12:17










2 Answers
2






active

oldest

votes


















0














Check context by



asterisk -rx "dialplan show 6001@users"


If not help, enable sip debug or general debug to ensure you are calling 6001.






share|improve this answer































    -1














    I had the issue as well, it was related to the Class of Service not containing the Outgoing line. When adding the newly made outgoing line to the default Class of Service, the issue disappeared.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f712730%2fcaller-rejected-because-extension-not-found-in-asterisk%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Check context by



      asterisk -rx "dialplan show 6001@users"


      If not help, enable sip debug or general debug to ensure you are calling 6001.






      share|improve this answer




























        0














        Check context by



        asterisk -rx "dialplan show 6001@users"


        If not help, enable sip debug or general debug to ensure you are calling 6001.






        share|improve this answer


























          0












          0








          0







          Check context by



          asterisk -rx "dialplan show 6001@users"


          If not help, enable sip debug or general debug to ensure you are calling 6001.






          share|improve this answer













          Check context by



          asterisk -rx "dialplan show 6001@users"


          If not help, enable sip debug or general debug to ensure you are calling 6001.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 6 '14 at 5:20









          arheopsarheops

          6452716




          6452716

























              -1














              I had the issue as well, it was related to the Class of Service not containing the Outgoing line. When adding the newly made outgoing line to the default Class of Service, the issue disappeared.






              share|improve this answer




























                -1














                I had the issue as well, it was related to the Class of Service not containing the Outgoing line. When adding the newly made outgoing line to the default Class of Service, the issue disappeared.






                share|improve this answer


























                  -1












                  -1








                  -1







                  I had the issue as well, it was related to the Class of Service not containing the Outgoing line. When adding the newly made outgoing line to the default Class of Service, the issue disappeared.






                  share|improve this answer













                  I had the issue as well, it was related to the Class of Service not containing the Outgoing line. When adding the newly made outgoing line to the default Class of Service, the issue disappeared.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 5 '17 at 9:26









                  SaeXSaeX

                  294414




                  294414






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f712730%2fcaller-rejected-because-extension-not-found-in-asterisk%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Plaza Victoria

                      In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                      How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...