[ASTERISK-171] chan_iax2: Crash due to memory corruption following packet decrypt failures

ASTERISK-171
chan_iax2: Crash due to memory corruption following packet decrypt failures
DAHLIN-12
oct612x, wct4xxp: Compilation failure on next kernel
LBBS-103
mod_webmail: Crash when FETCH fails after retry due to no messages returned
PHREAKSCRIPT-20
dsp.c: coin DSP patch breaks faxing
LBBS-110
Support TDD message lines
ASTERISK-174
func_channel: Allow manually changing channel format
LBBS-127
net_tap: Add support for TAP/IXO paging protocol
ASTERISK-82
app_queue: Allow queue strategy to be manipulated externally
LBBS-121
mod_asterisk_queues: Memory corruption or use after free in agent list
LBBS-109
net_telnet: Local echo remains enabled in some cases
PHREAKSCRIPT-66
dahdi_vpmadt032_loader.o: unannotated intra-function call
ASL-6
app_rpt: Allow dialplan to be executed when placing calls
ASTERISK-122
res_pjsip_device_features: Excessive refcount on endpoint object
ASTERISK-149
sig_analog: Winks from dialplan don't propagate onto DAHDI channels
LBBS-102
mod_smtp_filter: Received header no longer has 'for' recipient included
LBBS-80
tests: Jump to invalid address on the next line
LBBS-98
net_smtp: Fix message processing actions being skipped in some cases
LBBS-86
Deadlock on internal lock mutex
PHREAKNET-54
Fix trunking to Telstar
DAHTOOL-5
Disabling span auto-assignment implodes kernel
PHREAKSCRIPT-36
app_audichron: Tone not working after announcements
PHREAKNET-6
Verification flags international calls
PHREAKSCRIPT-56
DAHDI Tools: Apply unmerged patches
ASTERISK-124
app_mixmonitor: Allow cancelling in-progress recording/recipients
DAHTOOL-4
dahdi_genconf: Hangs when run initially after span assignment
INTERLINKED-24
Improve programmatic interfaces to issues
ASTERISK-93
chan_dahdi: DSP optimizations
LBBS-31
mod_sieve: Major Sieve filtering overhaul and improvements
PHREAKNET-34
Pat Fleet prompts
LBBS-16
io_compress: Occasional memory corruption on shutdown
CAMI-1
Action Originate Returns -1
LBBS-13
pty.c: Attempt to acquire node lock after it's been destroyed
PHREAKSCRIPT-53
app_george: Cancel in-progress recording if nobody said anything
ASTERISK-175
app_mixmonitor: Can record multiple times to same file
ASTERISK-142
res_pjsip_caller_id: P-Charge-Info should be used for ANI
ASTERISK-146
res_agi: callingani2 is not formatted as 2 digits
ASTERISK-168
chan_iax2: Make refresh interval configurable
ASL-5
app_rpt: DAHDI tones not working for genchannel
ASTERISK-160
chan_dahdi: Add timer for caller subscriber held
DOCS-3
verify.conf: Boilerplate uses hardcoded paths for astkeydir
LBBS-96
pty: CR NUL is sometimes split up, leaking to flaky test
ASTERISK-100
chan_dahdi: PRI lock held at module unload
ASTERISK-143
func_sysinfo: Add options to retrieve current verbose/debug levels
ASTERISK-109
voicemail.conf.sample: Clarify misnamed option behavior
WSSMAIL-3
Message listing missing recipient for some messages
ASTERISK-137
sig_analog: Add alternate dial pulse scheme support
ASTERISK-176
chan_pjsip: Add "none" DTMF method
LBBS-65
net_smtp: Allow internal trusted hosts to be exempt from protocol violation checks
ASTERISK-102
app_voicemail: Play RDNIS if present when listening to envelope
DAHLIN-4
Improve manual span assignment process
ASTERISK-81
format_lame: MP3 read and write with LAME library
ASTERISK-23
logging: Update log levels
PHREAKSCRIPT-76
ast_safe_sleep: Memory corruption when freeing frames
ASTERISK-68
res_pjsip_sca: Segfaults on startup with SCA
ASTERISK-154
app_dial: Dialplan freeze during announcement
ASTERISK-88
chan_dahdi: Add ADSI on-hook download support
ASTERISK-83
res_pjsip_device_features: Add forwarding and DND synchronization
ASTERISK-19
chan_dahdi: Remove sig_analog paths
PHREAKSCRIPT-78
chan_sccp: Don't know how to send format
ASTERISK-144
chan_pjsip: Add support for directrtpsetup
PHREAKNET-66
Allow signaling when through on coin calls
LBBS-113
Add support for TOTP two-factor and app passwords
ASTERISK-130
Verify that res_xmpp can compile and be used
ASTERISK-155
chan_iax2: Barrage of DTMF frames can cause channel to hang
LBBS-107
mod_sieve: Segfault in lib libsieve_strbuffree during message delivery
PHREAKSCRIPT-65
wanpipe: wanpipe modules fail to load
DAHLIN-9
No rule to make target 'vpmadt032_loader/vpmadt032_x86_64.o'
ASTERISK-71
app_if: ElseIf executed even if If is true
PHREAKNET-40
Recent Change provisioning bug increments device name by 1
ASTERISK-159
chan_dahdi: Remove unused code
PHREAKSCRIPT-73
res_smdr_whozz: Heuristically use call progress to determine if call was answered
LBBS-70
mod_smtp_delivery_external: Use SRS for externally forwarded messages
PHREAKNET-52
Cisco end of CSR signing support
DAHLIN-7
Mega-issue to upstream out-of-tree DAHDI patches
ASTERISK-97
func_groupcount: Add group vars
PHREAKNET-35
TSPS improvements
PHREAKNET-23
Wakeup calls not dialling at scheduled time
ASTERISK-101
func_tonedetect: 2600 Hz detection not working or suboptimal
LBBS-32
mod_spamassassin: Improve default spam handling
PHREAKSCRIPT-72
res_smdr_whozz: Build/support loop follower circuit for pulse support
ASTERISK-152
app_queue: Allow ringall to be combined with other settings
PHREAKSCRIPT-67
Add rate limiting application
ASTERISK-147
res_smdi: Allow Asterisk to be the SMDI server
LBBS-6
Add MenuScript, a menu system scripting engine
SLACK-5
Failed to receive reply... when message sent
ASTERISK-131
chan_dahdi: Automatically update time when DST starts/ends
ASTERISK-115
chan_iax2: Some pattern matches ignored if included in incoming context
ASTERISK-112
chan_dahdi: Raw power ring audible on recall ring from IAX2 to DAHDI
ASTERISK-66
app_sf: ReceiveSF not detecting incoming SF
EVERGREEN-1
Use default identity per folder
ASTERISK-140
res_pjsip_session: Add support for SIP-ISUP
LBBS-34
net_xmpp: Add XMPP protocol support
PHREAKSCRIPT-74
Finish real time inpulsing support
ASTERISK-110
chan_iax2: Implement MWI
ASTERISK-75
chan_dahdi: Add Call Hold feature
LBBS-92
Gmail bug causes disconnect after MOVE of certain messages
LBBS-129
editor.c: Small terminal widths lead to drawing issues
LBBS-95
mod_mailscript: Add ADDFLAG action
DAHTOOL-8
autoreconf fails
LBBS-97
system.c: Evaluate shell syntax/variables when launching programs
LBBS-88
net_imap: IDLE data not being processed in realtime
ASTERISK-134
chan_dahdi: Improve configuration validation
INTERLINKED-20
Closing multiple issues simultaneously doesn't work
DAHTOOL-7
Unknown type bool in Rocky Linux 9.2
LBBS-58
net_irc: Make ping interval adjustable
DAHLIN-1
Makefile: remove update target
ASL-7
app_rpt: Add XML documentation
PHREAKNET-47
Add automation for bill mailings
ASTERISK-164
chan_dahdi: Allow setting/getting lastexten from dialplan
ASTERISK-156
chan_dahdi: Clean up permanent/transient private variables
LBBS-71
Limit registrations from same IP within a certain amount of time
ASTERISK-63
Upstream certain PhreakScript modules
PHREAKSCRIPT-43
Add spanconfig command
ASTERISK-106
chan_pjsip: Modify From header appropriately for unavailable presentation
ASTERISK-123
app_voicemail: Add ability to disable "thank-you" when ending voicemail
ASTERISK-104
Improve dahdi show channels output
ASTERISK-64
chan_dahdi: autoreoriginate doesn't work if caller hung up on
LBBS-66
logger: Add rate limiting of log messages
INTERLINKED-16
Add option to not be notified about user's own issues
LBBS-46
Block malicious mail servers after repeated failures
ASTERISK-52
dsp.c: Add ast_freq_reset
ASTERISK-73
chan_dahdi: Hunt to next trunk in group if busy
ASTERISK-65
sig_analog: Allow simple switch to time out to dialplan
LBBS-11
door_evergreen: Use isonetexec instead of exec
LBBS-7
Fix backspace detection/handling
ASTERISK-37
chan_pjsip: CALLERID(ani2) not working
ASTERISK-36
res_pjsip_logger: Add filtering by username
ASTERISK-58
xml: Add config documentation
PHREAKSCRIPT-69
res_alarmsystem: Add additional environmental integration
ASTERISK-84
Add 'core show variables' command
ASTERISK-74
chan_dahdi: Add AMI event for callwaiting
ASTERISK-8
Optimize boilerplate RSA to MD5 fallback
ASL-4
Add framehook module to convert between mute/unmute and radio key/unkey
ASTERISK-157
chan_dahdi: Empty voicemail messages on hangup
ASTERISK-27
chan_dahdi: add IS_FXO_SIG macro
ASTERISK-163
Add support for KP2
ASTERISK-72
chan_dahdi: Move documentation to separate file
SLACK-2
README: Add missing pre-reqs
ASTERISK-55
chan_dahdi: add NUM_ANALOG_SUBS
ASTERISK-42
sig_pri: Add CLI description
ASTERISK-34
app_queue: Allow setting context at runtime
ASTERISK-30
Add ast_channel_tech_name_match function
ASTERISK-29
chan_iax2: Add ${CHANNEL(authmethod)}
ASTERISK-18
func_frame_drop: Simplify and improve
ASTERISK-15
chan_dahdi: Allow sending SDMF Caller ID
ASTERISK-98
Add hangup callbacks
ASTERISK-47
res_pjsip_session: Warn if no shared codecs
LBBS-128
thread.c: Recursive lock attempt between find_thread and thread_unregister
PHREAKSCRIPT-49
wanpipe doesn't compile above 6.1 kernel
ASTERISK-86
app_confbridge: Channel can join wrong bridge due to race condition
LBBS-56
net_snpp: Add Simple Network Paging Protocol support
INTERLINKED-6
PhreakNet Forums
ASTERISK-169
stasis: Memory corruption in channel_snapshot_dialplan_create
ASTERISK-165
res_calendar_icalendar: SEGV during module refresh
LBBS-117
TLS/IMAP: Add extensible/detailed logging info
DAHLIN-14
DAHDI modules fail to load with error: loading out-of-tree module taints kernel
DAHLIN-6
Frame relay broken
LBBS-74
net_ssh: Sessions persist even when they no longer exist
DAHLIN-10
Allow enabling EMPULSE and EMFLASH simultaneously
LBBS-82
localtime_r deadlock
ASTERISK-135
Mutex errors on FreeBSD
LBBS-41
socket.c: SEGV in bbs_node_readline
LBBS-69
net_ssh: SFTP uploads fail with WinSCP
PHREAKSCRIPT-19
app_verify: Double free
PHREAKNET-14
1+ calls do not work for single numbers
PHREAKSCRIPT-75
Add support for DNVT military phones
LBBS-47
Email enhancements
LBBS-90
mod_smtp_delivery_external: Improve queuing process
PHREAKSCRIPT-37
app_softmodem: Support speeds higher than 2400bps
EVERGREEN-3
Add NNTP support for newsgroups
LBBS-48
net_irc: Support multi-server networks
PHREAKNET-39
Splice Fred Covington prompts for speaking clock
WSSMAIL-5
Add full attachment support
ASTERISK-129
core: Add ref/unref for ast_moh callbacks
DAHLIN-8
Readd native SF support
PHREAKNET-49
ML model for 3-slot coin detection
PHREAKSCRIPT-45
TDMoIP driver module
PHREAKSCRIPT-44
Finish ADSI applications
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
LBBS-72
mod_webdav: Add WebDAV support
ASTERISK-118
chan_iax2: Improve encryption support
DAHLIN-5
FXO rings off hook when rotary dialing on the line
ASTERISK-105
chan_dahdi: Add CLI command to display line voltages
WSSMAIL-13
Improve multi-INBOX navigation
LBBS-38
mod_smtp_mailing_lists: Allow dynamic membership
LBBS-36
net_telnet: Improve protocol support
LBBS-35
net_acap: Add ACAP protocol support
WSSMAIL-4
Add PHPMailer support for format=flowed
ASTERISK-7
Improve sound control capabilities
LBBS-49
Add functionality expected of a traditional BBS package
LBBS-30
net_nntp: Complete overhaul/rewrite to use maildirs
ASTERISK-99
pjsip: Add Cisco CUCM patch functionality
LBBS-33
net_imap: Add/standardize commands to modify or purge keywords
ASTERISK-57
bridging: Make DAHDI, always softmix bridging modules
LBBS-91
readline.c: Crash in memmove
EVERGREEN-2
Navigation breaks when requirefromhelomatch=no in LBBS
DOCS-1
Kickstart the wiki
ASTERISK-87
asterisk.c: Prevent creation of duplicate Asterisk processes
DAHTOOL-2
dahdi_cfg: Compiler warnings
PHREAKNET-36
Trunking integration with Phil McCarter
LBBS-130
test_imap_msn: Flaky test
PHREAKNET-65
ZEnith numbers don't bill properly
ASTERISK-172
chan_dahdi: DAHDI FXO channels can stay busy on repeated access attempts
ASTERISK-170
app_voicemail: Read-only option doesn't prevent move operations
LBBS-124
net_http: Allow for multiple virtualhosts
ASTERISK-167
sig_analog: Improve Call Forwarding implementation
ASTERISK-166
sig_analog: Make call waiting hangup behavior configurable
EVERGREEN-4
Expunge of folder with mix of \Deleted messages results in stale view
LBBS-112
mod_asterisk_ami: Exponential backoff logic busy loops instead
LBBS-111
mod_asterisk_ami: Add multi-Asterisk support
DAHTOOL-6
Support ppp 2.5.0
PHREAKNET-58
TSPS phrasing is not correct
PHREAKSCRIPT-62
res_smdr_whozz: Initialization usually fails in practice
DAHTOOL-3
Compilation warnings on 32-bit (i686)
PHREAKSCRIPT-33
verify.conf: Flag invalid NXXs as illegitimate for NANPA calls
LBBS-61
net_imap: Soft assertion in parse_flags_string
LBBS-63
net_imap, io_compress: Spurious warnings if quota exceeded
LBBS-39
net_smtp: Occasional memory corruption on email delivery
LBBS-37
Restrict outgoing port 25 from containers while allowing other traffic
LBBS-23
net_smtp: DMARC reports not sent due to rejection of localhost
LBBS-20
node.c: Occasional race conditions during node shutdown cause deadlock
LBBS-17
Temporary files not always cleaned up
LBBS-79
Makefile: cp -n is deprecated
PHREAKSCRIPT-35
app_mail: SendMail returns SUCCESS
LBBS-51
General TDD improvements
PHREAKSCRIPT-23
res_phreaknet: Increase cURL timeout
ASTERISK-94
app_chanspy: Fix bad audio with single direction operation
ASTERISK-76
app_dial: Allow MOH until progress received
LBBS-28
mod_discord: Warn users if IRC users are not online
PHREAKSCRIPT-16
app_selective: Missing pause after add/delete/instructions prompt
ASTERISK-43
pbx_builtins: allow Answer to specify the channel
ASTERISK-35
sig_analog: Fix buffer overflow
PHREAKNET-61
Create a webpage for the operator automatic traffic generator
ASTERISK-153
app_confbridge: Allow disabling the CBAnn channel
DAHLIN-11
Use dev_addr_set instead of directly modifying const buffer
PHREAKSCRIPT-58
sig_analog: Allow hearpulsing gain to be adjusted
ASTERISK-128
Rename ast_sip_presence_xml_ functions
ASTERISK-127
func_codecs: view/update codecs
WSSMAIL-15
Allow navigating messages using arrow keys
PHREAKSCRIPT-29
res_phreaknet: Don't try making API requests if not a PhreakNet node
LBBS-59
Add HTTP endpoint for updating IRC presence automatically
WSSMAIL-14
Checkbox range selection doesn't always work reliably
SLACK-3
examples: Add example program to log everything to a CSV
PHREAKSCRIPT-22
Add framehook to display dialed digits
PHREAKSCRIPT-21
app_looparound: Add LoopAround application
LBBS-45
Use isoexec whenever possible
PHREAKSCRIPT-17
res_phreaknet: iax.conf, et. al. are truncated when there is no disk space left
LBBS-43
mod_discord: Improve handling of in-thread replies

← All Issues || New Issue →

Sort Normal || Priority

Details


Unsure exactly how this fluke happened...

[2025-12-31 21:49:19.704] WARNING[1819857]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!
[2025-12-31 21:49:19.784] ERROR[1819854]: iax2/parser.c:1224 iax_frame_wrap: Losing frame data because destination buffer size '4096' bytes not big enough for '-2' bytes in the frame
[2025-12-31 21:49:19.784] ERROR[1819854]: iax2/parser.c:1224 iax_frame_wrap: Losing frame data because destination buffer size '4096' bytes not big enough for '-2' bytes in the frame

#5  0x00007ff54c02686a in malloc_printerr (str=str@entry=0x7ff54c12f158 "double free or corruption (!prev)") at ./malloc/malloc.c:5660
#6  0x00007ff54c0288dc in _int_free (av=0x7ff53c000030, p=0x7ff53cada5a0, have_lock=<optimized out>, have_lock@entry=0) at ./malloc/malloc.c:4587
        size = 224
        fb = <optimized out>
        nextchunk = 0x7ff53cada680
        nextsize = <optimized out>
        nextinuse = <optimized out>
        prevsize = <optimized out>
        bck = <optimized out>
        fwd = <optimized out>
        __PRETTY_FUNCTION__ = "_int_free"
#7  0x00007ff54c02af4f in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3385
        ar_ptr = <optimized out>
        p = <optimized out>
        err = 0
#8  0x0000563937216c55 in __ast_free (ptr=0x7ff53cada5b0, file=0x563937463889 "frame.c", lineno=169, func=0x563937463f28 <__PRETTY_FUNCTION__.3> "__frame_free") at astmm.c:1556
#9  0x00005639372c6950 in __frame_free (fr=0x7ff53cada5b0, cache=1) at frame.c:169
        __PRETTY_FUNCTION__ = "__frame_free"
#10 0x00005639372c6990 in ast_frame_free (frame=0x7ff53cada5b0, cache=1) at frame.c:182
        next = 0x0
#11 0x000056393725fab5 in __ast_read (chan=0x7ff524132410, dropaudio=0, dropnondefault=1) at channel.c:3739
        skipped_dtmf_frame = 0
        skip_dtmf = 0
        f = 0x7ff53cada5b0
        prestate = 4
        cause = 0
        stream = 0x0
        default_stream = 0x0
        __PRETTY_FUNCTION__ = "__ast_read"
        __FUNCTION__ = "__ast_read"
#12 0x0000563937261ae9 in ast_read (chan=0x7ff524132410) at channel.c:4265
#13 0x0000563937258d64 in safe_sleep_conditional (chan=0x7ff524132410, timeout_ms=1000, cond=0x0, data=0x0, generate_silence=1) at channel.c:1527
        dup_f = 0x0
        f = 0x5639374fbe20 <ast_null_frame>
        silgen = 0x0
        res = 0
        start = {tv_sec = 1767217759, tv_usec = 553782}
        ms = 770
        deferred_frames = {first = 0x0, last = 0x0}
        __PRETTY_FUNCTION__ = "safe_sleep_conditional"
#14 0x0000563937258f7d in ast_safe_sleep (chan=0x7ff524132410, ms=1000) at channel.c:1576
#15 0x00007ff5480c64ba in streamsilence_exec (chan=0x7ff524132410, data=0x7ff51f50f9d0 "1") at app_streamsilence.c:106

Happened again, not once, but twice, I believe:

[2026-01-01 21:32:22.033] WARNING[3457527]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!
[2026-01-01 21:32:22.053] WARNING[3457526]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!
[2026-01-01 21:32:22.113] WARNING[3457524]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!
[2026-01-01 21:32:22.143] WARNING[3457530]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!
[2026-01-01 21:32:22.188] WARNING[3457531]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!
[2026-01-01 21:32:22.449] ERROR[3457522]: iax2/parser.c:1224 iax_frame_wrap: Losing frame data because destination buffer size '4096' bytes not big enough for '-2' bytes in the frame
[2026-01-01 21:32:22.449] ERROR[3457522]: iax2/parser.c:1224 iax_frame_wrap: Losing frame data because destination buffer size '4096' bytes not big enough for '-2' bytes in the frame

Comments

1/1/2026 7:24 PM — csptechnologies

I’m having the same issue too! My asterisk crashes after that error message.

1/1/2026 7:29 PM — InterLinked

Very interesting... are you able to reproduce it reliably or does it seem kind of random?

1/2/2026 2:40 PM — InterLinked

Another crash today, with similar circumstances:

[2026-01-02 18:43:48.728] WARNING[3551228]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!  
[2026-01-02 18:43:50.371] WARNING[3551230]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!  
[2026-01-02 18:43:50.423] WARNING[3551227]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!  

However, the frame wrap thing didn't happen, as I added an assert in that function which was not triggered.

So far, I've only been seeing these on incoming calls from your node, @csptechnologies.

If you are able to set up a DISA on your node that would allow me to dial back so I can try to reproduce the crashes, that might help get to the bottom of this. Of course, if it also crashes yours, that might be a bit inconvenient... I have a cron job that runs every few minutes to start Asterisk if it's crashed.

1/2/2026 3:02 PM — csptechnologies

Mine happens at random times. I made an temporary DISA on 277-7473 and you should be able to natively dial PhreakNet Numbers.

1/2/2026 3:06 PM — csptechnologies

Sorry, I meant 277-7475

1/2/2026 3:45 PM — InterLinked

Looks like it happened just now, right after the start of an incoming call attempt:

[2026-01-02 20:43:28.211] WARNING[3555976]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!  
[2026-01-02 20:43:28.260] ERROR[3555976]: iax2/parser.c:1224 iax_frame_wrap: Losing frame data because destination buffer size '4096' bytes not big enough for '-1' bytes in the frame  
[2026-01-02 20:43:28.261] ERROR[3555976]: iax2/parser.c:1224 iax_frame_wrap: Losing frame data because destination buffer size '4096' bytes not big enough for '-1' bytes in the frame  

What's happening on your end when this happens? Do you crash as well?

1/2/2026 3:55 PM — csptechnologies

Yes, I crash as well. Here are my logs

-- Accepting AUTHENTICATED call from 68.180.38.252:4569:  
--        > requested auth methods = (RSA|MD5),  
--        > actual auth method = MD5,  
--        > encrypted = yes,  
--        > requested format = Unknown,  
--        > requested prefs = (h264|g722|ulaw|alaw|gsm|mpeg4),  
--        > actual format = g722,  
--        > host prefs = (g722|ulaw|alaw|gsm|h264|mpeg4),  
--        > priority = mine  
-- Executing [2772745@from-phreaknet:1] NoOp("IAX2/phreaknet-7968", "") in new stack  
-- Executing [2772745@from-phreaknet:2] Set("IAX2/phreaknet-7968", "CALLERID(num)=972774801") in new stack  
-- Executing [2772745@from-phreaknet:3] SIPAddHeader("IAX2/phreaknet-7968", "Alert-Info: <Bellcore-dr2>") in new stack  
-- Executing [2772745@from-phreaknet:4] Goto("IAX2/phreaknet-7968", "phreaknet-exchange,2772745,1") in new stack  
-- Goto (phreaknet-exchange,2772745,1)  
-- Executing [2772745@phreaknet-exchange:1] Goto("IAX2/phreaknet-7968", "from-internal,2745,1") in new stack  
-- Goto (from-internal,2745,1)  
-- Executing [2745@from-internal:1] Progress("IAX2/phreaknet-7968", "") in new stack  

[2026-01-02 14:41:20] WARNING[878856][C-000006d4]: pbx_functions.c:459 func_args: Can't find trailing parenthesis for function 'CALLERID(name'?
-- Executing [2745@from-internal:2] System("IAX2/phreaknet-7968", "/usr/bin/php /var/lib/asterisk/agi-bin/intercept.php "972774801" "2745" "Elliot McPike"") in new stack
-- Call accepted by 68.180.38.252:4569 (format g722)
-- Format for call is (g722)
-- IAX2/68.180.38.252:4569-14033 is making progress passing it to SIP/4801-000004d6
[2026-01-02 14:41:20] WARNING[710179]: res_pjsip_pubsub.c:3603 pubsub_on_rx_publish_request: No registered publish handler for event presence from 5336
[2026-01-02 14:41:21] WARNING[436071]: chan_iax2.c:12013 socket_process_helper: Received mini frame before first full video frame
[2026-01-02 14:41:21] WARNING[878864]: chan_iax2.c:12013 socket_process_helper: Received mini frame before first full video frame
[2026-01-02 14:41:21] WARNING[436068]: chan_iax2.c:10491 socket_process_helper: Packet Decrypt Failed!
[2026-01-02 14:41:21] WARNING[436065]: chan_iax2.c:12013 socket_process_helper: Received mini frame before first full video frame
[2026-01-02 14:41:21] WARNING[436066]: chan_iax2.c:12013 socket_process_helper: Received mini frame before first full video frame
[2026-01-02 14:41:21] WARNING[436074]: chan_iax2.c:12013 socket_process_helper: Received mini frame before first full video frame
[2026-01-02 14:41:21] WARNING[436073]: chan_iax2.c:12013 socket_process_helper: Received mini frame before first full video frame
[2026-01-02 14:41:21] WARNING[436072]: chan_iax2.c:12013 socket_process_helper: Received mini frame before first full video frame
[2026-01-02 14:41:21] WARNING[878865]: chan_iax2.c:12013 socket_process_helper: Received mini frame before first full video frame
[2026-01-02 14:41:21] WARNING[436065]: chan_iax2.c:12013 socket_process_helper: Received mini frame before first full video frame
[2026-01-02 14:41:21] ERROR[436072]: iax2/parser.c:1213 iax_frame_wrap: Losing frame data because destination buffer size '4096' bytes not big enough for '-2' bytes in the frame
[2026-01-02 14:41:21] ERROR[436072]: iax2/parser.c:1213 iax_frame_wrap: Losing frame data because destination buffer size '4096' bytes not big enough for '-2' bytes in the frame
-- Executing [2745@from-internal:3] Set("IAX2/phreaknet-7968", "CONNECTEDLINE(all,i)=SVA-INTERCEPT") in new stack
-- Executing [2745@from-internal:4] Wait("IAX2/phreaknet-7968", "1") in new stack
-- Executing [2745@from-internal:5] Playback("IAX2/phreaknet-7968", "custom/intercept_cisco") in new stack
-- IAX2/68.180.38.252:4569-14033 answered SIP/4801-000004d6
-- Channel IAX2/68.180.38.252:4569-14033 joined 'simple_bridge' basic-bridge <242bf7c6-29f0-4d8a-b6fe-2b8c7c98fcfc>
-- <IAX2/phreaknet-7968> Playing 'custom/intercept_cisco.g722' (language 'en')
-- Channel SIP/4801-000004d6 joined 'simple_bridge' basic-bridge <242bf7c6-29f0-4d8a-b6fe-2b8c7c98fcfc>
[2026-01-02 14:41:22] WARNING[440217]: res_pjsip_pubsub.c:1010 subscription_get_handler_from_rdata: No registered subscribe handler for event as-feature-event from 4448
cspserver*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups

1/2/2026 3:58 PM — InterLinked

I wonder if this has to do with video support in some way... maybe try disabling that temporarily and see if that changes anything?
Could you also share the Asterisk version that you are using and anything that might be special about your build (how you installed it, etc.)

1/2/2026 4:02 PM — csptechnologies

Video Support over IAX2 is now disabled. I am currently running Asterisk 20.15.2 which was downloaded directly from Asterisk's Website, and compiled the official way (./configure, make, make install)

1/2/2026 4:08 PM — InterLinked

DISA was working before (sort of, I was getting a verification error), although now it's not going to it anymore it seems.

1/2/2026 4:28 PM — csptechnologies

DISA seems to be working on my end.

1/2/2026 4:44 PM — InterLinked

I'm getting a verification failure, likely due to the call not being out-verified when it leaves your node.
If you call the out verify routines, or as a simple hack, do Set(IAXVAR(nodevia)=2777475), I think that would fix the issue.

On another note, though it hasn't been long yet, things seem more stable... I haven't noticed any crashes since disabling video so maybe that's related.
Maybe we'll let it run for a little bit and if no crashes, then we can re-enable that for a more focused test.

1/2/2026 5:10 PM — csptechnologies

I made the changes now. Is the verfication working properly now?

1/2/2026 5:16 PM — InterLinked

Well, I spoke too soon - just saw this recently:

[2026-01-02 22:03:21.502] WARNING[3562480]: chan_iax2.c:10454 socket_process_helper: Packet Decrypt Failed!  
[2026-01-02 22:03:21.563] ERROR[3562479]: iax2/parser.c:1225 iax_frame_wrap: Losing frame data because destination buffer size '4096' bytes not big enough for '-1' bytes in the frame  

I'm getting some leads though, it crashed somewhere I added an assertion.

On the DISA, I get "call cannot be completed as dialed" again now. I think this might be happening after a crash has happened.

1/2/2026 5:21 PM — csptechnologies

Interesting... I don't have video enabled at all. The DISA seems to be working though.

1/2/2026 6:22 PM — InterLinked

Yes, at the moment, all is well. I'm waiting for the next crash which should help me pinpoint closer to the root cause. If you're able to expedite that, that would certainly help ;)

1/2/2026 7:03 PM — InterLinked

Also, what user agent (IP phone, ATA, analog phone) are you using to place calls?
I can't seem to trigger it when placing DISA calls, but it's happened several times on calls you've made it seems. One difference I see is your call used the G.722 codec, which I don't think a call from my system and then to yours would use (I'm also realizing your snippet above doesn't appear to be coming from my system, as I only allow ulaw and alaw).

1/2/2026 7:06 PM — csptechnologies

I am using a Cisco 8865-K9 which is on my Cisco UCM system which then trunks into my asterisk server, which then trunks into CSP CPBX Asterisk Server

1/2/2026 7:22 PM — InterLinked

I was able to get some useful insight on this from gdb... looks like this is indeed is video related in some way (at least from the one core dump I analyzed)

6  0x00007f39acc46542 in socket_process_helper (thread=0x55f368a05390) at chan_iax2.c:12132  
12132                   duped_fr = iaxfrdup2(fr);  
(gdb) print f.datalen  
$1 = -1  
(gdb) print f  
$2 = {frametype = AST_FRAME_VIDEO, subclass = {integer = 0, {format = 0x55f3680af6d8, topology = 0x55f3680af6d8}, frame_ending = 1}, datalen = -1, samples = 0, mallocd = 0, mallocd_hdr_len = 0,  
  offset = 0, src = 0x7f39acc6620c "IAX2", data = {ptr = 0x55f368a054a6, uint32 = 1755337894, pad = "\246T\240h\363U\000"}, delivery = {tv_sec = 0, tv_usec = 0}, frame_list = {next = 0x0},  
  flags = 0, ts = 0, len = 0, seqno = 0, stream_num = 0}  

That might explain why it only happens when you make the calls... the 8865-K9 is a video-enabled phone, after all.

I would say go ahead and re-enable video (it didn't seem to make much difference anyways). I have additional assertions in place now for spots where I think something fishy may be going.

1/7/2026 7:54 PM — InterLinked

Another crash, got some additional clues from that:

#4  0x00007f0d7d045064 in socket_process_helper (thread=0x7f0d940caf50) at chan_iax2.c:11981  
11981                   f.datalen = res - sizeof(*vh);  
(gdb) print f  
$4 = {frametype = AST_FRAME_VIDEO, subclass = {integer = 0, {format = 0x55ba23fb4c88, topology = 0x55ba23fb4c88}, frame_ending = 1}, datalen = -2, samples = 0, mallocd = 0, mallocd_hdr_len = 0,  
  offset = 0, src = 0x0, data = {ptr = 0x0, uint32 = 0, pad = "\000\000\000\000\000\000\000"}, delivery = {tv_sec = 0, tv_usec = 0}, frame_list = {next = 0x0}, flags = 0, ts = 0, len = 0,  
  seqno = 0, stream_num = 0}  
(gdb) print res  
$5 = 4  
(gdb) print sizeof(*vh)  
$6 = 6  

1/7/2026 8:00 PM — csptechnologies

Interesting... It shouldn't send video packets at all when sending a fax. That might also explain why I didn't get a fax back

1/7/2026 8:17 PM — InterLinked

Well, it shouldn't be crashing, but it is, so I don't know how useful it is discuss what should be happening.
I just added some code that I think should prevent the crash, so feel free to try to break it!

1/7/2026 8:42 PM — csptechnologies

I do not see the code you added, could you clarify where you attached the code that should prevent it from crashing?

1/7/2026 8:52 PM — InterLinked

Sorry, I should have been cleared - I made some code changes on the server.
If there aren't any crashes after this, I'll clean it up and share/submit the patch.

1/7/2026 9:19 PM — csptechnologies

I'll try placing a video call, and then a non video call.

1/7/2026 9:34 PM — csptechnologies

My server did not crash. I think it's fixed

1/7/2026 9:37 PM — InterLinked

The issue hasn't been triggered yet, so it's not conclusive just yet - and I'm watching for a crash on my end.

1/7/2026 9:42 PM — InterLinked

It just happened... I could see a bunch of this:

[2026-01-08 02:40:15.091] WARNING[3743858]: chan_iax2.c:10456 socket_process_helper: Packet Decrypt Failed!  
[2026-01-08 02:40:15.195] WARNING[3743850]: chan_iax2.c:10456 socket_process_helper: Packet Decrypt Failed!  
[2026-01-08 02:40:15.294] WARNING[3743855]: chan_iax2.c:11985 socket_process_helper: Datalen < 0?  
[2026-01-08 02:40:15.324] WARNING[3743851]: chan_iax2.c:11985 socket_process_helper: Datalen < 0?  
[2026-01-08 02:40:15.352] WARNING[3743857]: chan_iax2.c:10456 socket_process_helper: Packet Decrypt Failed!  
[2026-01-08 02:40:15.462] WARNING[3743852]: chan_iax2.c:10456 socket_process_helper: Packet Decrypt Failed!  
[2026-01-08 02:40:15.499] WARNING[3743850]: chan_iax2.c:11985 socket_process_helper: Datalen < 0?  
[2026-01-08 02:40:15.629] WARNING[3743858]: chan_iax2.c:10456 socket_process_helper: Packet Decrypt Failed!  
[2026-01-08 02:40:15.727] WARNING[3743850]: chan_iax2.c:11985 socket_process_helper: Datalen < 0?  
[2026-01-08 02:40:15.789] WARNING[3743851]: chan_iax2.c:10456 socket_process_helper: Packet Decrypt Failed!  
[2026-01-08 02:40:15.856] WARNING[3743859]: chan_iax2.c:10456 socket_process_helper: Packet Decrypt Failed!  
[2026-01-08 02:40:15.926] WARNING[3743859]: chan_iax2.c:10456 socket_process_helper: Packet Decrypt Failed!  

But the system seemed sane and didn't crash, so I'd say this is a success.
How'd your side fare?

1/7/2026 11:08 PM — csptechnologies

My system didn't seem to crash, My side appears sane as well.

You must be logged in to leave a comment.