[arm-allstar] Disconnect from nodes during autopatch

Martin Greatorex venamartin at gmail.com
Sat Feb 3 17:50:33 EST 2024


I think I figured out another method. Using TrySystem(). Here is what I
have (????? is my node #):

[voipms-outbound]
exten => _1NXXNXXXXXX,1,TrySystem(/usr/sbin/asterisk -rx "rpt fun ?????
*76")
exten => _1NXXNXXXXXX,n,Dial(SIP/${EXTEN}@voipms)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,TrySystem(/usr/sbin/asterisk -rx "rpt fun ????? *76")
exten => _NXXNXXXXXX,n,Dial(SIP/1${EXTEN}@voipms)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(SIP/${EXTEN}@voipms)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(SIP/${EXTEN}@voipms)
exten => _00.,n,Hangup()
exten => _911,1,TrySystem(/usr/sbin/asterisk -rx "rpt fun ????? *76")
exten => _911,n,Dial(SIP/1${EXTEN}@voipms)
exten => _911,n,Hangup()

; h is called after hangup occurs
exten => h,1,TrySystem(/usr/sbin/asterisk -rx "rpt fun ????? *77")


Thoughts?

Martin KN6GWQ

On Sat, Feb 3, 2024 at 5:36 AM Dave Petrie <wa2kjc at gmail.com> wrote:

> oh and this is in the rpt.conf file under [funtions????] and then
> [macro????]
>
>
> On Sat, Feb 3, 2024 at 8:12 AM Dave Petrie <wa2kjc at gmail.com> wrote:
>
>> quick easy way would be to use [macro????]  the ???? is your node
>> ???=*76, *??
>> the first 3 ??? is the command you have available and then = *76, *??
>> the ?? is your autopatch
>>
>> so to initiate answer or call the autopatch with the macro not the *
>> command
>> *5???   would run the sequence in macro mode
>>
>> then reverse the string to hang up
>>
>> ???=*??, *77#
>>
>> which would be *5???  a different macro for the hang up string
>>
>>
>>
>>
>> On Fri, Feb 2, 2024 at 10:52 PM Martin Greatorex via ARM-allstar <
>> arm-allstar at hamvoip.org> wrote:
>>
>>> I am trying to figure out a way to have all links disconnect (like *76)
>>> when someone initiates an autopatch call. Then when the call is
>>> terminated
>>> or hung up, reconnect the links (like *77).
>>>
>>> Any ideas?
>>>
>>> 73,
>>>
>>> KN6GWQ
>>> Martin
>>> _______________________________________________
>>>
>>> ARM-allstar mailing list
>>> ARM-allstar at hamvoip.org
>>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>>>
>>> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>>>
>>


More information about the ARM-allstar mailing list