[Asterisk-Users] Newbie Question: Help with incoming dial plan

asterisk asterisk at totarotechnologies.com
Wed Oct 19 08:51:00 MST 2005


Newbie Question: Help with incoming dial planadd this context

[default-incoming]
exten => 1112223333,1,Goto(default-incoming,s,1)

exten => s,1,Answer
exten => s,2,DigitTimeout(10)
exten => s,3,ResponseTimeout(20)
exten => s,4,Background(swelcome)
exten => t,1,Hangup
include => extensions

add this to your extensions context

;directory app
exten => 9,1,Directory(default-extensions)

; exten for recording greetings/menus
exten => 12,1,Authenticate(1234|)
exten => 12,2,Wait(2)
exten => 12,3,Record(/var/lib/asterisk/sounds/welcome:gsm)
exten => 12,4,Wait(2)
exten => 12,5,Playback(/var/lib/asterisk/sounds/welcome)
exten => 12,6,Wait(2)
exten => 12,7,Hangup

Reload and dial 12 with the password of 1234 and record your greeting and then hangup.  If you mess up just do it over.

Thanks,
Steve


  ----- Original Message ----- 
  From: Dave Morrow 
  To: Asterisk Users Mailing List - Non-Commercial Discussion 
  Sent: Tuesday, October 18, 2005 11:41 AM
  Subject: RE: [Asterisk-Users] Newbie Question: Help with incoming dial plan


  I do not use any DID, all calls come in on the same number 1112223333 so what I would like to do is simply prompt the caller to enter the extension they wish to reach, then redirect to that extension in the [default] context.

  David A. Morrow 
  Technical Systems Lead 
  Autodata Solutions Company 
  David.Morrow at Autodata.Net 
  http://www.autodata.net 
  Tel: (519) 951-6079 
  Fax: (519) 451-6615  

  < Poor planning on your part does not necessarily constitute an emergency on my part! > 

  This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at Administrator at autodata.net <mailto:Administrator at autodata.net>





------------------------------------------------------------------------------
  From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of asterisk
  Sent: Wednesday, October 19, 2005 11:34 AM
  To: Asterisk Users Mailing List - Non-Commercial Discussion
  Subject: Re: [Asterisk-Users] Newbie Question: Help with incoming dial plan


  This is how I do it.

  [default-incoming]
  exten => 2691,1,Goto(extensions,3212,1)
  exten => 2692,1,Goto(extensions,3204,1)
  exten => 2693,1,Goto(extensions,3207,1)
  exten => 2694,1,Goto(extensions,3212,1)
  exten => 2695,1,Goto(extensions,3205,1)
  exten => 2696,1,Goto(extensions,3208,1)
  exten => 2697,1,Goto(extensions,1105,1)
  exten => 3211,1,Goto(extensions,1111,1)
  exten => 3223,1,Goto(extensions,3207,1)

  You will have to know how many digits are being sent, in my case it is four.  So for example, someone dials the DID xxx-xxx-2691 the dialplan matches on the first line and then sends the cal to the context "extensions" (you would replace with default) and the extension "3212" in the first priority.

  If more or less digits are being sent by the telco, you will have to adjust the exten => xxxx to match.  Sometimes they send three.

  Thanks,
  Steve Totaro

    ----- Original Message ----- 
    From: Dave Morrow 
    To: Asterisk Users Mailing List - Non-Commercial Discussion 
    Sent: Tuesday, October 18, 2005 11:26 AM
    Subject: [Asterisk-Users] Newbie Question: Help with incoming dial plan


    Hi all.  I just got Asterisk installed with a Digium TE110P T1 card.  Have it working for outbound calls so I know that all the hardware is functioning.

    Since all inbound calls come through my T1, I would like to setup a dial plan that handles the incoming call and tells the caller to enter the extension they wish to reach.  All of my real extensions are in the [default] context, and the Zaptel is configured to go to the [default-incoming] context.   It is the [default-incoming] context that I am unsure of how to set.

    If anyone could provide some insight, it would be much appreciated...get me started at least. 

    David A. Morrow 
    Technical Systems Lead 
    Autodata Solutions Company 
    David.Morrow at Autodata.Net 
    http://www.autodata.net 
    Tel: (519) 951-6079 
    Fax: (519) 451-6615  

    < Poor planning on your part does not necessarily constitute an emergency on my part! > 

    This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at Administrator at autodata.net <mailto:Administrator at autodata.net>



----------------------------------------------------------------------------


    _______________________________________________
    --Bandwidth and Colocation sponsored by Easynews.com --

    Asterisk-Users mailing list
    Asterisk-Users at lists.digium.com
    http://lists.digium.com/mailman/listinfo/asterisk-users
    To UNSUBSCRIBE or update options visit:
       http://lists.digium.com/mailman/listinfo/asterisk-users 


----------------------------------------------------------------------------


    No virus found in this incoming message.
    Checked by AVG Anti-Virus.
    Version: 7.0.344 / Virus Database: 267.12.1/136 - Release Date: 10/15/2005



------------------------------------------------------------------------------


  _______________________________________________
  --Bandwidth and Colocation sponsored by Easynews.com --

  Asterisk-Users mailing list
  Asterisk-Users at lists.digium.com
  http://lists.digium.com/mailman/listinfo/asterisk-users
  To UNSUBSCRIBE or update options visit:
     http://lists.digium.com/mailman/listinfo/asterisk-users


------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.344 / Virus Database: 267.12.1/136 - Release Date: 10/15/2005
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051018/268c228f/attachment.htm


More information about the asterisk-users mailing list