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 => _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.
[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
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})
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.
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)
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)
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.
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.