planetWayne.com - Forums
Rants and Raves and Generally Anything
asterisk setup

 
Post new topic   Reply to topic    planetWayne.com - Forums Forum Index -> VoIP
View previous topic :: View next topic  
Author Message
triplef
planetFreshman


Joined: 21 Nov 2004
Posts: 1

PostPosted: Sun Nov 21, 2004 11:11 pm    Post subject: asterisk setup Reply with quote

ok i got a iax provider and made a asterix box at home


here is what im ttrying to do..

i recorded a welcome to xyz message pres 1 for sales press 2 for marketing and press 3 for support , press 5 to leave a message.

now im trying to plus asterix to the iax provider so my # is routed to this asterisk box..

then i want to play that message automatically make asterisk dial #'s corrsponding to each dept.

Sales, marketing and suport..

if no answer on them then go to voicemail on that dept
[globals]
Sales=5100
Marketing=5101
Support=5102
VoiceMailExt=98


im trying from inside with SIP and only work if i dial 98 on soft phone

it plays the greeting

heres my extension.conf


i know its messed up i need a hand

exten => s,1,Answer
exten => s,2,wait(0.5)
exten => s,3,background(vm-inmte)
exten => i,1,Playback(invalid) ; "That's not valid, try again"

exten => 5100,1,Answer
exten => 5100,2,wait(0.5)
exten => 5100,3,background(vm-inmte)

exten => ${VoiceMailExt},1,goto(voicemailselect,s,1)

[voicemailselect]

exten => s,1,Answer
exten => s,2,wait(0.5)
exten => s,3,background(vm-inmte)

; if you press '1' then goto the shared mailbox
exten => 1,1,wait(0.5)
exten => 1,2,Voicemailmain(s${Sales})
exten => 1,3,goto(s,1)


exten => 5101,1,wait(0.5)
exten => 5101,2,Voicemailmain(s${Sales})
exten => 5101,3,goto(s,1)

exten => 5102,1,wait(0.5)
exten => 5102,2,Voicemailmain(s${MArketing})
exten => 5102,3,goto(s,1)

exten => 5103,1,wait(0.5)
exten => 5103,2,Voicemailmain(s${Support})
exten => 5104,3,goto(s,1)


; press '#' to quit
exten => #,1,goto(t,1)

; or if you 'time out' then quit and hangup.
exten => t,1,playback(goodbye)
exten => t,2,Hangup
exten => i,1,Playback(invalid) ; "That's not valid, try again"
Back to top
View user's profile Send private message AIM Address MSN Messenger
planetWayne
Site Admin


Joined: 30 Jan 2003
Posts: 280

PostPosted: Thu Nov 25, 2004 7:07 pm    Post subject: Reply with quote

Hiya Triplef,
Mmmm...

You need to create a context that will be your main menu ( maybe call it [mainmenu] ??)
In there you have your
Quote:
exten => s,1,Answer
exten => s,2,wait(0.5)
exten => s,3,background(WelcomeMessage)

You will also set up exten's for your options (1 for sales, 2 for support etc...)

Point to watch out for - keep it simple - only use options of 1,2,3 etc... you wont be able to dial option 10 or 5100 for example.

Once you have that, you then need to have a DIAL command for each of the groups of phones in each department.

Dont think that you have to stick to '5100' for your extentions. These are used when dialing internaly not for your menu. Theres nothing to stop you having different extention numbers for each context you create.

The final part is to get your incoming calls to goto your new context when they receive a call. This all depends on where your calls are comming from. You should see a line 'context=default' or 'context={somthing or another}'. This tells * where your start point (remember your 'exten => s,1' line) is going to be for an incoming call.
Check out your SIP.CONF or IAX.CONF and have a look for 'Context=' - this is your key!

If its still as clear as mud - let me know and we can break it down a bit more

Wayne.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    planetWayne.com - Forums Forum Index -> VoIP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group