Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 923566

Summary: net-misc/asterisk-16.30.1 - ?
Product: Gentoo Linux Reporter: Joseph <syscon780>
Component: Current packagesAssignee: Jaco Kroon <jaco>
Status: RESOLVED FIXED    
Severity: normal CC: jaco, proxy-maint, syscon780
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=921243
https://github.com/gentoo/gentoo/pull/35121
Whiteboard:
Package list:
Runtime testing required: ---

Description Joseph 2024-02-02 06:05:43 UTC
I think there is a bug in asterisk-16.30.1
But I don't know how to find it.

I have to Asterisk server one at home and one in remote location.
At home i have main server and backup server. Home servers use same version of Asterisk, same dial plan. (I even use "meld" to compare files in /etc/asterisk directory) on both home computers to make sure they are the same.

But one is working correctly the one one can not connect, her is the output of backup server that is working: 

Backup-Home-Asterisk to remote Asterisk (working OK)

== Using SIP RTP CoS mark 5
> 0x7fef4c023480 – Strict RTP learning after remote address set to: 10.0.0.110:6020
– Executing [877@internal:1] Dial(“SIP/55-00000000”, “IAX2/home_server:5xxxxxx7@192.168.143.1/877,30,rw”) in new stack
– Called IAX2/home_server:5xxxxxx7@192.168.143.1/877
– Call accepted by 192.168.143.1:4569 (format ulaw)
– Format for call is (ulaw)
– IAX2/192.168.143.1:4569-1894 is ringing
– IAX2/192.168.143.1:4569-1894 is ringing
– IAX2/192.168.143.1:4569-1894 answered SIP/55-00000000
– Channel IAX2/192.168.143.1:4569-1894 joined ‘simple_bridge’ basic-bridge <2e8c7579-0455-4847-a57a-1955e00a83d8>
– Channel SIP/55-00000000 joined ‘simple_bridge’ basic-bridge <2e8c7579-0455-4847-a57a-1955e00a83d8>
> 0x7fef4c023480 – Strict RTP switching to RTP target address 10.0.0.110:6020 as source
> 0x7fef4c023480 – Strict RTP learning complete - Locking on source address 10.0.0.110:6020
– Channel SIP/55-00000000 left ‘simple_bridge’ basic-bridge <2e8c7579-0455-4847-a57a-1955e00a83d8>
– Channel IAX2/192.168.143.1:4569-1894 left ‘simple_bridge’ basic-bridge <2e8c7579-0455-4847-a57a-1955e00a83d8>
== Spawn extension (internal, 877, 1) exited non-zero on ‘SIP/55-00000000’
– Hungup ‘IAX2/192.168.143.1:4569-1894’

Remote-Asterisk:

– Accepting AUTHENTICATED call from 192.168.143.7:
– > requested format = ulaw,
– > requested prefs = (ulaw|gsm|ilbc|speex|g729|g723|alaw),
– > actual format = ulaw,
– > host prefs = (ulaw|alaw),
– > priority = mine
– Executing [877@extensions:1] Set(“IAX2/home_server-2819”, “recordfilename=55-877-2024_02_01_2101.wav”) in new stack
– Executing [877@extensions:2] MixMonitor(“IAX2/home_server-2819”, “55-877-2024_02_01_2101.wav”) in new stack
– Executing [877@extensions:3] Dial(“IAX2/home_server-2819”, “SIP/877,25,trw”) in new stack
== Begin MixMonitor Recording IAX2/home_server-2819
== Using SIP RTP CoS mark 5
– Called SIP/877
– SIP/877-0000001f is ringing
– Nobody picked up in 25000 ms
– Executing [877@extensions:4] Playback(“IAX2/home_server-2819”, “beep”) in new stack
– <IAX2/home_server-2819> Playing ‘beep.gsm’ (language ‘en’)
– Executing [877@extensions:5] VoiceMail(“IAX2/home_server-2819”, “877”) in new stack
– <IAX2/home_server-2819> Playing ‘vm-intro.gsm’ (language ‘en’)
== Spawn extension (extensions, 877, 5) exited non-zero on ‘IAX2/home_server-2819’
– Hungup ‘IAX2/home_server-2819’
== MixMonitor close filestream (mixed)
== End MixMonitor Recording IAX2/home_server-2819

==========================================

Main-Home-Asterisk to remote Asterisk (NOT Working): 
The remote asterisk phone is rining but no voice is coming through. We can not hear each other, voice mail announcement is not play back to the caller.


== Using SIP RTP CoS mark 5
> 0x7fe0e00339a0 – Strict RTP learning after remote address set to: 10.0.0.110:6000
– Executing [877@internal:1] Dial(“SIP/55-00000005”, “IAX2/home_server:5xxxxxx7@192.168.143.1/877,30,rw”) in new stack
– Called IAX2/home_server:5xxxxxx7@192.168.143.1/877
– Call accepted by 192.168.143.1:4569 (format ulaw)
– Format for call is (ulaw)
– IAX2/192.168.143.1:4569-6413 is ringing
– IAX2/192.168.143.1:4569-6413 is ringing
– Nobody picked up in 30000 ms
– Hungup ‘IAX2/192.168.143.1:4569-6413’
– Executing [877@internal:2] Hangup(“SIP/55-00000005”, “”) in new stack
== Spawn extension (internal, 877, 2) exited non-zero on ‘SIP/55-00000005’

Remote-Asterisk:

– Accepting AUTHENTICATED call from 192.168.143.7:
– > requested format = ulaw,
– > requested prefs = (ulaw|gsm|ilbc|speex|g729|g723|alaw),
– > actual format = ulaw,
– > host prefs = (ulaw|alaw),
– > priority = mine
– Executing [877@extensions:1] Set(“IAX2/home_server-3394”, “recordfilename=55-877-2024_02_01_2048.wav”) in new stack
– Executing [877@extensions:2] MixMonitor(“IAX2/home_server-3394”, “55-877-2024_02_01_2048.wav”) in new stack
– Executing [877@extensions:3] Dial(“IAX2/home_server-3394”, “SIP/877,25,trw”) in new stack
== Begin MixMonitor Recording IAX2/home_server-3394
== Using SIP RTP CoS mark 5
– Called SIP/877
– SIP/877-0000001e is ringing
– Nobody picked up in 25000 ms
– Executing [877@extensions:4] Playback(“IAX2/home_server-3394”, “beep”) in new stack
– <IAX2/home_server-3394> Playing ‘beep.gsm’ (language ‘en’)
– Executing [877@extensions:5] VoiceMail(“IAX2/home_server-3394”, “877”) in new stack
– <IAX2/home_server-3394> Playing ‘vm-intro.gsm’ (language ‘en’)
== Spawn extension (extensions, 877, 5) exited non-zero on ‘IAX2/home_server-3394’
– Hungup ‘IAX2/home_server-3394’
== MixMonitor close filestream (mixed)
== End MixMonitor Recording IAX2/home_server-3394

Can anybody tell me what is the difference, why one is working/connecting i get a voice mail and if nobody answers it goes to voicemail ( joined ‘simple_bridge’ basic-bridge)

The other one it give me,
Nobody picked up in 30000 ms
– Hungup

As I've mentioned, both home asterisk server (main and backup) have identical dial plan.
Both asterisk are compiled with flags:
(alsa bluetooth caps iconv mysql ssl vorbis)

Reproducible: Always




emerge --info (of the main-home-asterisk box)

Portage 3.0.57 (python 3.11.6-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.37-r7, 6.1.19-gentoo x86_64)
=================================================================
System uname: Linux-6.1.19-gentoo-x86_64-AMD_Ryzen_7_3800XT_8-Core_Processor-with-glibc2.37
KiB Mem:    32783764 total,   4573872 free
KiB Swap:     524284 total,    519676 free
Timestamp of repository gentoo: Fri, 15 Dec 2023 20:00:01 +0000
Head commit of repository gentoo: dd0be959f7f2c03318eae741e0804699f1423359
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.6::gentoo, 3.12.1::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

brother-overlay
    location: /var/lib/layman/brother-overlay
    masters: gentoo
    priority: 50
    volatile: True

Local
    location: /usr/local/portage
    masters: gentoo
    priority: 99999999
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @FREE PUEL-11"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/spool/fax/etc /var/www/localhost/htdocs/phpmyadmin"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/fpm-php7.4/ext-active/ /etc/php/phpdbg-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /var/spool/fax/etc/xferfaxlog"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write=y --keep-going --with-bdeps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.osuosl.org/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j8 --load-average=8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acpi alsa amd64 apache2 bluetooth branding bzip2 cairo cdda cdr cgi cleartype cli corefonts crypt cups dbus dri dts dvd dvdr elogind encode exif fam flac foomaticdb fortran gdbm gif gimp gimpprint gpm gtk gui iconv icu ipv6 java jpeg kpathsea lcms libnotify libtirpc lock mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 qtk readline scanner sdl seccomp session sound spell split-usr ssl startup-notification svg test-rust tetex thunar tiff truetype type1 udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-CA" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="fujitsu epson2" VIDEO_CARDS="nvidia" VOICEMAIL_STORAGE="file" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Joseph 2024-02-03 07:30:11 UTC
SOLVED,
jitter butter needs to be disabled for IAX2 calls.
Comment 2 Jaco Kroon 2024-02-05 06:23:47 UTC
As per reference there is an actual bug here.  Busy with PR.  Required patch on referenced (but closed bug since that wasn't the issue at the time).
Comment 3 Larry the Git Cow gentoo-dev 2024-02-06 14:55:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28215aa1de35a627ab85c10443901893c5590e2f

commit 28215aa1de35a627ab85c10443901893c5590e2f
Author:     Jaco Kroon <jaco@uls.co.za>
AuthorDate: 2024-02-05 06:26:49 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-02-06 14:55:20 +0000

    net-misc/asterisk: 16.30.1-r1
    
    Include Fix I wrote that ended up only being included upstream on 18, 20
    and master into 16 here.  16 is security only, since this isn't a
    security issue it was originally not merged to 16 and doubt pushing for
    that now will be successful.
    
    Closes: https://bugs.gentoo.org/923566
    Signed-off-by: Jaco Kroon <jaco@uls.co.za>
    Closes: https://github.com/gentoo/gentoo/pull/35121
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-misc/asterisk/asterisk-16.30.1-r1.ebuild       | 365 +++++++++++++++++++++
 .../asterisk-16.30.1-r1-iax2_jitterbuffer.patch    |  65 ++++
 2 files changed, 430 insertions(+)