[App_rpt] COP Functions

Steve Rodgers hwstar at rodgers.sdcoxmail.com
Thu Mar 16 04:41:22 UTC 2006


James,

I tried your config file on my system (had to change the node and the zap 
channel, but everything else remained the same), and  *88 keyed the 
transmitter over the phone as it should be. Now I'm scratching my head....

The next thing to try:

Issue "rpt debug level  1" from the real asterisk console ( asterisk -vvvvvvc, 
and not asterisk -r)  and see if you can see the DTMF digits being processed 
by app_rpt.
 
You should see something like this:

@@@@ Digits collected: 88, source: 0
@@@@ action: cop, param = 6
@@@@ table index i = 0


BTW: cop.6 has no effect when dialed on a radio or link channel. Cop,6 is for 
use on a phone dial-in only. I'd suggest removing these from your other 
function tables.

Steve, 
WA6ZFT




On Wednesday 15 March 2006 14:18, James Harfield wrote:
> As requested rpt.conf:
>
> [1999]				; Name of First Repeater
>
> rxchannel = Zap/1			; Rx audio/signalling channel
> ; Note: if you use a unified interface (tx/rx on one channel), only
> ; specify the rxchannel and the txchannel will be assumed from the
> rxchannel
> functions=functions			; Repeater Function Table
> ;
> ; Added phone_functions=phone_functions
> ;
> phone_functions = phone_functions       ;phone functions table
> link_functions=link-functions		; Link Function Table
> telemetry=telemetry			; Telemetry descriptions
> wait_times=wait-times			; Wait times
> context = radio				; dialing context for phone
> callerid = "Your Repeater" <6198192562> ; callerid for phone calls
> idrecording = /etc/asterisk/id		; id recording
> accountcode=RADIO			; account code (optional)
> hangtime=1000				; squelch tail hang time (in ms)
> (optional)
> totime=90000				; transmit time-out time (in ms)
> (optional)
> idtime=180000				; id interval time (in ms)
> (optional)
> ;
> ;Added duplex=2
> ;
> ;duplex=2
>
> ; The default values for hangtime, time-out time, and id interval time
> are
> ; 5 seconds (5000 ms),  3 minutes (180000 ms), and 5 minutes (300000 ms)
> ; respectively
>
> politeid=30000				; time in milliseconds before ID
> timer
> 					; expires to try and ID in the
> tail.
> 					; (optional, default is 30000).
> idtalkover=|iid/r			; Talkover ID (optional) default
> is none
> unlinkedct=ct2				; unlinked courtesy tone
> (optional) default is none
>
> ;
> ; Repeater function table for node 010
> ;
>
> [functions]
> 1=ilink,1				; Specific link disconnect
> 2=ilink,2				; Specific Link connect -
> monitor only
> 3=ilink,3				; Specific Link connect -
> transceive
> 4=ilink,4				; Enter command mode on a
> specific link
> 7=ilink,5				; Link status
>
> 80=status,1				; System info
> 81=status,2				; Time
> 82=status,3				; app_rpt.c Version
>
> 6=autopatchup				; Autopatch up
> 0=autopatchdn				; Autopatch down
>
> ;
> ;Added cop,6 in this context just to see if it would recognize cop,6
> ;
> 88=cop,6				; PTT Radio
> 99=cop,4				; Audio test tone
>
>
> ;
> ;Added phone_functions table for the phone_functions=phone_functions
> ;
> [phone_functions]
>
> 1=ilink,1                               ; Specific link disconnect
> 2=ilink,2                               ; Specific Link connect -
> monitor only
> 3=ilink,3                               ; Specific Link connect -
> transceive
> 4=ilink,4                               ; Enter command mode on a
> specific link
> 7=ilink,5                               ; Link status
>
> 80=status,1                             ; System info
> 81=status,2                             ; Time
> 82=status,3                             ; app_rpt.c Version
>
>
> ;
> ;Added cop,1 - cop,6 for testing purposes.
> ;
> 84=cop,1				;warm boot
> 85=cop,2 				;system enable
> 86=cop,3				;system disable
> 87=cop,5				;debug mode
> 88=cop,6				;system PTT
>
> 6=autopatchup                           ; Autopatch up
> 0=autopatchdn                           ; Autopatch down
>
> 99=cop,4                                ; Audio test tone
>
>
> ;
> ; Link function table
> ;
> ; If this section is defined, then the remote user accessing our machine
> in command mode
> ; will only be able to do the functions defined in this section. If this
> section is
> ; omitted, then the link functions will be the same as the repeater
> functions.
> ;
>
>
> [link-functions]
> 1=ilink,1	                        ; Specific link disconnect
> 2=ilink,2                               ; Specific Link connect -
> monitor only
> 3=ilink,3                               ; Specific Link connect -
> transceive
> 7=ilink,5                               ; Link status
>
>
> 80=status,1                             ; System info
> 81=status,2                             ; Time
> 82=status,3                             ; app_rpt.c Version
>
>
> 6=autopatchup                           ; Autopatch up
> 0=autopatchdn                           ; Autopatch down
> 84=cop,1                                ;warm boot
> 85=cop,2                                ;system enable
> 86=cop,3                                ;system disable
> 87=cop,5                                ;debug mode
> 88=cop,6                                ;system PTT
>
> 99=cop,4				; Audio test tone
>
> [telemetry]
>
> ; Telemetry entries can be shared across all repeaters, or defined for
> each repeater.
> ; Can be a tone sequence, morse string, or a file
> ;
> ; |t - Tone escape sequence
> ;
> ; Tone sequences consist of 1 or more 4-tuple entries (freq1, freq2,
> duration, amplitude)
> ; Single frequencies are created by setting freq1 or freq2 to zero.
> ;
> ; |m - Morse escape sequence
> ;
> ; Sends Morse code at the telemetry amplitude and telemetry frequency as
> defined in the
> ; [morse] section.
> ;
> ; Follow with an alphanumeric string
> ;
> ; |i - Morse ID escape sequence
> ;
> ; Sends Morse code at the ID amplitude and ID frequency as defined in
> the
> ; [morse] section.
> ;
> ; Follow with an alphanumeric string
>
>
> ct1=|t(350,0,100,2048)(500,0,100,2048)(660,0,100,2048)
> ct2=|t(660,880,150,2048)
> ct3=|t(440,0,150,2048)
> ct4=|t(550,0,150,2048)
> ct5=|t(660,0,150,2048)
> ct6=|t(880,0,150,2048)
> ct7=|t(660,440,150,2048)
> ct8=|t(700,1100,150,2048)
> remotetx=|t(1633,0,75,2048)(0,0,75,0)(1209,0,75,2048);
> remotemon=|t(1209,0,75,2048)
> cmdmode=|t(900,903,200,2048)
> functcomplete=|t(1000,0,100,2048)(0,0,100,0)(1000,0,100,2048)
>
> ;
> ; Morse code parameters, these are common to all repeaters.
> ;
>
> [morse]
>
> speed=20		; Approximate speed in WPM
> frequency=800		; Morse Telemetry Frequency
> amplitude=4096		; Morse Telemetry Amplitude
> idfrequency=1064	; Morse ID Frequency
> idamplitude=3072	; Morse ID Amplitude
>
> ;
> ; This section allows wait times for telemetry events to be adjusted
> ; A section for wait times can be defined for every repeater
> ;
>
> [wait-times]
>
> telemwait=1750                          ; Time to wait before sending
> most telemetry
> idwait=500                              ; Time to wait before starting
> ID
> unkeywait=1000                          ; Time to wait after unkey
> before sending CT's and link telemetry
> calltermwait=1500                       ; Time to wait before announcing
> "call terminated"
>
> ;
> ; This is where you define your nodes which cam be connected to.
> ;
>
> [nodes]
> 1999 = radio at 127.0.0.1/1999	; This must be changed to your IP
> address
>
> We added cop,6 to the regular functions table and the link functions
> table just to test and see if it was picking up only those functions
> instead, since there was a comment that if link functions were enabled
> then the remote user would only have access to them.
>
> Here is the extensions.conf for connecting to the radio:
>
> exten =>  305,1,Rpt,1999|P
>
> ulaw is allowed in both IAX.conf and SIP.conf that we are using to dial
> the radio.  Does this need to be changed as well?  Trying to add as much
> info I can think of.
>
> Thanks,
>
> JRH
>
> >>> hwstar at rodgers.sdcoxmail.com 03/15/06 2:57 PM >>>
>
> It probably would be a good idea to attach your rpt.conf file to the
> thread.
>
> Steve
> WA6ZFT
>
> > From: "James Harfield" <harfija at auburn.edu>
> > Date: 2006/03/15 Wed PM 12:29:28 PST
> > To: <app_rpt at lists.illiana.net>
> > Subject: Re: [App_rpt] COP Functions
> >
> > That's what I figure as well.  I've tried Softphone, Cell phone, land
>
> phone.  All the default ilink and status functions work, along with
> cop,4 to initiate the test tone.  But cop,6 won't key the radio.
>
> > >>> telesistant at hotmail.com 3/15/2006 2:21 PM >>>
> >
> > Well, if you have cop,6 defined as *88, and you are comming in with
>
> the P
>
> > option, and you
> > have phone_functions = phone_functions, then you definitely should be
>
> able
>
> > to key the
> > radio from the phone by dialing *88 (from the phone and only from the
> > phone).
> >
> > Jim, WB6NIL
> >
> > >From: "James Harfield" <harfija at auburn.edu>
> > >Reply-To: Asterisk Repeater Controler <app_rpt at lists.illiana.net>
> > >To: <app_rpt at lists.illiana.net>
> > >Subject: [App_rpt] COP Functions
> > >Date: Wed, 15 Mar 2006 13:11:02 -0600
> > >MIME-Version: 1.0
> > >Received: from lists.illiana.net ([207.227.243.140]) by
> > >bay0-mc12-f14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830);
>
> Wed,
>
> > >15 Mar 2006 11:12:02 -0800
> > >Received: (qmail 25119 invoked from network); 15 Mar 2006 19:12:00
>
> -0000
>
> > >Received: from localhost (HELO ?127.0.0.1?) (127.0.0.1)  by 0 with
>
> SMTP; 15
>
> > >Mar 2006 19:12:00 -0000
> > >Received: (qmail 25092 invoked from network); 15 Mar 2006 19:11:52
>
> -0000
>
> > >Received: from d1.duc.auburn.edu (131.204.2.2)by 0 with SMTP; 15 Mar
>
> 2006
>
> > >19:11:52 -0000
> > >Received: from TMIA1.AUBURN.EDU (tmia1.auburn.edu [131.204.3.30])by
> > >d1.duc.auburn.edu (8.13.4/8.13.4) with ESMTP id k2FJBjbE013830for
> > ><app_rpt at lists.illiana.net>; Wed, 15 Mar 2006 13:11:49 -0600 (CST)
> > >Received: from zTMIA1-MTA by TMIA1.AUBURN.EDUwith Novell_GroupWise;
>
> Wed, 15
>
> > >Mar 2006 13:11:45 -0600
> > >X-Message-Info: 6sSXyD95QpVMWPCRYsLAxQFjIgPjv7anT7L4spyjmhA=
> > >Return-Path: <harfija at auburn.edu>
> > >Delivered-To: mailman-app_rpt at lists.illiana.net
> > >X-Mailer: Novell GroupWise Internet Agent 7.0 X-BeenThere:
> > >app_rpt at lists.illiana.net
> > >X-Mailman-Version: 2.1.6
> > >Precedence: list
> > >List-Id: Asterisk Repeater Controler <app_rpt.lists.illiana.net>
> > >List-Unsubscribe:
> >
> ><http://lists.illiana.net/mailman/listinfo/app_rpt>,<mailto:app_rpt-reques
> >t at lists.illiana.net?subject=unsubscribe>
> >
> > >List-Archive: <http://lists.illiana.net/pipermail/app_rpt>
> > >List-Post: <mailto:app_rpt at lists.illiana.net>
> > >List-Help: <mailto:app_rpt-request at lists.illiana.net?subject=help>
> > >List-Subscribe:
> >
> ><http://lists.illiana.net/mailman/listinfo/app_rpt>,<mailto:app_rpt-reques
> >t at lists.illiana.net?subject=subscribe>
> >
> > >Errors-To: app_rpt-bounces at lists.illiana.net
> > >X-OriginalArrivalTime: 15 Mar 2006 19:12:03.0471 (UTC)
> > >FILETIME=[57DDA1F0:01C64864]
> > >
> > >I'm having a problem getting cop,6 to function correctly in PTT'ing
>
> the
>
> > >radio.
> > >
> > >I have phone_functions = phone_functions defined in rpt.conf and
>
> within the
>
> > >phone_functions heading I have:
> > >88 = cop,6
> > >defined with the other cop, ilink, and status functions.  When
>
> connecting
>
> > >to my base I use the |P option instead of |D for phone control.
> > >
> > >The problem I'm having is that cop,6 will not activate the base to
> > >transmit.  All the status commands, System Info, Time, Version, and
>
> the
>
> > >test tone cop,4 command work fine.  The radio keys up, the
>
> appropriate
>
> > >information is sent, and the radio is unkeyed.  But cop,6 will not
>
> key it.
>
> > >What I can do is manually key the radio and then use *88 (for cop,6)
>
> to
>
> > >talk and # when I want to end talking.  I've tried to dig through the
>
> code
>
> > >and look at the difference between cop,6 and cop,4 for activating the
>
> base,
>
> > >but I'm quite confused as to why one can work and one cannot.
> > >
> > >Thanks,
> > >
> > >JRH
> > >
> > >_______________________________________________
> > >App_rpt mailing list
> > >App_rpt at lists.illiana.net
> > >http://lists.illiana.net/mailman/listinfo/app_rpt
> >
> > _______________________________________________
> > App_rpt mailing list
> > App_rpt at lists.illiana.net
> > http://lists.illiana.net/mailman/listinfo/app_rpt
> >
> > _______________________________________________
> > App_rpt mailing list
> > App_rpt at lists.illiana.net
> > http://lists.illiana.net/mailman/listinfo/app_rpt
>
> _______________________________________________
> App_rpt mailing list
> App_rpt at lists.illiana.net
> http://lists.illiana.net/mailman/listinfo/app_rpt
>
> _______________________________________________
> App_rpt mailing list
> App_rpt at lists.illiana.net
> http://lists.illiana.net/mailman/listinfo/app_rpt



More information about the App_rpt-users mailing list