[PHREAKNET-2] Asterisk reload following unsuccessful call

DAHLIN-2
Fix typos and dead links
PHREAKSCRIPT-53
app_george: Cancel in-progress recording if nobody said anything
PHREAKSCAN-1
Raw data upload restricted to 15M
LBBS-87
mod_webmail: Null dereference in FETCHLIST
ASTERISK-136
app_voicemail: Voicemails stored but no email sent
SLACK-6
Can't post messages in enterprise workspaces using RTM API
LBBS-86
Deadlock on internal lock mutex
LBBS-80
mod_mimeparse: Occasional segfault when running tests
PHREAKSCRIPT-61
kernel-next build fails
LBBS-85
net_imap: Malformed IMAP FETCH response
PHREAKNET-54
Fix trunking to Telstar
LBBS-84
net_imap: Microsoft clients disconnected after 1 hour
LBBS-1
mod_slack: Workspace fails to initialize due to restrictions
ASTERISK-122
res_pjsip_device_features: Excessive refcount on endpoint object
PHREAKSCRIPT-59
Add PhreakScript option to enable EMPULSE
DAHLIN-10
Allow enabling EMPULSE and EMFLASH simultaneously
DAHLIN-9
DAHDI Linux: Build failure against next kernel
LBBS-83
Node deadlock on shutdown
LBBS-82
localtime_r deadlock
LBBS-81
io_tls: Crash due to uninitialized memory
PHREAKSCRIPT-60
phreak script install failed without --version 22
PHREAKSCAN-2
Improve automation
LBBS-47
Email enhancements
LBBS-78
node.c: node->ip can be NULL
LBBS-77
test_terminals: Test is now flaky
LBBS-79
Makefile: cp -n is deprecated
PHREAKNET-53
Change in IP address for hosted lines
LBBS-70
mod_smtp_delivery_external: Use SRS for externally forwarded messages
PHREAKSCRIPT-58
sig_analog: Allow hearpulsing gain to be adjusted
PHREAKSCRIPT-57
res_alarmsystem: Segfault due to calling ast_dtmf_stream on NULL channel
ASTERISK-135
Mutex errors on FreeBSD
LBBS-75
net_smtp: Allow plain text delivery if requirestarttls is false
PHREAKSCRIPT-55
dahdi_tool not installed
ASTERISK-134
chan_dahdi: Improve configuration validation
PHREAKSCRIPT-52
res_alarmsystem: IP loss reported even if no outage
LBBS-76
net_imap: Remote MOVE/COPY operations fail in some circumstances
PHREAKNET-46
Polycom IP phones not provisioning
PHREAKSCRIPT-43
Add spanconfig command
PHREAKSCRIPT-56
DAHDI Tools: Apply unmerged patches
ASTERISK-131
chan_dahdi: Automatically update time when DST starts/ends
ASTERISK-130
Verify that res_xmpp can compile and be used
WSSMAIL-5
Add full attachment support
DAHTOOL-5
Disabling span auto-assignment implodes kernel
PHREAKNET-52
Cisco end of CSR signing support
LBBS-74
net_ssh: Sessions persist even when they no longer exist
LBBS-18
net_ssh: High CPU trying to end SSH session
ASTERISK-106
chan_pjsip: Modify From header appropriately for unavailable presentation
ASTERISK-124
app_mixmonitor: Allow cancelling in-progress recording/recipients
ASTERISK-129
core: Add ref/unref for ast_moh callbacks
PHREAKSCRIPT-54
Replace LOAD_STR_INT with ast_yesno
ASTERISK-128
Rename ast_sip_presence_xml_ functions
ASTERISK-127
func_codecs: view/update codecs
DAHLIN-8
Readd native SF support
ASTERISK-126
chan_iax2: Add fixed jitterbuffer
PHREAKNET-49
ML model for 3-slot coin detection
ASTERISK-125
app_voicemail: Warning when hanging up during playback
ASTERISK-48
func_devstate: Delete empty from AstDB
ASTERISK-108
config.c: Investigate and fix various config file rewrite bugs
LBBS-25
mod_mail_trash: Attempts to open files as directories
LBBS-30
net_nntp: Complete overhaul/rewrite to use maildirs
INTERLINKED-20
Closing multiple issues simultaneously doesn't work
PHREAKNET-47
Add automation for bill mailings
PHREAKSCRIPT-51
Add 32-bit/ARM builds
DAHLIN-7
Mega-issue to upstream out-of-tree DAHDI patches
ASTERISK-123
app_voicemail: Add ability to disable "thank-you" when ending voicemail
PHREAKSCRIPT-50
app_acts: Finish fine tuning and bug fixes
LBBS-2
module.c: Improve module loading process
SLACK-4
Slack client exits due to SSL_ERROR_ZERO_RETURN
ASTERISK-83
res_pjsip_device_features: Add forwarding and DND synchronization
PHREAKSCRIPT-42
Syntax Error on chan_dahdi
PHREAKSCRIPT-48
res_alarmsystem.conf.sample: Config is not commented by default
WSSMAIL-10
Can scroll down past bottom of page on larger screens
PHREAKSCRIPT-49
wanpipe doesn't compile above 6.1 kernel
LBBS-21
net_imap: Proxy clients orphaned without associated IMAP session
LBBS-73
net_imap: Invalid memory access client->imap->tag
LBBS-19
tls.c: Occasional SEGV at shutdowns of TLS connections
DAHLIN-6
Frame relay broken
PHREAKSCRIPT-47
make webvmail
PHREAKSCRIPT-46
menuselect
PHREAKSCRIPT-45
TDMoIP driver module
PHREAKSCRIPT-44
Finish ADSI applications
DAHTOOL-4
dahdi_genconf: Hangs when run initially after span assignment
WSSMAIL-6
Add option to auto-reconnect if disconnected
PHREAKSCRIPT-41
Create virtual modem application using softmodem
PHREAKNET-41
Allow for more granular billing based on switch ZIP code
PHREAKNET-33
Finish TSPS web console
ASTERISK-121
Upstream PhreakScript patches
ASTERISK-82
app_queue: Allow queue strategy to be manipulated externally
ASTERISK-101
func_tonedetect: 2600 Hz detection not working or suboptimal
LBBS-72
mod_webdav: Add WebDAV support
LBBS-71
Limit registrations from same IP within a certain amount of time
LBBS-57
Occasional 100% CPU usage on SSH session termination
ASTERISK-120
app_senddtmf: SendDTMF failure if not answering channel
ASTERISK-119
app_dial: Progress timeout doesn't cause Dial to exit
TEST-1
Test issue
ASTERISK-117
app_voicemail: Pager email generation is broken
LBBS-31
mod_sieve: Major Sieve filtering overhaul and improvements
ASTERISK-118
chan_iax2: Improve encryption support
LBBS-60
Prevent clients from monopolizing nodes (DOS)
DAHTOOL-3
Compilation warnings on 32-bit (i686)
LBBS-14
net_imap: SEGV in strncmp
WSSMAIL-11
Use accurate hyperlinks for folders
WSSMAIL-1
Preview pane doesn't take up allotted space
WSSMAIL-2
Implicitly mark messages read when deleting
LBBS-12
mod_webmail: client_flush_pending_output infinite loop
LBBS-50
mod_chanserv: NULL dereference when joining IRC channel
LBBS-68
scripts: Improve backup script error reporting
LBBS-26
server_setup.sh: Autocreate all default directories
LBBS-54
mod_mailscript: Add RECIPIENT condition
LBBS-55
net_telnet: Don't use strerror if res is 0
LBBS-67
net_ftp: Set node protocol to FTPES if using Explicit TLS
ASTERISK-116
app_dial: Strange/broken behavior with 'U' option
LBBS-62
net_imap: IMAP client frequently fails for Microsoft accounts
LBBS-53
Assertion when forwarding to external recipient
PHREAKSCRIPT-40
res_msp: Indentation messed up
PHREAKSCRIPT-32
app_alarmsystem: Add alarm system application
INTERLINKED-13
Comment and Close doesn't close issue
PHREAKSCRIPT-31
phreaknet config does not update verify.conf
PHREAKSCRIPT-27
res_msp not patched in during install
PHREAKSCRIPT-26
format_mp3 prereqs not always available
SLACK-1
slack-client: Deadlock when relaying messages
SLACK-5
Failed to receive reply... when message sent
LBBS-69
net_ssh: SFTP uploads fail with WinSCP
WSSMAIL-15
Allow navigating messages using arrow keys
DAHLIN-4
Improve manual span assignment process
ASTERISK-115
chan_iax2: Some pattern matches ignored if included in incoming context
DAHLIN-5
FXO rings off hook when rotary dialing on the line
ASTERISK-114
chan_iax2: DP cache warning when using switch
ASTERISK-113
app_disa: Unrecognized option when providing context
ASTERISK-15
chan_dahdi: Allow sending SDMF Caller ID
ASTERISK-104
Improve dahdi show channels output
ASTERISK-112
chan_dahdi: Raw power ring audible on recall ring from IAX2 to DAHDI
ASTERISK-22
general: Fix various typos
ASTERISK-111
chan_dahdi: MWI while off-hook when hung up on after recall ring
ASTERISK-64
chan_dahdi: autoreoriginate doesn't work if caller hung up on
ASTERISK-105
chan_dahdi: Add CLI command to display line voltages
ASTERISK-88
chan_dahdi: Add ADSI on-hook download support
ASTERISK-110
chan_iax2: Implement MWI
PHREAKSCRIPT-29
res_phreaknet: Don't try making API requests if not a PhreakNet node
ASTERISK-109
voicemail.conf.sample: Clarify misnamed option behavior
INTERLINKED-17
Blog: Issues with tag editing and viewing
LBBS-15
smtp: Locking errors, deadlock when queue runs during delivery
ASTERISK-68
res_pjsip_sca: Segfaults on startup with SCA
PHREAKSCRIPT-39
Add optional flag to not update system first
PHREAKSCRIPT-38
res_phreaknet: Increase cURL timeouts
LBBS-32
mod_spamassassin: Improve default spam handling
PHREAKSCRIPT-37
app_softmodem: Support speeds higher than 2400bps
LBBS-59
Add HTTP endpoint for updating IRC presence automatically
PHREAKSCRIPT-36
app_audichron: Tone not working after announcements
PHREAKSCRIPT-35
app_mail: SendMail returns SUCCESS
LBBS-66
logger: Add rate limiting of log messages
INTERLINKED-15
Improve paging API
ASTERISK-107
indications.conf.sample: Add confirmation tone
LBBS-65
net_smtp: Allow internal trusted hosts to be exempt from protocol violation checks
INTERLINKED-16
Add option to not be notified about user's own issues
LBBS-16
io_compress: Occasional memory corruption on shutdown
WSSMAIL-14
Checkbox range selection doesn't always work reliably
PHREAKSCRIPT-34
app_verify: Check additional headers for STIR/SHAKEN attestation
PHREAKSCRIPT-33
verify.conf: Flag invalid NXXs as illegitimate for NANPA calls
LBBS-64
mod_operator: Crash with more than 64 options?
ASTERISK-19
chan_dahdi: Remove sig_analog paths
LBBS-61
net_imap: Soft assertion in parse_flags_string
LBBS-63
net_imap, io_compress: Spurious warnings if quota exceeded
ASTERISK-93
chan_dahdi: DSP optimizations
PHREAKSCRIPT-30
MD5/RSA authenticated calls frequently fail
PHREAKNET-45
Operator system PSPs are outdated
LBBS-46
Block malicious mail servers after repeated failures
WSSMAIL-13
Improve multi-INBOX navigation
WSSMAIL-12
Add one-click "Not junk" button
LBBS-22
mod_mail_trash: Eliminate bbs_pthread_cancel_kill
LBBS-6
Add menu system scripting engine
LBBS-58
net_irc: Make ping interval adjustable
ASTERISK-103
GitHub Issue 661 was not autoclosed by PR
PHREAKSCRIPT-28
app_predial: Failure to retrieve user agent property
PHREAKNET-44
Show only sum of message units used per month on bills
ASTERISK-96
asterisk.adsi: Add Call Waiting Deluxe integration to resident script
LBBS-56
net_snpp: Add Simple Network Paging Protocol support
ASTERISK-102
app_voicemail: Play RDNIS if present when listening to envelope
ASTERISK-46
dsp.c: Remove ast_ prefixes for static functions
ASTERISK-52
dsp.c: Add ast_freq_reset
PHREAKSCRIPT-20
dsp.c: coin DSP patch breaks faxing
WSSMAIL-9
Sent email uploads can fail due to relative host difference
SLACK-3
examples: Add example program to log everything to a CSV
LBBS-52
net_smtp: Add limited support for VRFY and EXPN
PHREAKNET-42
Provisioning fails for lines with certain features
ASTERISK-100
chan_dahdi: PRI lock held at module unload
LBBS-51
General TDD improvements
PHREAKNET-39
Splice Fred Covington prompts for speaking clock
PHREAKSCRIPT-25
chan_sccp no longer compiles
PHREAKNET-40
Recent Change provisioning bug increments device name by 1
ASTERISK-99
pjsip: Add Cisco CUCM patch functionality
ASTERISK-98
Add hangup callbacks
ASTERISK-97
func_groupcount: Add group vars
LBBS-49
Add functionality expected of a traditional BBS package
LBBS-48
net_irc: Support multi-server networks
WSSMAIL-8
Add NNTP support and IRC integration
EVERGREEN-3
Add NNTP support for newsgroups
PHREAKSCRIPT-24
DAHDI builds in GitHub CI occasionally fail due to IPv6
PHREAKSCRIPT-23
res_phreaknet: Increase cURL timeout
PHREAKSCRIPT-22
Add framehook to display dialed digits
PHREAKSCRIPT-21
app_looparound: Add LoopAround application
ASTERISK-95
testsuite README: Update outdated references
ASTERISK-94
app_chanspy: Fix bad audio with single direction operation
LBBS-45
Use isoexec whenever possible
CAMI-1
Action Originate Returns -1
EVERGREEN-2
Navigation breaks when requirefromhelomatch=no in LBBS
ASTERISK-92
config.c: ast_variable_update doesn't update all instances
PHREAKSCRIPT-19
app_verify: Double free
PHREAKSCRIPT-18
Add better test coverage for 32-bit systems
PHREAKSCRIPT-17
res_phreaknet: iax.conf, et. al. are truncated when there is no disk space left
LBBS-44
io_tls: TLS errors when no certs are defined
LBBS-43
mod_discord: Improve handling of in-thread replies
LBBS-42
mod_discord: Actions not relayed properly from IRC
LBBS-41
socket.c: SEGV in bbs_node_readline
ASTERISK-91
features.c: Add warning to not set BRIDGE_NOANSWER as global variable
ASTERISK-90
chan_iax2: Add log message for rejected calls
ASTERISK-89
app_stack: Print proper exit location for PBXless channels
ASTERISK-87
asterisk.c: Prevent creation of duplicate Asterisk processes
ASTERISK-86
app_confbridge: Channel can join wrong bridge due to race condition
ASTERISK-85
chan_pjsip: Add channel encryption integration
ASTERISK-84
Add 'core show variables' command
ASTERISK-81
format_lame: MP3 read and write with LAME library
ASTERISK-80
app_record: Add RECORD_TIME function
ASTERISK-79
config.c: Make ast_variable_retrieve return last match
ASTERISK-78
sig_analog: Add Last Number Redial
ASTERISK-77
sig_analog: Add Call Waiting Deluxe support
LBBS-40
net_smtp: Add additional loop avoidance mechanisms
LBBS-39
net_smtp: Occasional memory corruption on email delivery
LBBS-38
mod_smtp_mailing_lists: Allow dynamic membership
LBBS-37
Restrict outgoing port 25 from containers while allowing other traffic
LBBS-36
net_telnet: Improve protocol support
LBBS-35
net_acap: Add ACAP protocol support
LBBS-34
net_xmpp: Add XMPP protocol support
LBBS-33
net_imap: Add/standardize commands to modify or purge keywords
ASTERISK-76
app_dial: Allow MOH until progress received
ASTERISK-75
chan_dahdi: Add Call Hold feature
ASTERISK-74
chan_dahdi: Add AMI event for callwaiting
ASTERISK-73
chan_dahdi: Hunt to next trunk in group if busy
ASTERISK-72
chan_dahdi: Move documentation to separate file
PHREAKNET-38
Send reminder emails if requests are pending
WSSMAIL-7
Add ability for zero-trust type authentication
LBBS-29
net_irc: Add reminder bot
LBBS-28
mod_discord: Warn users if IRC users are not online
LBBS-27
mod_irc_relay: Allow relaying of away/here status
PHREAKSCRIPT-16
app_selective: Missing pause after add/delete/instructions prompt
ASTERISK-71
app_if: ElseIf executed even if If is true
ASTERISK-70
loader.c: Print module build opt sums if they differ
ASTERISK-69
res_cli_originate: Allow specifying Caller ID on CLI
DAHTOOL-2
dahdi_cfg: Compiler warnings
DAHLIN-3
build: Compiler warnings

← All Issues || New Issue →

Sort Normal || Priority

Details


After I dial a number from the directory 231 1111 in this example it causes my system to crash and need to reload. https://paste.interlinked.us/eqsftxnmqk I am using a VPS running Debian. This is early days for me with Phreaknet. I have had successful calls. Internal seems fine. Calls to other numbers 442 1111 work. It's something I may have done, but just in case someone says ah that'll be ...


Comments

1/25/2022 11:28 AM — InterLinked

I think the end of your sentence might have cut off/been cut off? When you say "causes the system to crash", do you mean Asterisk crashes and needs to be started again?
A backtrace is required for debugging crashes. Please run phreaknet enable-backtraces (and recompile/reinstall if necessary) and it should produce a core dump when it crashes. Then run "phreaknet backtrace" to process the core dump. That will produce the file needed.
Additionally, please post the output of "core show settings" if possible (if using "phreaknet trace", it should do this automatically).
Thanks!

1/25/2022 11:54 AM — paulash134

Sorry for the lack of correct terminology. Yes Asterisk crashes and needs to be restarted. I have run phreaknet enable-backtraces. i have run Phreaknet backtrace the Phreaknet trace is https://paste.interlinked.us/eqlod8c2l1.txt

PBX Core settings


Version: 18.9.0
Build Options: DONT_OPTIMIZE, COMPILE_DOUBLE, BETTER_BACKTRACES, BUILD_NATIVE, OPTIONAL_API
Maximum calls: Not set
Maximum open file handles: 1024
Root console verbosity: 3
Current console verbosity: 19
Debug level: 0
Trace level: 0
Maximum load average: 0.000000
Minimum free memory: 0 MB
Startup time: 16:53:30
Last reload time: 16:53:30
System: Linux/4.19.0 built by root on x86_64 2022-01-25 16:33:31 UTC
System name:
Entity ID: 00:00:00:00:00:00
PBX UUID: 4c19bcfe-141a-4c86-b9a8-bcaa4b1b9484
Default language: en
Language prefix: Enabled
User name and group: /
Executable includes: Disabled
Transcode via SLIN: Enabled
Transmit silence during rec: Disabled
Generic PLC: Enabled
Generic PLC on equal codecs: Disabled
Hide Msg Chan AMI events: Disabled
Min DTMF duration:: 80
Cache media frames: Enabled
RTP use dynamic payloads: 1
RTP dynamic payload types: 35-63,96-127

  • Subsystems


    Manager (AMI): Disabled
    Web Manager (AMI/HTTP): Disabled
    Call data records: Enabled
    Realtime Architecture (ARA): Disabled

  • Directories


    Configuration file: /etc/asterisk/asterisk.conf
    Configuration directory: /etc/asterisk
    Module directory: /usr/lib/asterisk/modules
    Spool directory: /var/spool/asterisk
    Log directory: /var/log/asterisk
    Run/Sockets directory: /var/run/asterisk
    PID file: /var/run/asterisk/asterisk.pid
    VarLib directory: /var/lib/asterisk
    Data directory: /var/lib/asterisk
    ASTDB: /var/lib/asterisk/astdb
    IAX2 Keys directory: /var/lib/asterisk/keys
    AGI Scripts directory: /var/lib/asterisk/agi-bin

1/25/2022 12:17 PM — InterLinked

No worries, Paul, thanks for providing the additional info.
This appears to be a novel issue I have not seen before. Which version of Debian are you running - 10 or 11?
I'm still running 10 - though with a newer 5.x kernel - but I haven't had this issue.

Does the issue happen when calling any number on that node? e.g. 511, 211, 231-1111, etc. or just that particular one?
Does it replicate consistently? e.g. every time you call that number, it consistently crashes?

Can you also provides the output of the CLI command "keys show"?
And in your regular terminal: ls -la /var/lib/asterisk/keys

I think an issue may need to be opened upstream with Asterisk, which I can do, but I want to be sure of all the details first and see if I can replicate this in any way.

1/25/2022 12:33 PM — paulash134

Debian 10 - I have tried many of the numbers in the directory. I don't have a log of them as I go off hook to dial them but the numbers I remember are 231 1111, 234 1111, 976 3333. Every time consistently crashes. I can, however, get through to my own Time 980 1212, DISA 980 1111 and Roberts Time 442 1212 and DISA 442 1111

Key Name Type Status Sum


phreaknetrsa PRIVATE [Loaded] bc876bb7a5f17693fd002044175e41db
phreaknetrsa PUBLIC [Loaded] 75de35465a6666451dccfa7dff13bf5d
phreaknet-rsa-voip.phreaknet.org PUBLIC [Loaded] ae5f7baaebdfff173719b1281035131c

root@linux:~# ls -la /var/lib/asterisk/keys
total 24
drwxr-xr-x 3 asterisk root 4096 Jan 25 16:14 .
drwxr-xr-x 14 asterisk root 4096 Jan 25 17:29 ..
-rw-r--r-- 1 root root 271 Jan 24 08:45 phreaknet-rsa-voip.phreaknet.org.pub
-rw------- 1 root root 887 Jan 21 19:50 phreaknetrsa.key
-rw-r--r-- 1 root root 272 Jan 21 19:50 phreaknetrsa.pub
drwxr-xr-x 2 asterisk root 4096 Jan 20 22:46 stir_shaken

1/25/2022 12:39 PM — InterLinked

Got it, makes sense.
Can you try another call to 231-1111 now? I have my iax2 debug on so I can see if anything is happening here that might provide a hint.
Additionally, please capture the trace with core debug level 5, e.g. phreaknet trace --debug=5 I believe should do the trick. (Or you can manually do core set debug 5 and copy and paste if you prefer.)
There may be clues there in a possible bug in how chan_iax2 is setting up the encryption for the call. If I had to guess, that's where the problem might be.
Rob's node (442) doesn't support RSA authentication, which is why I think it works.
Your node may also not be requiring it at present, though it seems it supports at least since I just made an RSA authentication call to you fine.

1/25/2022 12:53 PM — InterLinked

Unfortunately, I can't reproduce the issue on a test machine with Asterisk 18.9 (though it is on Debian 11), so I may need you to try a few different things here.
Can you post your [general] from iax.conf?
After you've tried a call with debug level 3 or greater, then, if possible, run "phreaknet valgrind" to see if there are any memory issues may also be insightful. This will start Asterisk under valgrind - you would replicate the crash quickly (as Asterisk runs very slowly under valgrind, which is quite resource intensive). The output from that might offer additional clues.

We know that your Asterisk is crashing due to it trying to encrypt an IAX control frame, but precisely why isn't evident here; I don't see any null pointers, which is a common issue.

Thread 1 (Thread 0x7fbb4c2c6700 (LWP 1786)):

0 0x00007fbb77b2d97b in AES_encrypt () at /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1

1 0x00007fbb5518185c in __ast_aes_encrypt (in=0x7fbb4c2c1160 "", out=0x7fbb5c008ec0 "", ctx=0x565422403d54) at res_crypto.c:478

2 0x00007fbb55aef4ee in memcpy_encrypt (dst=0x7fbb5c008ec0 "", src=0x7fbb4c2c11a0 "", len=208, ecx=0x565422403d54) at chan_iax2.c:6437

    curblock = '000' <repeats 15 times>, "n"  
    x = 16  

3 0x00007fbb55aefc12 in encrypt_frame (ecx=0x565422403d54, fh=0x7fbb5c008ebc, poo=0x565422404034 "", datalen=0x7fbb5c008bc0) at chan_iax2.c:6517

    efh = 0x7fbb5c008ebc  
    padding = 26  
    workspace = 0x7fbb4c2c11a0 ""  
    __FUNCTION__ = "encrypt_frame"  

This is a system call to AES_encrypt in <openssl/aes.h>, but it could be crashing due to invalid arguments, not a problem with AES_encrypt itself.

1/25/2022 2:41 PM — paulash134

root@linux:~# phreaknet trace --debug=5
No ethernet interface found for seeding global EID. You will have to set it manually.
No ethernet interface found for seeding global EID. You will have to set it manually.
Core debug was OFF and is now 5.
No ethernet interface found for seeding global EID. You will have to set it manually.
Console verbose was OFF and is now 10.
Starting trace (verbose 10, debug 5): 1643139581
Starting CLI trace...
A CLI trace is now being collected. Reproduce the issue, then press ENTER to conclude the trace:
CLI trace terminated...
No ethernet interface found for seeding global EID. You will have to set it manually.
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 146k 100 39 100 146k 96 361k --:--:-- --:--:-- --:--:-- 361k
Paste URL: https://paste.interlinked.us/b9rhcsicrq.txt

1/25/2022 2:42 PM — paulash134

[general]
;bindport=4569 ; if you are NOT using 4569 as your PUBLIC IAX2 facing port for THIS switch, you should change the bindport so Asterisk listens on the forwarded port or call tokens will not work consistently
relaxdtmf=yes ; If your server has issues with DTMF this option may help
bandwidth=high ; This doesn't mean you have high bandwidth, it means allow high-bandwidth codecs. If you mess with this, your calls will sound awful because you're forbidding the codecs that should be used.
disallow=all ; allow only G711 or better codecs
allow=ulaw ; PCM G.711 uLaw (North America)
allow=alaw ; PCM G.711 aLaw (Europe, non-NANPA)
jitterbuffer=no
tos=0x12
delayreject=yes ; for increased security against brute force attacks
autokill=yes ; prevent stalling on call setup for unavailable hosts
encryption=yes ; Encryption is disabled by default. This allows it to be used.
trunk=yes ; More efficient when multiple IAX2 calls are up between two nodes.
maxcallnumbers_nonvalidated = 10 ; If you need to support nodes that don't do call tokens, set a limit or your server can be attacked.
; If you're not on C*NET, you may want to remove this line and the one below, and set requirecalltoken=yes globally, for security.
;calltokenoptional=0.0.0.0/0.0.0.0
requirecalltoken=yes

; You can copy and paste the sections generated by the user creation tool,
; or you can manually set these values and then set up your user.
[paulash134]
type = user
username = paulash134
secret = d9ff4dcca8697078c584bd13ae924be5c9c1476273780b46
auth = rsa,md5

include iax-phreaknet-rsa-in.conf

forceencryption = yes
requirecalltoken = yes
context = from-phreaknet ; this must be listed first (primary/default)
context = from-phreaknet-operator
;context = from-stepnet ; uncomment if this is a StepNet tandem
; insert any additional contexts here, since the first one is the default (primary)

include iax-phreaknet-rsa-out.conf

1/25/2022 2:44 PM — paulash134

root@linux:~# phreaknet valgrind
No ethernet interface found for seeding global EID. You will have to set it manually.
/usr/local/sbin/phreaknet: 1697: /usr/local/sbin/phreaknet: valgrind: not found
/tmp/asteriskvalgrind.txt

1/25/2022 2:49 PM — InterLinked

For that last bit, run phreaknet update && phreaknet valgrind and it should work then.
The script didn't used to install valgrind for you but now it does.

1/25/2022 3:39 PM — paulash134

==24610== Valgrind: failed to move log file descriptor into safe range, using stderr
==24610== Memcheck, a memory error detector
==24610== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==24610== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==24610== Command: asterisk -vvvvcg 9
==24610==
Killed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 131k 100 39 100 131k 125 423k --:--:-- --:--:-- --:--:-- 422k
Paste URL: https://paste.interlinked.us/4wumgyo2iv.txt
/tmp/asteriskvalgrind.txt

1/25/2022 5:24 PM — InterLinked

It looks like you loaded Asterisk successfully in valgrind, but you didn't make any calls after it loaded (at least, not from what I can see of the output). When it loads, can you make a call - the crash needs to happen while valgrind is running.
Keeping in mind that Asterisk takes almost a minute to start up under valgrind, as opposed to seconds like it usually would, so you'd want to wait until it's fully loaded before doing so.

1/25/2022 6:01 PM — paulash134

Asterisk is running: I run phreaknet valgrind
root@linux:~# phreaknet valgrind
Reading package lists... Done
Building dependency tree
Reading state information... Done
valgrind is already the newest version (1:3.14.0-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
No ethernet interface found for seeding global EID. You will have to set it manually.
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
==9562== Valgrind: failed to move log file descriptor into safe range, using stderr
==9562== Memcheck, a memory error detector
==9562== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==9562== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==9562== Command: asterisk -vvvvcg 9
==9562==
Killed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 131k 100 39 100 131k 131 441k --:--:-- --:--:-- --:--:-- 440k
Paste URL: https://paste.interlinked.us/l81wbu0ozk.txt
/tmp/asteriskvalgrind.txt
I try to make a call and I get no further the line stays open and silent I can't dial although I tried keying in 231 1111. I'm happy to keep trying. When and if you have time I can share my screen with you.

1/25/2022 6:12 PM — InterLinked

You might find it helpful to run this command in one terminal window, and then open asterisk -r in another window so you can see what's actually happening as it's ongoing.

It may take a long time for Asterisk to do things that usually happen instantaneously in this mode; for instance, just processing individual dialplan calls might take seconds as opposed to milliseconds (it is REALLY slow). That's why being able to see on the CLI might be helpful.

Let me know if that helps; if not, we can certainly set up a time to debug together. Any chance you might be able to make it to Thursday's Asterisk debug/troubleshooting/help meeting? It's about this time, this Thursday. I think Chaz posted the details to the list.

1/25/2022 6:25 PM — paulash134

I watched the loading of the switch in a separate window and waited until it had all finished then tried to dial out, just silence but I keyed in the 231 1111 number, watching the CLI which didn't change then received engaged tone. I sent a phreaknet valgrind into the other screen, got the CLI eventually in the second screen and watched the system load. Tried to send a number to the system but still no tone. The screen I sent the command in to killed the operation at about the same time on each occasion. I will look up the debug troubleshooting help meeting, I should be able to make it. Thank you for all your help.

1/25/2022 6:26 PM — paulash134

root@linux:~# phreaknet valgrind
Reading package lists... Done
Building dependency tree
Reading state information... Done
valgrind is already the newest version (1:3.14.0-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
No ethernet interface found for seeding global EID. You will have to set it manually.
==18265== Valgrind: failed to move log file descriptor into safe range, using stderr
==18265== Memcheck, a memory error detector
==18265== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==18265== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==18265== Command: asterisk -vvvvcg 9
==18265==
Killed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 121k 100 39 100 121k 141 440k --:--:-- --:--:-- --:--:-- 440k
Paste URL: https://paste.interlinked.us/nakiplzwrv.txt
/tmp/asteriskvalgrind.txt
root@linux:~# phreaknet valgrind
Reading package lists... Done
Building dependency tree
Reading state information... Done
valgrind is already the newest version (1:3.14.0-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
No ethernet interface found for seeding global EID. You will have to set it manually.
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
==18930== Valgrind: failed to move log file descriptor into safe range, using stderr
==18930== Memcheck, a memory error detector
==18930== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==18930== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==18930== Command: asterisk -vvvvcg 9
==18930==
Killed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 120k 100 39 100 120k 128 395k --:--:-- --:--:-- --:--:-- 395k
Paste URL: https://paste.interlinked.us/svhbqdl9ky.txt
/tmp/asteriskvalgrind.txt

1/25/2022 6:29 PM — InterLinked

Now that I recall you mentioning you had only 512 MB, in conjunction with this answer, it may be getting killed due to a lack of memory: https://stackoverflow.com/a/10940186/

If you run "top" while valgrind is running and memory usage has approached 100%, that is likely what is happening then.

1/25/2022 6:32 PM — paulash134

So more memory in the server would rectify all of this?

1/25/2022 6:46 PM — InterLinked

No, the issue would remain, it just might make tools like valgrind work a little better.
Probably not worth it; there are other ways to try to figure this out. valgrind might not be the best option here.
A less resource intensive option is MALLOC_DEBUG; you can try phreaknet update && phreaknet malloc-debug - this will recompile Asterisk with that option, then you reproduce the issue as with phreaknet trace. This should work on your system.
We can also take a closer look on Thursday.

1/26/2022 8:47 AM — paulash134

root@linux:~# phreaknet trace --debug=5
No ethernet interface found for seeding global EID. You will have to set it manually.
No ethernet interface found for seeding global EID. You will have to set it manually.
Core debug was OFF and is now 5.
No ethernet interface found for seeding global EID. You will have to set it manually.
Console verbose was OFF and is now 10.
No ethernet interface found for seeding global EID. You will have to set it manually.
IAX2 Debugging Enabled
Starting trace (verbose 10, debug 5): 1643204692
Starting CLI trace...
A CLI trace is now being collected. Reproduce the issue, then press ENTER to conclude the trace:
CLI trace terminated...
No ethernet interface found for seeding global EID. You will have to set it manually.
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 147k 100 39 100 147k 130 494k --:--:-- --:--:-- --:--:-- 494k
Paste URL: https://paste.interlinked.us/yxjyrjcdu8.txt

1/27/2022 8:03 PM — paulash134

[Jan 28 01:00:28] CAPABILITY2 : Unknown
[Jan 28 01:00:28] ADSICPE : 0
[Jan 28 01:00:28] DATE TIME : 2022-01-28 01:00:28
[Jan 28 01:00:28] VARIABLE : nodevia=9801111
[Jan 28 01:00:28] VARIABLE : dialed=2311111
[Jan 28 01:00:28]
[Jan 28 01:00:28] DEBUG[6728]: devicestate.c:361 _ast_device_state: No provider found, checking channel drivers for IAX2 - 157.230.89.4:4569
[Jan 28 01:00:28] DEBUG[6728]: chan_iax2.c:14560 iax2_devicestate: Checking device state for device 157.230.89.4
[Jan 28 01:00:28] DEBUG[6728]: devicestate.c:466 do_state_change: Changing state for IAX2/157.230.89.4:4569 - state 4 (Invalid)
[Jan 28 01:00:28] DEBUG[6796]: app_queue.c:2604 device_state_cb: Device 'IAX2/157.230.89.4:4569' changed to state '4' (Invalid) but we don't care because they're not a member of any queue.
[Jan 28 01:00:28] -- Called IAX2/phreaknet:1ffa893b1657b12a79be1ecbded0c3d69dac80d314284d14:[phreaknetrsa]@voip.phreaknet.org/2311111
[Jan 28 01:00:28] DEBUG[9064][C-00000001]: app_dial.c:1231 wait_for_answer: Local/2311111@phreaknet-route-00000001;2
[Jan 28 01:00:28] DEBUG[9064][C-00000001]: channel.c:5744 set_format: Channel IAX2/157.230.89.4:4569-12117 setting read format path: ulaw -> ulaw
[Jan 28 01:00:28] DEBUG[9064][C-00000001]: channel.c:5744 set_format: Channel Local/2311111@phreaknet-route-00000001;2 setting write format path: ulaw -> ulaw
[Jan 28 01:00:28] DEBUG[9064][C-00000001]: channel.c:5744 set_format: Channel Local/2311111@phreaknet-route-00000001;2 setting read format path: ulaw -> ulaw
[Jan 28 01:00:28] DEBUG[9064][C-00000001]: channel.c:5744 set_format: Channel IAX2/157.230.89.4:4569-12117 setting write format path: ulaw -> ulaw
[Jan 28 01:00:28] Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: CTOKEN
[Jan 28 01:00:28] Timestamp: 00012ms SCall: 00001 DCall: 12117 157.230.89.4:4569
[Jan 28 01:00:28] CALLTOKEN : 51 bytes
[Jan 28 01:00:28]
[Jan 28 01:00:28] DEBUG[6766][C-00000001]: chan_iax2.c:10406 socket_process_helper: Received packet 0, (6, 40)
[Jan 28 01:00:28] DEBUG[6766][C-00000001]: chan_iax2.c:10503 socket_process_helper: Cancelling transmission of packet 0
[Jan 28 01:00:28] DEBUG[6766][C-00000001]: chan_iax2.c:10677 socket_process_helper: IAX subclass 40 received
[Jan 28 01:00:28] DEBUG[6766][C-00000001]: chan_iax2.c:10686 socket_process_helper: For call=12117, set last=12
[Jan 28 01:00:28] DEBUG[6763]: chan_iax2.c:3410 send_packet: Sending 84 on 12117/0 to 157.230.89.4:4569
[Jan 28 01:00:28] Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
[Jan 28 01:00:28] Timestamp: 00084ms SCall: 12117 DCall: 00000 157.230.89.4:4569
[Jan 28 01:00:28] VERSION : 2
[Jan 28 01:00:28] CALLED NUMBER : 2311111
[Jan 28 01:00:28] CODEC_PREFS : (ulaw|alaw)
[Jan 28 01:00:28] CALLING NUMBER : 9802368
[Jan 28 01:00:28] CALLING PRESNTN : 0
[Jan 28 01:00:28] CALLING TYPEOFN : 0
[Jan 28 01:00:28] CALLING TRANSIT : 0
[Jan 28 01:00:28] CALLING ANI2 : 0
[Jan 28 01:00:28] CALLING NAME : John Smith
[Jan 28 01:00:28] LANGUAGE : en
[Jan 28 01:00:28] USERNAME : phreaknet
[Jan 28 01:00:28] ENCRYPTION : 32769
[Jan 28 01:00:28] FORMAT : 4
[Jan 28 01:00:28] FORMAT2 : ulaw
[Jan 28 01:00:28] CAPABILITY : 12
[Jan 28 01:00:28] CAPABILITY2 : Unknown
[Jan 28 01:00:28] ADSICPE : 0
[Jan 28 01:00:28] DATE TIME : 2022-01-28 01:00:28
[Jan 28 01:00:28] VARIABLE : nodevia=9801111
[Jan 28 01:00:28] VARIABLE : dialed=2311111
[Jan 28 01:00:28] CALLTOKEN : 51 bytes
[Jan 28 01:00:28]
[Jan 28 01:00:28] Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK
[Jan 28 01:00:28] Timestamp: 00084ms SCall: 09752 DCall: 12117 157.230.89.4:4569
[Jan 28 01:00:28] DEBUG[6767][C-00000001]: chan_iax2.c:10406 socket_process_helper: Received packet 0, (6, 4)
[Jan 28 01:00:28] DEBUG[6767][C-00000001]: chan_iax2.c:10503 socket_process_helper: Cancelling transmission of packet 0
[Jan 28 01:00:28] DEBUG[6767][C-00000001]: chan_iax2.c:10677 socket_process_helper: IAX subclass 4 received

You must be logged in to leave a comment.