Giter VIP home page Giter VIP logo

pttlink / asterisk Goto Github PK

View Code? Open in Web Editor NEW
39.0 20.0 34.0 12.05 MB

Version of asterisk used for PTTLink. And home of the original ASL code base repo.

License: Other

Makefile 0.76% Shell 2.26% M4 0.68% Perl 0.60% C 90.39% C++ 3.89% Objective-C 0.07% Assembly 0.11% PHP 0.06% Tcl 0.03% TeX 0.10% Yacc 0.35% Lex 0.18% HTML 0.06% CSS 0.04% JavaScript 0.06% Roff 0.36% Python 0.01% Awk 0.01%

asterisk's Introduction

GitHub watchers

GitHub all releases

Asterisk source package for AllStarLink


This is the Asterisk source package for AllStarLink and the files to build the ASL 1.02 distribution.


Submitting Issues/Bug Reporting:

All Issues/Bug Reports MUST utilize the the ISSUE TEMPLATE for submission. Issues/bugs submitted without using this template will be closed/rejected. Do not utilize for submitting issues that are Feature Requests. (Effective 11/29/2020)


Submitting Changes/Pull Requests:

All Changes/Pull Requests MUST utilize the PULL REQUEST template. Changes/Pull Requests submitted without using this template will be rejected/closed. (Effective 11/29/2020)

Additionally, all Changes/Pull Requests MUST be submitted against the develop branch. Requests submitted against the master branch will be closed/rejected.

All Changes/Pull Requets must include:

Commits that don't include these two items won't pass the status checks.

Any commit that fails the status checks will be rejected until it passes all status checks.


Updates: Refer to the CHANGELOG.md for all changes in this release.


PTTLink wiki: https://wiki.pttlink.org

PTTLink Portal: https://www.pttlink.org

PTTLink Network/System status: https://grafana.pttlink.org


Copyright

Asterisk 1.4.23pre is copyright Digium (https://www.digium.com)

app_rpt and associated programs (app_rpt suite) are copyright Jim Dixon, WB6NIL; AllStarLink, Inc.; and contributors

(Refer to each individual's file source code for full copyright information)

License

Asterisk, app_rpt and all associated code/files are licensed, released, and distributed under the GNU General Public License v2 and cannot be relicensed without written permission of Digium and the copyright holders of the app_rpt suite of programs.


Compiling

Refer to the Compiling article on the AllStarLink Wiki at https://wiki.pttlink.org/wiki/Compiling for information on how to build for source.


Contributing

Please refer to the Contributing page on the AllStarLink Wiki.

asterisk's People

Contributors

ajpaul25 avatar allstarlink1 avatar jimzah avatar kg7qin avatar lejudd avatar mrbungle42 avatar n4irs avatar n8thn avatar thecranston avatar tolitski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asterisk's Issues

.send_text being called once for every connected echolink node

.send_text in chan_echolink (local function el_text) is being called multiple times, once for each of any currently connected echolink nodes.

To check this, I put a LOG_NOTICE at the beginning of the method,
I also put a LOG_NOTICE listing all nodes passed to the function

here is the output for one cycle, I have Allstar node 2000 connected, and also echolink node 9999 and echolink node 428425 :

[Aug 26 19:40:11] NOTICE[2291]: chan_echolink.c:1166 el_text: el_text CALLED
[Aug 26 19:40:11] NOTICE[2291]: chan_echolink.c:1206 el_text: R2000
[Aug 26 19:40:11] NOTICE[2291]: chan_echolink.c:1206 el_text: T3009999
[Aug 26 19:40:11] NOTICE[2291]: chan_echolink.c:1166 el_text: el_text CALLED
[Aug 26 19:40:11] NOTICE[2291]: chan_echolink.c:1206 el_text: R2000
[Aug 26 19:40:11] NOTICE[2291]: chan_echolink.c:1206 el_text: T3428425

Crashed Related to RTCM Connect Time

As RTCM nodes are connected to my hub upwards of 500 hours the connect time display becomes negative. Soon thereafter Asterisk begins to behave erratically and eventually crashes or requires a restart. Disconnecting and reconnecting a RTCM node to prevent exceeding that time prevents related crashes. Guessing this would be a chan_voter issue.

APRS server address hardcoded in channel driver

ahp = ast_gethostbyname(EL_APRS_SERVER,&ah);
if (!ahp) {
ast_log(LOG_ERROR, "Unable to resolve echolink APRS server IP address\n");
close(instp->ctrl_sock); instp->ctrl_sock = -1;
close(instp->audio_sock); instp->audio_sock = -1;
return -1;
}

#define EL_APRS_SERVER "aprs.echolink.org"

Crashes Related to Connections

My nodes crash way too often. A couple of weeks up time is about the best I generally get. A random (non scientific) survey of the stats page reveals similar up times for many nodes. I've had a theory that poor IAX connections have something to do with that. But it was hard to prove, until I found out there is a way to simulate poor network connectivity with the *CLI> iax2 test losspct .

I set up a test bench with three nodes, one acting as a hub for the other two. After connecting with permanent connections I introduced packet loss with the above iax2 CLI. This would generally crash one of the nodes fairly quickly. This would lead one to believe that there is an issue with reconnects.

To test that, I set up a couple of scripts to repeatedly perform regular (not permanent) connects and disconnects. This too will crash a node in rather short order, say within 30 minutes or so. This will cause a crash even without introduced packet loss.

I am fairly convinced there is something, perhaps some connection routine not cleaning up properly, that is causing app_rpt to be much less stable than Asterisk itself. I hope this helps you smart programmers find and solve this up time issue.

Exit Behavior

Typing "quit" preserves Asterisk CLI history. I would like to see CNTL-C (to exit) do the same. Newer versions of Asterisk do this.

core dump when many nodes connected

Having problems with core dumps when multiple large hubs connect together.

Same issue as https://community.allstarlink.org/t/asterisk-core-dumps/16050

https://github.com/AllStarLink/Asterisk/blob/2a50097040b89c05312ec0c025d9073003f140df/asterisk/apps/app_rpt.c#L23122

This appears to be relevant output from echo bt | sudo gdb /usr/sbin/asterisk /core

Core was generated by /usr/sbin/asterisk -g -f -C /etc/asterisk/asterisk.conf'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f27b5eb8db6 in rpt_exec (chan=0x7f2788012630, data=) at app_rpt.c:23122

23122 if ((!strncasecmp(l->chan->name,"echolink",8)) ||
[Current thread is 1 (Thread 0x7f277a8b6700 (LWP 5539))]
(gdb) #0 0x00007f27b5eb8db6 in rpt_exec (chan=0x7f2788012630, data=) at app_rpt.c:23122
#1 0x0000000000489173 in pbx_exec (data=0x7f277a8b1cd0, app=0xd70930, c=0x7f2788012630) at pbx.c:537
#2 pbx_extension_helper (c=c@entry=0x7f2788012630, context=context@entry=0x7f2788012880 "radio-secure", exten=exten@entry=0x7f27880128d0 "2560", priority=1, label=label@entry=0x0,
callerid=, action=action@entry=E_SPAWN, con=0x0) at pbx.c:1862
#3 0x00000000004908fc in ast_spawn_extension (callerid=, priority=, exten=0x7f27880128d0 "2560", context=0x7f2788012880 "radio-secure", c=0x7f2788012630) at pbx.c:2317
#4 __ast_pbx_run (c=c@entry=0x7f2788012630) at pbx.c:2406
#5 0x0000000000491499 in pbx_thread (data=data@entry=0x7f2788012630) at pbx.c:2621
#6 0x00000000004c0169 in dummy_start (data=) at utils.c:925
#7 0x00007f27c51f14a4 in start_thread (arg=0x7f277a8b6700) at pthread_create.c:456
#8 0x00007f27c47eed0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
(gdb) quit
`

bug/invalid_CD_name

Multiple occurrences of referring to usbradio where it should be simpleusb. Some in simple messages and some in actual code.

CD=Channel Driver

Steve N4IRS

Wrong echolink number Node in status - EL Android

When we use echolink Android application to connect echolink node running on Allstarlink always in status node ASL display wrong number echolink node connected to ASL. For example, my echolink node is 926515 and when I connect to my ASL echolink node in status "Node currently connected to us" is showed number 3437911. When I look at http://echolink.org/logins.jsp I found that echolink number node 437911 belongs to KO4AVA. When I disconnect and connect again to ASL the my number EL was changed to another 3876316 and when I check on EL status page I found that the number belongs to DV2EVE.

But when I use the software PC version echolink the number my echolink node in status ASL is correct 3926515.

Does it look like bug ASL which not properly get information about connected number EL node with the station who uses EL Android application?

Develop and master branches differ

With the changes that have been merged into the master and develop branches recently, I was wondering at what point these would be re-synched? Master seems to have some commits that develop does not.

Feature/Kerchunk_Filter

Please consider adding a kerchunk filter (i.e. kerchunk_timer and kerchunk_timeout parameters) to the rx channel drivers. This would work like what is found on many repeater controllers such as those from LinkComm. That is, it takes a user defined period (i.e. kerchunk_timer) of receiver activity (COR+CTCSS) to first activate the receiver. Thereafter the activation would be zero (or rxondelay) as long as there is receiver activity. After a user defined period of inactivity (i.e. kerchunk_timeout), receiver activation would revert to kerchunk_timer activation.

linkcount error

Constantly getting following error when many nodes are connected.
[May 13 00:56:15] WARNING[16669]: app_rpt.c:4303 linkcount: maximum number of links exceeds 32 in rpt_do_stats()!

Need to change
#define MAX_STAT_LINKS 32
in app_rpt.c to
#define MAX_STAT_LINKS 128

feature/increase_call_list_size

I have had a few requests to increase the size of the the permit and deny list in EchoLink.
It is currently defined at 30. I propose we increase it to 60 or above. the value is set at:
#define EL_MAX_CALL_LIST 30

Steve N4IRS

custom_audio_filters

Add custom audio filters
Implement feature for usbradio to:

  • rxlpf: Receiver Audio Low Pass Filter
  • rxhpf: Receiver Audio High Pass Filter
  • txlpf: Transmitter Audio Low Pass Filter
  • txhpf: Transmitter Audio High Pass Filter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.