Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yay it works Even hooked up some fancy dancy Linksys IP phone which sees the asterisk box fine ( although I have to figure out how to configure it to have a specific extension ) and it can call the 4001 number while seeing all registed extensions.
Couple of questions:
In /etc/voicemail.conf
uncomment or add user like so to make a voicemail box right?
4001 => 4242,Sean Comeau,root@localhost
Voicemail? Is that 2nd number arbitrary and some random value?
I then need to add users through extensions.conf too correct?
like:
Great, first thing you want to do is backup the files you will be editing if you have not done so;
Code:
su
<password>
cd /etc/asterisk
ls
cp sip.conf sip.conf.bak
cp voicemail.conf voicemail.conf.bak
cp extensions.conf extensions.conf.bak
OK now to add the phone in sip.conf
Code:
[phone]
type=friend
username=phone
secret=0000
context=default ; remember this very important in your dialplan
callid=phone
mailbox=2000
host=dynamic
allow=ulaw
now to give it an extension in extensions.conf
Code:
[default] ; under the context above
exten => 2000,1,Dial(SIP/phone,20,)
exten => 2000,n,Voicemail(u2000)
exten => 2000,n,Hangup()
add it to voicemail
Code:
2000 => 0000, 2000 postmaster@localhost
the second is the password
Log into the phone and make sure the settings are the same then;
Code:
asterisk -vvvvvvr
reload
Now leave that open and test it out.
Something like that, you should buy the *BOOK* it is a great way to give back and it will come in handy.
Good Luck and have fun ...
Last edited by comprookie2000; 03-07-2008 at 06:54 AM.
You can change the context to whatever you want to make it more organized in extentions.conf
At the bottom to reference the default context add include => default
Once I have everything working I like to remove all the commented lines just so I can see it better.
For voicemail.conf I do;
Code:
cd /etc/asterisk
sed '/^\;/d' voicemail.conf > voicemail.conf.txt
If it looks ok I will rename voicemail.conf.txt voicemail.conf
No idea why, but for some reason it just won't do voicemail. I setup the phone to recieve the call Slick deal that was, however... if I press voicemail its ringing itself which is the extension 4242( for voicemail right )...maybe my below configuration can explain:
now reload asterisk then;
dial 8500 with the phone to get to asterisks voicemail
you will need to program the voicemail button on the phone, that is something different.
awesome possum thanks very much and I got the phones to do the voicemail correctly as well
This is pretty simple after awhile for basic setup and surprisingly not cryptic web consoles for the phones. Neat!
Next up on my list to do is to set up from the in-comming connections:
Quote:
Extensions like so: ( They already be set up which I think they might be already, but where would I go to check that out )
General Inquiries 1
Accounting 2
Tofino Technical Support 3
Development Team 4
and it looks like we are going through Fugu for our callplan. I imagine they tell you what to do for its usage?
Last edited by Lantzvillian; 03-10-2008 at 06:15 PM.
Lets say for General Inquiries 111 , in my example lets say [phone] is at the receptionists desk so the [phone] is set up in sip.conf and registered with asterisk so in extensions.conf add something like;
To explain where the extentions are for people that call in have someone record a greeting explaining the options and have that at the start of your dialplan like so;
asterisk is so cool that you can do whatever you want, that is why it will replace proprietary PBX's. I am just getting started and there are so many things you can do with it including video.
Ok looked at some of the stuff you posted and this is what I think should work
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)
I also noticed this include you mentioned. Is that like an option for the person calling, if they know the extension of the phone they want to call, they can enter it? For example, Cartman is trying to call Stan, but Cartman knows the extension.. is that the point in time where Cartman can enter it?:
[4001] ; test
type=friend ; allow incoming and outgoing calls
username=4001 ; username
secret=mytest1 ;password
context=default; <<<<---- to include this extention
host=dynamic ;require this device to registry with us, can't be in general
fromuser=FromUser 4001 ;
callerid=CallId 4001 ;
mailbox=4242 ; voicemail box
allow=ulaw
deny=0.0.0.0/0.0.0.0 ; network acls
permit=192.168.2.0/255.255.255.0
Still haven't figured out how to do the enter your extension now.. I am thinking something like this?
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)
exten => 5,1,Goto(default,extdefault,5)
[extdefault]
exten => s,1,Answer
exten => s,n,Background(thanks)
; "Enter your extension now..."
exten => s,n,WaitExten
include => default
Also.. I know incoming Telus lines are going through the FXOs.. Where would I put the outbound dialplan that is going to use FUGU so that all calls are routed outwards through that Internet VoIP provider through Eth0??
Last edited by Lantzvillian; 03-13-2008 at 01:11 PM.
I am no expert but I will explain how mine works and then show another way I could do it if I had a lot of extentions like you will end up with. I would start simple and do one step at a time, call in and at the same time logged in to asterisks console "asterisk vvvvvvr" and see what happens.
Also.. I know incoming Telus lines are going through the FXOs.. Where would I put the outbound dialplan that is going to use FUGU so that all calls are routed outwards through that Internet VoIP provider through Eth0??
Ok, got the VoIP provider information which goes in iax.conf however, its looking for a outbound calling plan.. which is something I haven't set up. I have been looking on the net, but I don't see an example for one that makes much sense for me to understand.
Will you need some of the information that the VoIP persons provided me with?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.