I did try this solution but no joy, I did not try the Multicasting option as I ran out of time and my eyes were crossed at that point.
{Im not entirely sure if the dial plan entry is correct}
I had set up a page group in FreePBX with extension 222 so when I dial 222 it rings all phones twice and hangs up. The added text below is the template example given from the GitHub / Diederik de Groot.
I tried both options here. Same result.
if you still have a copy of the working script (maybe its on the WiKi) i would appreciate any help!!
FreePBX_Intercom HowTo
Diederik de Groot edited this page Sep 29, 2020 · [ 7 revisions ](file:///C:/chan-sccp/chan-sccp/wiki/FreePBX_Intercom-HowTo/_history)
Please note, this is not my work, credit goes to Diederik de Groot and Bob Brown I believe
Initial version published here by p_lindheimer:
1. Configure your paging group in FreePBX Note - Add a single phone to test with and add as system resources allow – paging is VERY system resource intense so paging 100 phones all at once can have bad results.
2a. Add the following to /etc/asterisk/extensions_custom.conf:
[macro-1way-paging]
exten => s,1(check),ChanIsAvail(SCCP/${ARG1},sj)
exten => s,n,Set(ALERT_INFO=Off) ; Needed to suppress any ringing (optional)
exten => s,n,Dial(SCCP/${ARG1}/aa=1wb,5,A(beep))
exten => s,n(end),Busy(20)
exten => s,n,Macro(hangupcall,)
exten => s,check+101,Busy(20)
exten => s,n,Macro(hangupcall,)
In CLI… add the paging group in the database (replacing <Paging Group> with your group ext):
database put DEVICE/**<Paging Group\>**/autoanswer macro 1way-paging
To remove the paging group in the database:
database del DEVICE/**<Paging Group\>**/autoanswer macro
2b. If you want 2 way paging use: (not suggested for multiple phones)
[macro-2way-paging]
exten => s,1(check),ChanIsAvail(SCCP/${ARG1},sj)
exten => s,n,Set(ALERT_INFO=Off) ; Needed to suppress any ringing (optional)
exten => s,n,Dial(SCCP/${ARG1}/aa=2wb,5,A(beep))
exten => s,n(end),Busy(20)
exten => s,n,Macro(hangupcall,)
exten => s,check+101,Busy(20)
exten => s,n,Macro(hangupcall,)
In CLI… add the paging group in the database (replacing <Paging Group> with your group ext):
database put DEVICE/<Paging Group\>/autoanswer macro 2way-paging
To remove the paging group in the database:
database del DEVICE/<Paging Group\>/autoanswer macro
**Then be sure to CLI> dialplan reload **
Different Solution (Using the Multicasting & XML-push instead)
Add a multicast transmission extension to the dialplan:
exten => 500,n,Page(MulticastRTP/basic/239.0.0.1:1234);
Push an XML Message to the phones that want to start listening:
<CiscoIPPhoneExecute\>
<ExecuteItem Priority="0" URL="RTPMRx:239.0.0.1:1234:50"/\>
</CiscoIPPhoneExecute\>
Dial extension 500