[asterisk-users] Re: Attempt to setup paging and intercom

Larry Alkoff labradley at mindspring.com
Sat Aug 26 07:51:34 MST 2006


Thanks for your reply Steven.

I appears to me that that the extens in "Intercom Group"  are patterns 
requiring an initial underscore
but the extens in "2) One to Many Paging" and "3) One to Many Intercom" 
are named extensions and should not have an initial underscore as 
(mistakenly) shown.

That is,
exten => _**2
refers to an extension that was meant to be dialed as
"star star 2" and should not have been preceeded with an underscore.

Is this also your understanding?

That said, the funtions do not work either way.

I put everything below (with underscores in 2) and 3) removed)
into extensions.conf and, under CLI, issued "reload".
Is that the correct place?

Larry



Steven wrote:
> I do not know if this breaks anything or not the way you have it, but you should not have the underscore before the extension.
> 
> The underscore means that the following is an expression, where X=any single digit and .=any number of digits.
> I do not know if the underscore also interprets the * as something, or maybe it just gets stuck trying to figure out an expression 
> with no X nor .
> 
> Or this may not be an issue at all.
> 
> 

"Larry Alkoff" <labradley at mindspring.com> wrote in message 
news:44EE227D.1010404 at mindspring.com...
 > > This is my first attempt to setup intercom and paging for some 
Grandview sip phones per instructions from Grandview.
 > >
 > > I put the lines below in extensions.conf and did the CLI reload 
command.
 > >
 > > When I issue
 > > **1 or **2 from a phone I get a 404 error.
 > > Shouldn't that be ringing the 3 phones on my list?
 > >
 > > The instructions are a little vague (to a newbie like me) and may 
well be wrong.
 > >
 > > Here is what I put in extensions.conf:
 > >
 > > ------  Stop reading here if not interested   ------------
 > >
 > > ; from: FAQ_Asterisk_Paging_for_GXP-2000.pdf
 > >
 > > ; Paging and Intercom:
 > > ; ====================
 > > ; Grandstream Phone Configuration:
 > > ;       Allow Auto Answer by Call-Info:         Yes
 > > ;       Turn off speaker on remote disconnect:  Yes
 > >
 > > ; Note: Above configuration will allow GXP-2000 to auto answer a call
 > > ; when the call contains:
 > > ;  SIP header "Call-Info: answer-after=0"
 > > ; And when the call hung up by the remote party,
 > > ; the phone will automatically on hook without alerting user with
 > > ; disconnect busy tones.
 > >
 > > ; Asterisk Configuration:
 > > ; =======================
 > > ; Then you can set up Asterisk with following functions:
 > >
 > > ; 1) One to One Intercom
 > > ; ======================
 > >
 > > ; You will first define a Macro and then use it in the one to one 
intercom context:
 > > [macro-pageext]
 > > exten => s,1,ChanIsAvail(${ARG1}|js) ; j is for dump and s is for 
ANY call
 > > exten => s,2,SIPAddHeader(Call-Info: answer-after=0)
 > > exten => s,3,Dial(${ARG1})
 > > exten => s,4,NoOp() ; Add others here
 > > exten => s,5, Hangup
 > > exten => s,102,Hangup
 > >
 > > [INTERCOM_GROUP]
 > > exten => _*1XX,1,Macro(pageext,SIP/${EXTEN:1}) ;Page each extension
 > > exten => _*1XX,2,Hangup
 > > ; Note: Above configuration will allow user intercom with any extension
 > > ; (using 1XX) by dialing *1XX.
 > >
 > > ; 2) One to Many Paging
 > > ; =====================
 > >
 > > [One_Way_Page_GROUP]
 > > exten => _**1,1,SIPAddHeader(Call-Info: answer-after=0)
 > > exten => _**1,2,Page(${One_Way_Paging_List}|)
 > > exten => _**1,3, Hangup
 > > ; Note: Above configuration will allow user to one way page(broadcast)
 > > ; to all
 > > ; the extensions defined in variable "One_Way_Paging_list"
 > > ; which can be define as following:
 > >
 > > One_Way_Paging_List => SIP/120&SIP/122/&SIP/100
 > >
 > > ; 3) One to Many Intercom
 > > ; =======================
 > >
 > > [Two_Way_Intercom_GROUP]
 > > exten => _**2,1,SIPAddHeader(Call-Info: answer-after=0)
 > > exten => _**2,2,Page(${Two_Way_Intercom_List}|d)
 > > exten => _**2,3, Hangup
 > > ; Note: Above configuration will allow user to do two way intercom 
to all the
 > > ; extensions defined in variable "Two_Way_Intercom_List" which can be
 > > ; define as following:
 > >
 > > Two_Way_Intercom_List => SIP/120&SIP/122/&SIP/100
 > >
 > > --
 > > Larry Alkoff N2LA - Austin TX
 > > Using Thunderbird on Linux

-- 
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux



More information about the asterisk-users mailing list