Hello Łukasz,

I tested your asterisk 1:13.1.0~dfsg-1.1ubuntu4.1 package from the
proposed repository.

This packaged fixed the bug for me.

TEST CASE for 16.04 SRU:
========================
1. use xenial
2. install asterisk
3. add SIP-clients to sip.conf and extensions.conf
4. dial h264 SIP client from asterisk console

Testing:
========
1. Check that system is up to date:
-----------------------------------
root@samson:~# apt-get update
Hit:1 http://de.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease  
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 102 kB in 0s (148 kB/s)                            
Reading package lists... Done
root@samson:~# apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@samson:~#

2. Check that buggy package is installed:
-----------------------------------------
root@samson:~# dpkg-query -l|grep asterisk
ii  asterisk                                    1:13.1.0~dfsg-1.1ubuntu4        
           amd64        Open Source Private Branch Exchange (PBX)
ii  asterisk-config                             1:13.1.0~dfsg-1.1ubuntu4        
           all          Configuration files for Asterisk
ii  asterisk-core-sounds-en-gsm                 1.4.22-1                        
           all          asterisk PBX sound files - en-us/gsm
ii  asterisk-modules                            1:13.1.0~dfsg-1.1ubuntu4        
           amd64        loadable modules for the Asterisk PBX
root@samson:~#

3. Test Case with buggy package:
--------------------------------
root@samson:~# asterisk -rvvv
Asterisk 13.1.0~dfsg-1.1ubuntu4, Copyright (C) 1999 - 2014, Digium, Inc. and 
others.
Created by Mark Spencer <marks...@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for 
details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.1.0~dfsg-1.1ubuntu4 currently running on samson (pid = 
7163)
samson*CLI> console dial waldorf@Phones
    -- Executing [waldorf@Phones:1] Dial("Console/default", "SIP/waldorf") in 
new stack
  == Using SIP VIDEO CoS mark 6
  == Using SIP RTP CoS mark 5
    -- Called SIP/waldorf
    -- SIP/waldorf-00000001 is ringing
samson*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
root@samson:~#

root@samson:~# ls -l /var/lib/asterisk/
insgesamt 32640
-rw-r--r-- 1 asterisk asterisk     3072 Apr  4 19:32 astdb.sqlite3
-rw------- 1 asterisk asterisk 98623488 Apr  4 19:36 core
drwxr-xr-x 2 asterisk asterisk     4096 Apr  5  2016 moh
drwxr-xr-x 3 asterisk asterisk     4096 Nov 16 10:15 sounds
-rw-r--r-- 1 asterisk asterisk     4096 Apr  4 19:48 sqlite.db
root@samson:~#

4.+5. Adding proposed repository:
---------------------------------
root@samson:~# tail -1 /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main 
multiverse universe
root@samson:~# apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease [253 kB]  
Hit:3 http://de.archive.ubuntu.com/ubuntu xenial InRelease                      
      
Hit:4 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease              
                                  
Hit:5 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease            
                                  
Get:6 http://archive.ubuntu.com/ubuntu xenial-proposed/restricted 
Translation-de [2752 B]
Get:7 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages [106 
kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-proposed/main i386 Packages [103 
kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-proposed/main Translation-en 
[39.3 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-proposed/main Translation-de 
[501 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-proposed/multiverse amd64 
Packages [2728 B]
Get:12 http://archive.ubuntu.com/ubuntu xenial-proposed/multiverse i386 
Packages [3056 B]
Get:13 http://archive.ubuntu.com/ubuntu xenial-proposed/multiverse 
Translation-en [1760 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial-proposed/multiverse 
Translation-de [94.1 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages 
[47.5 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-proposed/universe i386 Packages 
[45.5 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-proposed/universe Translation-en 
[20.8 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-proposed/universe Translation-de 
[1877 kB]
Fetched 3201 kB in 3s (966 kB/s)                                     
Reading package lists... Done
root@samson:~#

6. Updating buggy package to proposed package:
----------------------------------------------
root@samson:~# apt-get install asterisk
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following additional packages will be installed:
  asterisk-config asterisk-modules
Suggested packages:
  asterisk-doc asterisk-dev asterisk-ooh323 asterisk-dahdi asterisk-vpb
Recommended packages:
  sox asterisk-voicemail | asterisk-voicemail-storage asterisk-moh-opsound-gsm
The following packages will be upgraded:
  asterisk asterisk-config asterisk-modules
3 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
Need to get 3798 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 asterisk 
amd64 1:13.1.0~dfsg-1.1ubuntu4.1 [1341 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 
asterisk-modules amd64 1:13.1.0~dfsg-1.1ubuntu4.1 [2073 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 
asterisk-config all 1:13.1.0~dfsg-1.1ubuntu4.1 [385 kB]
Fetched 3798 kB in 3s (1145 kB/s)  
(Reading database ... 181899 files and directories currently installed.)
Preparing to unpack .../asterisk_1%3a13.1.0~dfsg-1.1ubuntu4.1_amd64.deb ...
Unpacking asterisk (1:13.1.0~dfsg-1.1ubuntu4.1) over (1:13.1.0~dfsg-1.1ubuntu4) 
...
Preparing to unpack .../asterisk-modules_1%3a13.1.0~dfsg-1.1ubuntu4.1_amd64.deb 
...
Unpacking asterisk-modules (1:13.1.0~dfsg-1.1ubuntu4.1) over 
(1:13.1.0~dfsg-1.1ubuntu4) ...
Preparing to unpack .../asterisk-config_1%3a13.1.0~dfsg-1.1ubuntu4.1_all.deb ...
Unpacking asterisk-config (1:13.1.0~dfsg-1.1ubuntu4.1) over 
(1:13.1.0~dfsg-1.1ubuntu4) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up asterisk-config (1:13.1.0~dfsg-1.1ubuntu4.1) ...
Setting up asterisk-modules (1:13.1.0~dfsg-1.1ubuntu4.1) ...
Setting up asterisk (1:13.1.0~dfsg-1.1ubuntu4.1) ...
root@samson:~#

7. Check that proposed package is installed:
--------------------------------------------
root@samson:~# dpkg-query -l|grep asterisk
ii  asterisk                                    1:13.1.0~dfsg-1.1ubuntu4.1      
           amd64        Open Source Private Branch Exchange (PBX)
ii  asterisk-config                             1:13.1.0~dfsg-1.1ubuntu4.1      
           all          Configuration files for Asterisk
ii  asterisk-core-sounds-en-gsm                 1.4.22-1                        
           all          asterisk PBX sound files - en-us/gsm
ii  asterisk-modules                            1:13.1.0~dfsg-1.1ubuntu4.1      
           amd64        loadable modules for the Asterisk PBX
root@samson:~#

8. Reboot
---------

9. Test Case with proposed package:
-----------------------------------
root@samson:~# asterisk -rvvv
Asterisk 13.1.0~dfsg-1.1ubuntu4.1, Copyright (C) 1999 - 2014, Digium, Inc. and 
others.
Created by Mark Spencer <marks...@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for 
details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.1.0~dfsg-1.1ubuntu4.1 currently running on samson (pid 
= 842)
samson*CLI> console dial waldorf@Phones
    -- Executing [waldorf@Phones:1] Dial("Console/default", "SIP/waldorf") in 
new stack
  == Using SIP VIDEO CoS mark 6
  == Using SIP RTP CoS mark 5
    -- Called SIP/waldorf
    -- SIP/waldorf-00000000 is ringing
    -- SIP/waldorf-00000000 answered Console/default
  --- <("<) --- Call from Console has been Answered --- (>")> ---
    -- Channel Console/default joined 'simple_bridge' basic-bridge 
<f93459de-1208-4510-bc71-2617a9fa8097>
[Apr  4 19:48:25] WARNING[2120][C-00000000]: chan_console.c:649 
console_indicate: Don't know how to display condition 26 on Console/default
    -- Channel SIP/waldorf-00000000 joined 'simple_bridge' basic-bridge 
<f93459de-1208-4510-bc71-2617a9fa8097>
[Apr  4 19:48:25] WARNING[2131][C-00000000]: channel.c:5070 ast_write: Codec 
mismatch on channel SIP/waldorf-00000000 setting write format to slin from 
slin16 native formats (h264|alaw)
samson*CLI> console hangup
    -- Channel Console/default left 'simple_bridge' basic-bridge 
<f93459de-1208-4510-bc71-2617a9fa8097>
  == Spawn extension (Phones, waldorf, 1) exited non-zero on 'Console/default'
  --- <("<) --- Hangup on Console --- (>")> ---
    -- Channel SIP/waldorf-00000000 left 'simple_bridge' basic-bridge 
<f93459de-1208-4510-bc71-2617a9fa8097>
samson*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
root@samson:~#


VERIFICATION DONE:
==================
- asterisk does not crash anymore dialing the h264 device


Best regards
Jörg

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1671767

Title:
  asterisk crashes dialing h264 video sip device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/asterisk/+bug/1671767/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to