[Allstar Digital] Using AllStar DTMF to steer DMRGateway

Steve Zingman szingman at msgstor.com
Wed May 11 12:49:17 EDT 2016


It's easy to steer your DMRGateway via DTMF or CLI or AllMon or 
AndroidIAX. Consider the following snip from ambe_audio.cfg

section = BM                                    # Use BM section values

# order of precedence: dmrlink.cfg, section=, DEFAULTS

[BM]                                            # Listen to all, TX on 
TG3100 TS1
tgFilter = 3100,3106,31094                      # A list of TG IDs to 
monitor.  All TGs will be passed to DMRGateway
txTg = 3100                                     # TG to use for all 
frames received from DMRGateway -> IPSC
txTs = 2                                        # Slot to use for frames 
received from DMRGateway -> IPSC

[BM3100]                                        # Brandmeister
tgFilter = 3100                                 # USA Nationwide
txTg = 3100
txTs = 1

[BM3106]                                        # Brandmeister
tgFilter = 3106                                 # California Statewide
txTg = 3106
txTs = 2

[BM31094]                                       # Brandmeister
tgFilter = 31094                                # US call area 4
txTg = 31094
txTs = 1

[Sandbox]                                       # Sandbox network
tgFilter = 3120
txTg = 3120
txTs = 2

[LOCAL]                                         # Local network
tgFilter = 3
txTg = 3
txTs = 2

[Shutup]                                        # Be quiet
tgFilter = 0
txTg = 0
txTs = 2

/etc/asterisk/rpt.conf

; DMRGateway Commands

73 = cmd,/bin/bash -c 'echo -n "section=Shutup" | nc 127.0.0.1 31002'
74 = cmd,/bin/bash -c 'echo -n "section=BM" | nc 127.0.0.1 31002'
76 = cmd,/bin/bash -c 'echo -n "section=DMR-MARC" | nc 127.0.0.1 31002'
77 = cmd,/bin/bash -c 'echo -n "section=BM3100" | nc 127.0.0.1 31002'
78 = cmd,/bin/bash -c 'echo -n "section=BM3106" | nc 127.0.0.1 31002'
79 = cmd,/bin/bash -c 'echo -n "section=BM31094" | nc 127.0.0.1 31002'

Issue a *73 from a radio (simplified for example) and ambe_audio will 
use the section [Shutup]
Issue a *77 from a radio (simplified for example) and ambe_audio will 
use the section [BM3100]
Replace radio with CLI or AllMon or AndroidIAX.
Add a script to cron
...

Available remote control commands:
'reread_subscribers'
'reread_config'
'txTg'
'txTs'
'section'
'gateway_dmr_id'
'gateway_peer_id'
'restart'
'playbackFromFile'
'tgs'
'dump_template'
'get_info'

See:
<https://github.com/N4IRS/DMRGateway/blob/master/DMRGatewayDiagram.pdf>
<https://github.com/N4IRS/DMRGateway/blob/master/DMRGateway.rtf>
<https://github.com/N4IRS/DMRGateway/blob/master/DMRGatewayTechOverview.pdf>

For INAD, 73 Steve N4IRS

-- 
"Anything is possible if you don't know what you are talking about."
1st Law of Logic




More information about the Allstar-Digital mailing list