Intercom Configuration

Hi all,

I have an extension (2400) set up in my extensions.conf file to page through all three of my phone’s speakers. However, I would like to define it better so that if I want to only page a certain phone privately. How can I set it up so that if I want to page phone 3, all I would need to do is put the 240 prefix in front of it like 2403 = page phone 3.

I know I can do this by declaring each extension in exten.conf but it seems like I can do something like _240.,1,Page(SIP/${EXTEN})

exten => 2400,1,Set(VXML_URL=intercom=true)
exten => 2400,2,SIPAddHeader(Call-Info: sip:xxxx.mit.edu.de;answer-after=0)
exten => 2400,3,Page(SIP/phone1&SIP/phone2&SIP/phone3)

I think you are going to need something like:

exten => _240Z,1,Set(VXML_URL=intercom=true) exten => _240Z,n,SIPAddHeader(Call-Info:sip:xxxx.mit.edu.de\;answer-after=0) exten => _240Z,n,Page(SIP/phone${EXTEN:4})
Let us know how you get on.

What kind of phones do you have ? You need to know what header it is expecting.

Snom 360

I use this macro for paging SNOM’s

[macro-sippage]          
 ; Paging macro:
 ; Check to see if SIP device is in use and DO NOT PAGE if they are
 ; ${ARG1} - Sip extension to page
 ;
 exten => s,1,ChanIsAvail(SIP/${ARG1}|js)
 exten => s,2,Set(_ALERT_INFO="RA")
; exten => s,3,SIPAddHeader(Call Info: Answer-After=0) ; This is for the Snoms and Others
 ;exten => s,3,SIPAddHeader,Call-Info: sip:192.168.20.1/; answer-after=0
 exten => s,3,SIPAddHeader(Call-Info:<sip:192.168.123.144>\;answer-after=0)   ; enter your domain  
 exten => s,4,NoOp() ; Add others here
 exten => s,5,Page(SIP/10${ARG1}|dq)
 exten => s,6,Hangup

[quote=“isgur513”]Hi all,

I have an extension (2400) set up in my extensions.conf file to page through all three of my phone’s speakers. However, I would like to define it better so that if I want to only page a certain phone privately. How can I set it up so that if I want to page phone 3, all I would need to do is put the 240 prefix in front of it like 2403 = page phone 3.

I know I can do this by declaring each extension in exten.conf but it seems like I can do something like _240.,1,Page(SIP/${EXTEN})

exten => 2400,1,Set(VXML_URL=intercom=true)
exten => 2400,2,SIPAddHeader(Call-Info: sip:xxxx.mit.edu.de;answer-after=0)
exten => 2400,3,Page(SIP/phone1&SIP/phone2&SIP/phone3)[/quote]

Please may i see your complete config('s) needed for the intercom to work. I require this feature myself but haven’t quite managed to get it to work yet.

Thanks
Dan

I as well require this feature for one-to-one paging but have not been able to get it to work. I have, however, gotten the ‘page all’ feature to work which simply pages all phones that you declare it to page. I have it set to extension ‘2400’ and am using Snom360’s. Here is my extensions.conf entry for paging:

exten => 2400,1,Set(VXML_URL=intercom=true)
exten => 2400,2,SIPAddHeader(Call-Info: sip:****.mit.edu.de\;answer-after=0) ;(replace **** with your domain name)
exten => 2400,3,Page(SIP/phone1&SIP/phone2&SIP/phone3&SIP/phone5)

Please let me know if you get anywhere with this. It is an important feature for my system as well. I would hate to have to physically program each individual phone for paging (ex: 2401 pages phone 1, 2402 pages phone 2)

Did you give my _240Z pattern a try?

I did try that pattern and I don’t appear to be getting anywhere. Not sure why though. Seems like it would work in my head

I added the above and changed to match my setup. I included page in my default context.

All the other phones do is ring? and the handset im calling from beeps once in the handset.

Any ideas?

Ok my fault, had to set my phones config to auto answer, oops!

I can now page a list of phones that i have specified, how can i choose just one phone to page?

Assuming you are registering phones with names phone1…phone9, use something like the following:

exten => _240Z,1,Set(stuff you need for page to auto-answer) exten => _240Z,n,SIPAddHeader(stuff you need for page to auto-answer) exten => _240Z,n,Page(SIP/phone${EXTEN:3})
What this last line will do is as follows:
The ‘Z’ will match any digit 1…9.
The SIP/phone{EXTEN:3} will chop the 3 digits off the dialed extension and concatenate the rest with the text ‘SIP/phone’ (NB: I said :4 before, but have since checked and it’s :3)

Let me know how you get on.

Thanks for that, that confirmed what i just wrote in my config was correct. Im starting to get the hang of this now lol.

Glad i made lots of notes last time round i was doing this.

Thank you for your help.

I’m not currently near two phones to test this code but I will do so as soon as possible. Can anyone confirm this to be working on their system? And thank you everyone for your help. This will pose to be a great added feature to many systems, commercial and residential.

This is the code i used to test the intercom, i just need to add all my extensions to it now.

[code]exten=30,1,Set(VXML_URL=intercom=true)
exten=30,2,SIPAddHeader(Call-Info: Answer-After=0)
exten=30,3,Page(SIP/202&SIP/205)

exten=_31ZXX,1,Set(VXML_URL=intercom=true)
exten=_31ZXX,2,SIPAddHeader(CAll-Info: Answer-After=0)
exten=_31ZXX,3,Page(SIP/${EXTEN:2})[/code]

The first half is to intercom all extensions listed and the second half you can intercom one extension only, by dialing 31 then the extension you wish to reach.

Dan