Skip navigation.
The fusion of 2-way radio systems and VOIP

MDC-1200

Support in app_rpt.c

Version 0.225 or later.

Prerequisites

The MDC-1200 encoder and decoder source files must be present in /usr/src/asterisk/apps, and app_rpt.c needs to be modified to look for them.
There are 4 source files in /usr/src/extras/mdc1200 which need to be copied into /usr/src/asterisk/apps. The app_rpt.c source file needs to be
modified to include the MDC-1200 source files by uncommenting the following #include statements in app_rpt.c:

/* Un-comment the following to include support decoding of MDC-1200 digital tone
   signalling protocol (using KA6SQG's GPL'ed implementation) */
/* #include "mdc_decode.c"  */

/* Un-comment the following to include support encoding of MDC-1200 digital tone
   signalling protocol (using KA6SQG's GPL'ed implementation) */
/* #include "mdc_encode.c" */

Asterisk must then be recompiled to enable mdc1200 support. See Testing New Code in the developer's section for instructions on how to recompile.

None of the features below will work unless these steps are followed.

MDC1200 codes

MDC1200 codes are 4 digit hexadecimal numbers from 0000-FFFF. Which are used to identify units, selectively call other units, and sent status and emergency messages.

Decoder

If decoder is enabled:

Put an [mdcmacro] clause in rpt.conf

IXXXX=*something        ; will match PTTID XXXX

EXXXX=*something        ; will match Emergency from XXXX

SXXXX-Y=*something      ; will match unit XXXX status Y

CXXXX-YYYY=*something   ; will match unit XXXX calling unit YYYY

The character '%' may be used to match any single character
and '*' may be used to match any number of characters. For example

E*=*something  ; would match ANY ID with an emergency

Encoder

If encoder is installed:

use cop,60 as follows:

Send MDC-1200 Burst

 function_code=cop,60,type,UnitID[,DestID,SubCode]

Type is 'I' for PttID, 'E' for Emergency, and 'C' for Call
(SelCall or Alert), or 'SX' for STS (ststus), where X is 0-F.
DestID and subcode are only specified for the 'C' type message.
UnitID is the local systems UnitID. DestID is the MDC1200 ID of
the radio being called, and the subcodes are as follows:

Subcode '8205' is Voice Selective Call for Spectra ('Call')
Subcode '8015' is Voice Selective Call for Maxtrac ('SC') or Astro-Saber('Call')
Subcode '810D' is Call Alert (like Maxtrac 'CA')

For example:

8765=cop,60,I,1234                    ; send MDC PTTID 1234
8766=cop,60,C,DEAD,BEEF,8015          ; Send MDC1200 call burst using unitID DEAD, DestID BEEF, and Maxtrac Selective call Subcode

Also from asterisk CLI: "show application mdc1200gen"

Recent comments