[Asterisk-Users] newbiew extensions.conf question

Tarpo, Louie louie.tarpo at adamaircraft.com
Thu Aug 4 18:06:16 MST 2005


He means that exten => 720,1,macro(sipexten,${EXTEN}) is the template.

You'd write out the rest of the config file like so
exten => 720,1,macro(sipexten,${EXTEN})
exten => 721,1,macro(sipexten,${EXTEN})
exten => 722,1,macro(sipexten,${EXTEN})

and so forth.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Jason
Walker
Sent: Thursday, August 04, 2005 6:22 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] newbiew extensions.conf question


That would make all callers have to call 720 as there is not other extension
defined. As a result, all calls would go to 720. ${EXTEN} would always be
720.

I don't follow your logic.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of jj
Sent: Thursday, August 04, 2005 4:00 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] newbiew extensions.conf question

Right track, but it can be simplified even more

exten => 720,1,macro(sipexten,${EXTEN})


On Aug 4, 2005, at 5:25 PM, Tarpo, Louie wrote:

> 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
> _______________________________________________
> 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
>

_______________________________________________
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

_______________________________________________
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