LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2008, 01:39 AM   #1
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
asterisk [incoming] extension.conf question


Hey everyone,
Still working on the Asterisk box, and decided that this new question deserved a new thread. Below is my extensions.conf and I think I am doing it right, however, I am not sure since I can't test it quite yet.

You call get a message, press 1 to continue, then it sends you to a sub section where you choose from the options presented. one option I haven't figured out though is what do you do if you want a " If you know the extension please enter it now one" which I image through the submenu you push them to another "area" where the user can enter it. Help on that would be hot thanks and a check over my extensions. I also put in one of the submenu extensions for reference.

Thanks


Code:
[incoming2] 
;============================================== 
;MAIN MENU 
;============================================== 

;Does the introduction to the main menu 
;---------------------------------------------- 

exten => s,1,Answer 
exten => s,n,Background(thanks) 
; "Thanks for calling press 1 to continue" 


exten => s,n,WaitExten 
exten => 1,1,Goto(submenu,s,1) 
exten => 2,1,Hangup 

[submenu] 
;============================================= 
;SUBMENU 
;============================================= 

;Does the introduction to the submenu: 
;--------------------------------------------- 

exten => s,1,Ringing ; Make them comfortable with 2 seconds of ringback 
exten => s,n,Wait,2 
exten => s,n,Background(submenuopts) ; "Thanks for calling the inquiries..press 1 for inquiries..press 2 for..." 

;Goes to extensions like mentioned in the above recording 
;--------------------------------------------- 

exten => s,n,WaitExten 
exten => 1,1,Goto(default,inquiries,1) 
exten => 2,1,Goto(default,accounting,2) 
exten => 3,1,Goto(default,support,3) 
exten => 4,1,Goto(default,development,4) 

;-------------------------------------- 
;EXTENSION DEVELOPMENT 
;--------------------------------------- 
[development] 
exten => 4,1,Dial(SIP/710,20,) 
exten => 4,n,Voicemail(400@default) 
exten => 4,n,Hangup()
 
Old 03-16-2008, 08:39 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
This looks wrong
exten => 4,1,Goto(default,development,4)
you can just use
exten => 4,1,Dial(SIP/710@development,20)
if in sip.conf extension 4 is in the context [development]
you may need this;
Code:
[development]
exten => 4,1,Answer()
exten => 4,n,Voicemail(400) 
exten => 4,n,Hangup()
sip.conf example
Code:
[710]
type=friend
username=710
secret=0000
host=dynamic
context=development
allow=all
callid=710
mailbox=400

Last edited by comprookie2000; 03-16-2008 at 08:42 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing The Asterisk PBX And The Asterisk Web-Based Provisioning GUI On Linu LXer Syndicated Linux News 0 09-25-2007 02:50 PM
Asterisk / SIP Question. pete1234 Linux - General 0 08-04-2007 03:52 PM
Asterisk Question pete1234 Linux - Networking 4 07-22-2007 02:51 PM
LXer: VoIPowering Your Office with Asterisk: Shiny New Asterisk 1.4 LXer Syndicated Linux News 0 11-03-2006 06:54 AM
Asterisk extensions.conf!! Law1213 Linux - Software 2 01-07-2006 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration