r2test.conf(5)
π r2test.conf β the glow-up guide π
okay bestie, so this is the manual for r2test.conf, aka the OpenR2 r2test program configuration file. yes it's a config file. yes it runs your R2 telephony vibes. yes we're gonna read the whole thing together, hand in hand, no skimming. π«Ά
β¨ SYNOPSIS β¨
/etc/openr2/r2test.conf
πΈ DESCRIPTION πΈ
This file defines the behavior of the r2test program.
It works pretty much like Asterisk's zapata.conf file β the channel parameter will create a R2 context with the specified range of channels and will take all the preceding parameters as configuration. so like, everything you wrote above the channel line? that's the vibe for that group of channels. iconic behavior honestly.
π SYNTAX π
No spaces are allowed in parameter definition, and lines starting with # or spaces will be ignored. (so go ahead and comment away, it's self-care.)
This definition will not be read properly:
param = value
This definition will be read fine:
param=value
okay literally just don't put spaces around the =. that's it. that's the whole rule. π
π OPTIONS π
category=<NATIONAL_SUBSCRIBER, NATIONAL_PRIORITY_SUBSCRIBER, INTERNATIONAL_SUBSCRIBER, INTERNATIONAL_PRIORITY_SUBSCRIBER>β Defines the call category of subscriber. Defaults toNATIONAL_SUBSCRIBER.loglevel=<all,error,warning,debug,notice,cas,mf,stack,nothing>β Defines the log level for debugging purposes. Defaults toall.error,warning,debug,noticeβ These options are self-descriptive.casβ is for logging ABCD CAS tx and rx.mfβ is for logging of the Multi Frequency tones.stackβ is for very verbose output of the channel and context call stack, only useful if you are debugging a crash or want to learn how the library works. The stack logging will be only enabled if the OpenR2 library was compiled with-DOR2_TRACE_STACKS.allβ is a special value to log all the activity.nothingβ is a clean-up value, in case you want to not log any activity for a channel or group of channels.- You can mix up values, like:
loglevel=error,debug,mfto log just error, debug and multi frequency messages. mixing? we love a customizable queen. π¦
callfile=<yes|no>β Call files useful to debug signaling issues are dumped in the current directory if this parameter is enabled. Defaults tono.variant=<br,mx,ar,itu>β R2 country variant. Defaults tomx.maxaniβ How much ANI to expect. Defaults to10.maxdnisβ How much DNIS to expect. Defaults to4.getanifirst=<yes|no>β Whether or not we want to request ANI first. Defaults tono.usedahdimf=<yes|no>β Whether to use the built-in OpenR2 MF tone generation or DAHDI MF tone generation. DAHDI is faster since it does not require to copy user space buffers to the kernel, however this option will only be available when the configure script detects DAHDI support for MF R2 tone generation. Defaults tono.mfthresholdβ MF threshold in milliseconds. This is the amount of time a R2 MF signal is required to be ON or OFF after has been detected to be handled.0means as soon as we detect a signal we handle it. This aids when a buggy generator or detector causes small false positives. Defaults to0.mfbacktimeoutβ MF backward timeout in milliseconds; to use the OpenR2 default just specify any negative number or comment this line. Defaults to-1.meteringpulsetimeoutβ Value in milliseconds for the metering pulse timeout, any negative value means default. Defaults to-1.collectcalls=<yes|no>β Whether to accept collect calls (see alsodoubleanswer). Defaults tono.doubleanswer=<yes|no>β This option are related but independent ofcollectcalls. If you have problems to block collect calls using Group B signals (collectcalls), enable this option. Defaults tono.immediateaccept=<yes|no>β Whether to skip Group B/II signals and go directly to the accepted state for an incoming call. Defaults tono.advancedprotocolfileβ This option is for advanced users only! Define a file that contains hacks to R2 protocol. This allow advanced users to fine tune the library or make test with specific scenarios to include in the library in the future.
bestie. ADVANCED USERS ONLY. it literally says hacks. don't come crying to me. π
playaudio=<yes|no>β This feature allows you to play an alaw audio file for incoming/outgoing calls. Defaults tono.audiofileβ If you setplayaudio=yesyou should provide the path to the audio file.channelβ Define range of channels to configure using previous options. The channel range must be specified, unless you will use only one channel. If this option is specified afterdnid,cidandcallerthat options will be used. Defaults to:
channel=1-15
channel=17-31
dnidβ Defines the destination number. Only used if.B caller = yes.cidβ Defines the caller id number. Only used if.B caller = yes.caller=<yes|no>β Whether or not the group of channels will start a call to the specifieddnid. Defaults toyes.
ποΈ FILES ποΈ
/etc/openr2/r2test.conf/etc/openr2/r2proto.conf
π SEE ALSO π
π AUTHOR π
This manual page was written by Alexandre Cavalcante Alencar <alexandre.alencar@gmail.com>.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
and that's the whole page, bestie!! πβ¨ it's version 1.0.0, brought to you by Moises Silva, and this is r2test.conf(5) signing off β go configure your channels, slay responsibly, and remember: no spaces around the equals sign. periodt. π
ππ¦
π¦ where this page comes from
- debian bookworm: libopenr2-bin 1.3.3-2
- debian trixie: libopenr2-bin 1.3.3-2
- ubuntu jammy: libopenr2-bin 1.3.3-2
- ubuntu noble: libopenr2-bin 1.3.3-2build1
- ubuntu questing: libopenr2-bin 1.3.3-2build1
- ubuntu resolute: libopenr2-bin 1.3.3-2build2
- ubuntu stonking: libopenr2-bin 1.3.3-2build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms