[Asterisk-Users] newbiew extensions.conf question

Tarpo, Louie louie.tarpo at adamaircraft.com
Thu Aug 4 15:25:57 MST 2005


We handled it by creating a macro which dials the exten, then sends the call to voicemail.  

You could create it where each extension is handled seperately
exten => 720,1,Macro(sipexten,720)
exten => 721,1,Macro(sipexten,720)
etc

or you could handle them all in a group with wildcards
exten => _72x,1,Macro(sipexten,${EXTEN})

then the macro would look something like.... 
[macro-sipexten]
exten => s,1,NoOp(${CallerIDNum})
exten => s,2,Dial(SIP/${ARG1},24)
exten => s,3,Goto(s-${DIALSTATUS}, 1)

exten => s-NOANSWER,1,VoiceMail(u${ARG1})				;Send to voicemail, play unavailable message
exten => s-NOANSWER,2,Hangup

exten => s-BUSY,1,VoiceMail(b${ARG1})				;Send to voicemail, play busy message
exten => s-BUSY,2,Hangup

exten => _s-.,1,Goto(s-NOANSWER,1)

Depends on your needs which way would work better.  We define extension by extension individually, then have a wildcard at the end that plays a message that says the extension is not in use and then puts them in our main menu.  In case we have to remove or change an extension individually.

Louie


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Kenny Kant
Sent: Thursday, August 04, 2005 4:07 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] newbiew extensions.conf question


I am newbie trying to setup about 12 Polycom Ip500's
on an asterisk server.  I am working on my
extensions.conf and am trying to make it so that all
my extensions can dial each other. My extensions are
number 720, 721, 722, 723 ..etc 

in my from-sip context I began doing entries such as:


exten => 720,1,Dial(SIP/720,20)
exten => 720,2,Voicemail(u720)


exten => 721,1,Dial(SIP/721,20)
exten => 721,2,Voicemail(u721)


..etc ..etc

This is not a big deal for such a small number of
extensions but I was thinking about larger installs..
this would begin to suck.  Is there anyway around
this?

Thanks!

Kenny



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 
_______________________________________________
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



More information about the asterisk-users mailing list