Solved

Asterisk able to receive in comming calls but unable to place out going

Posted on 2008-10-03
5
918 Views
Last Modified: 2011-10-19
I have three Cisco 7940 phones connecting to a Server I setup running Asterisk now. I am able to see the phones connect through SIP, I am able to call each phone via there extension. But I am not able to dial out.
I receive this error
 NOTICE[2261]: chan_sip.c:13885 handle_request_invite: Call from '' to extension '93997574' rejected because extension not found.
Phone*CLI>

I am unsure what could be wrong. Any help would be greatly appreciated
 
0
Comment
Question by:flipb18b
5 Comments
 
LVL 23

Accepted Solution

by:
Mysidia earned 500 total points
ID: 22642710
When you see "extension not found"   it most likely means that there is no exten entry in extensions.conf that matches '93997574'
from the 'context' that the SIP peer is in.

Please check  /etc/asterisk/sip.conf     find the extension's sip peer
check what the outbound context is.

Then use "show dialplan"  to see how outbound calls to that numbers are handled.
Or post the "show dialplan"  command and output used here.


Instructions below on how to use show dialplan:


at a shell command line, try typing this...  
#rasterisk

Then you should be in the  asterisk CLI:
CLI> sip show peer    <TYPE THE EXTENSION NUMBER HERE>

You should see a result like this
  * Name       : 1234
  Secret       : <Set>
  MD5Secret    : <Not set>
  Context      : from-internal
! ^^^^^^^^^^^^^^^^^^^^^ Context for outbound dialing
! ^^^^^^^^now you type  'show dialplan (EXTENSION)@(CONTEXT)'
! ^^^^^^^^ for example:   'show dialplan 1234@from-internal'
  Subscr.Cont. : <Not set>
  Language     :
  AMA flags    : Unknown
  Transfer mode: open
  CallingPres  : Presentation Allowed, Not Screened
  Callgroup    :
  Pickupgroup  :
  Mailbox      : 1234@device
  VM Extension : *97
  LastMsgsSent : 0/1
  Call limit   : 50
  Dynamic      : Yes
  Callerid     : "device" <1234>
  MaxCallBR    : 384 kbps
  Expire       : 1430
  Insecure     : no
  Nat          : No
  ACL          : No
  T38 pt UDPTL : No
  CanReinvite  : No
  PromiscRedir : No
  User=Phone   : No
  Video Support: No
  Trust RPID   : No
  Send RPID    : No
  Subscriptions: Yes
  Overlap dial : Yes
  DTMFmode     : rfc2833
  LastMsg      : 0
  ToHost       :
  Addr->IP     : aaa.bbb.ccc.ddd Port 5060
  Defaddr->IP  : 0.0.0.0 Port 5060
  Def. Username: 1234
  SIP Options  : (none)
  Codecs       : 0xc (ulaw|alaw)
  Codec Order  : (ulaw:20,alaw:20)
  Auto-Framing:  No
  Status       : Unmonitored
  Useragent    : Cisco-CP7960G/8.0
  Reg. Contact : sip:1234@aaa.bbb.ccc.ddd:5060;transport=udp


This is an example of what show dialplan output looks like

ast1*CLI> show dialplan 93997574@from-internal
[ Included context 'outrt-006-9Default' created by 'pbx_config' ]
  '_9.' =>          1. Macro(user-callerid|SKIPTTL|)              [pbx_config]
                    2. Set(_NODEST=)                              [pbx_config]
                    3. Macro(record-enable|${AMPUSER}|OUT|)       [pbx_config]
                    4. Macro(dialout-trunk|5|${EXTEN:1}||)        [pbx_config]
                    5. Macro(outisbusy|)                          [pbx_config]
ast1*CLI>
[ Included context 'bad-number' created by 'pbx_config' ]
  '_X.' =>          1. ResetCDR()                                 [pbx_config]
                    2. NoCDR()                                    [pbx_config]
                    3. Wait(1)                                    [pbx_config]
                    4. Playback(silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer) [pbx_config]
                    5. Wait(1)                                    [pbx_config]
                    6. Congestion(20)                             [pbx_config]
                    7. Hangup()                                   [pbx_config]

-= 2 extensions (12 priorities) in 2 contexts. =-
ast1*CLI> exit


0
 
LVL 4

Expert Comment

by:denisdsr20
ID: 22649166
If you are using atserisk@home and may be freePbx or some stuff like this to configure your server, you should go to add extension page and add a sip extension for any of the number you'd like to call as local attached sip devices.

Hope this help

Regards.

Denis / SR20
AddSIPexten.bmp
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wifi not working on Raspberry Pi 3? 2 53
capture pcap with filtered traffic 1 60
Access_log 17 119
how to print sub line with  sed /awk /perl in bash file 11 23
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question