[asterisk-bugs] [Asterisk 0016338]: [patch] chan_mobile doesn't hangup

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Dec 4 13:02:44 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16338 
====================================================================== 
Reported By:                pj
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   16338
Category:                   Addons/chan_mobile
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 231401 
Request Review:              
====================================================================== 
Date Submitted:             2009-11-27 17:50 CST
Last Modified:              2009-12-04 13:02 CST
====================================================================== 
Summary:                    [patch] chan_mobile doesn't hangup
Description: 
chan_mobile doesn't hangup call, when it receives audio from mobile device.
It can be progress audio message from gsm network (eg. ringback) or audio
from answered call. Phone is also disconnected from chan_mobile in this
case.

When call setup is terminated before any incomming audio is received from
gsm network by chan_mobile, mobile channel is successfully terminated and
phone is not disconnected from chan_mobile.


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

---------------------------------------------------------------------- 
 (0114781) pj (reporter) - 2009-12-04 13:02
 https://issues.asterisk.org/view.php?id=16338#c114781 
---------------------------------------------------------------------- 
after patching asterisk, it doesn't hangup nor reconnect to phone after
bluetooth disconnection (even I have interval=10 in chan_mobile.conf)

'mobile show device' still shows phone as connected and free
When I try to unload chan_mobile, asterisk locks...


[Dec  4 13:41:56] DEBUG[8849]: channel.c:2218 ast_hangup: Hanging up
channel 'Mobile/E61-861f'
[Dec  4 13:41:56] DEBUG[8849]: chan_mobile.c:1004 mbl_hangup: [E61]
hanging up device
]Dec  4 13:41:56] DEBUG[8849]: chan_mobile.c:1404 rfcomm_write_full:
rfcomm_write() (16) [AT+CHUP
[Dec  4 13:41:56] DEBUG[8833]: chan_mobile.c:1185 mbl_devicestate:
Checking device state for device E61
[Dec  4 13:41:57] DEBUG[8846]: chan_mobile.c:3585 do_monitor_phone: [E61]
error reading from device: Connection reset by peer (104)
[Dec  4 13:41:57] DEBUG[8846]: chan_mobile.c:3586 do_monitor_phone: [E61]
continuing

*CLI> mobile show devices
ID              Address           Group Adapter         Connected State
SMS
E61             00:12:D1:86:91:C5 0     blue            Yes       Free 
No


=== Thread ID: -1226896528 (monitor_sig_flags    started at [ 3711]
asterisk.c main())
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=0 (loader.c):
MUTEX 178 ast_module_unregister
&(&module_list)->lock 0x824b528 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x8115e01]
        /usr/sbin/asterisk() [0x810d7f0]
        /usr/sbin/asterisk(ast_module_unregister+0x39) [0x810e3ab]
        /usr/lib/asterisk/modules/pbx_ael.so(+0x10c6) [0xb6f670c6]
        /usr/lib/asterisk/modules/pbx_ael.so(+0x938) [0xb6f66938]
        /usr/lib/asterisk/modules/pbx_ael.so(+0x1120) [0xb6f67120]
        /lib/ld-linux.so.2(+0xe7de) [0xb782c7de]
        /lib/i686/libc.so.6(+0x2cb1f) [0xb76deb1f]
        /lib/i686/libc.so.6(+0x2cb8f) [0xb76deb8f]
        /usr/sbin/asterisk() [0x807a01d]
        /usr/sbin/asterisk() [0x807e262]
        /usr/sbin/asterisk() [0x818a255]
        /lib/i686/libpthread.so.0(+0x5ae5) [0xb751bae5]
        /lib/i686/libc.so.6(clone+0x5e) [0xb7789ece]
=== --- ---> Locked Here: loader.c line 487 (ast_unload_resource) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-04 13:02 pj             Note Added: 0114781                          
======================================================================




More information about the asterisk-bugs mailing list