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
If all of your extensions are in the same schema (i.e. 7## or 7###) you
could do this:
Exten => _7XX,1,Dial(DEVICE/${EXTEN})
Exten => _7XX,2,Voicemail(u${EXTEN})
This would allow for any 7## number to call into the extension. ${EXTEN} is
the variable for the extension dialed. I am using "DEVICE" in case you
decide to use other methods or protocols - IAX/2, Zap, etc.
Hope that helps.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Kenny Kant
Sent: Thursday, August 04, 2005 3:07 PM
To: asterisk-users@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@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
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@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Kenny Kant
Sent: Thursday, August 04, 2005 4:07 PM
To: asterisk-users@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@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
They both work. Without a wildcard in that, you don't really gain anything
by doing ${EXTEN} in that case except for changing the one number during
copy/paste operations.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of jj
Sent: Thursday, August 04, 2005 5: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@lists.digium.com
> [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Kenny
> Kant
> Sent: Thursday, August 04, 2005 4:07 PM
> To: asterisk-users@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@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@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@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
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@lists.digium.com
[mailto:asterisk-users-bounces@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@lists.digium.com
[mailto:asterisk-users-bounces@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@lists.digium.com
> [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Kenny
> Kant
> Sent: Thursday, August 04, 2005 4:07 PM
> To: asterisk-users@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@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@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@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@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
We do extension by extension is our dialing plan because we have a wildcard at
the end trapping all unused extensions and playing a "this extension is not
in use" message and forwarding users into our IVR. It depends on
individual circumstances which works better. We have 300 DIDs for our sip
phones, and only 50 in use. Those 50 are also not sequential extensions. So
it's less painful to approach this way for our circumstance. If you had all
of your extensions in use, the wildcard would be easier and cleaner. Then if
you needed to remove one, include a [not-in-service] context above the in use
extensions.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Jason
Walker
Sent: Thursday, August 04, 2005 9:58 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] newbiew extensions.conf question
But why do it that way?
Wouldn't:
exten => _72X,1,Dial(SIP/${EXTEN},50)
Be ideal? Or at least an easier way to expand the dialplan without mucho
administration?
Just a question...
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tarpo, Louie
Sent: Thursday, August 04, 2005 6:06 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] newbiew extensions.conf question
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@lists.digium.com
[mailto:asterisk-users-bounces@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@lists.digium.com
[mailto:asterisk-users-bounces@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@lists.digium.com
> [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Kenny
> Kant
> Sent: Thursday, August 04, 2005 4:07 PM
> To: asterisk-users@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@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@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@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@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@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@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