[Home]

Summary:ASTERISK-14255: [patch] headset will not stop ringing
Reporter:ablackthorn (ablackthorn)Labels:
Date Opened:2009-06-02 19:38:32Date Closed:2009-06-05 17:13:02
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Addons/chan_mobile
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) ring-fix1.diff
( 1) ring-fix2.diff
( 2) ring-fix3.diff
Description:After sending a call to Mobile/headset, the headset will continuously ring after the call has been answered.  Once the call has been answered audio from asterisk->headset can only be heard between rings, while headset->asterisk audio is uninterrupted.

Ringing continues even after the call has been hungup.  Attempting to answer gives:

 == Starting Mobile/jabra-3e64 at from-sip,s,1 failed so falling back to exten 's'
 == Starting Mobile/jabra-3e64 at from-sip,s,1 still failed so falling back to context 'default'
[Jun  3 04:34:03] WARNING[18234]: pbx.c:3831 __ast_pbx_run: Channel 'Mobile/jabra-3e64' sent into invalid extension 's' in context 'default', but no invalid handler
[Jun  3 04:34:03] WARNING[18234]: cdr.c:870 ast_cdr_end: CDR on channel 'Mobile/jabra-3e64' has no answer time but is 'ANSWERED'

Tested with multiple headsets (Jabra & Alcatel).

****** ADDITIONAL INFORMATION ******

[Jun  3 04:33:23] DEBUG[18212]: chan_mobile.c:903 mbl_call: Calling jabra on Mobile/jabra-ebcf
[Jun  3 04:33:23] DEBUG[18212]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
RING
]
   -- Called jabra
[Jun  3 04:33:23] DEBUG[18212]: channel.c:3475 set_format: Set channel Mobile/jabra-ebcf to read format ulaw
[Jun  3 04:33:23] DEBUG[18212]: channel.c:3475 set_format: Set channel SIP/998-b7d675a8 to read format slin
[Jun  3 04:33:29] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
RING
]
[Jun  3 04:33:30] DEBUG[18210]: chan_mobile.c:3603 do_monitor_headset: [jabra] AT+CKPD=200
[Jun  3 04:33:30] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
OK
]
[Jun  3 04:33:31] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
+VGS=13
]
   -- Mobile/jabra-ebcf answered SIP/998-b7d675a8
[Jun  3 04:33:31] DEBUG[18175]: chan_mobile.c:1127 mbl_devicestate: Checking device state for device jabra
[Jun  3 04:33:31] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
+VGM=13
]
[Jun  3 04:33:31] DEBUG[18212]: chan_sip.c:5343 sip_answer: SIP answering channel: SIP/998-b7d675a8
[Jun  3 04:33:31] DEBUG[18212]: chan_sip.c:9009 transmit_response_with_sdp: Setting framing from config on incoming call
[Jun  3 04:33:31] DEBUG[18212]: chan_sip.c:8677 add_sdp: ** Our capability: 0xc (ulaw|alaw) Video flag: True Text flag: True
[Jun  3 04:33:31] DEBUG[18212]: chan_sip.c:8678 add_sdp: ** Our prefcodec: 0x0 (nothing)
[Jun  3 04:33:31] DEBUG[18212]: chan_sip.c:2870 __sip_xmit: Trying to put 'SIP/2.0 20' onto UDP socket destined for 192.168.0.10:51338
[Jun  3 04:33:31] DEBUG[18212]: rtp.c:3723 ast_rtp_write: Ooh, format changed from unknown to ulaw
[Jun  3 04:33:31] DEBUG[18212]: rtp.c:3739 ast_rtp_write: Created smoother: format: 4 ms: 20 len: 160
[Jun  3 04:33:31] DEBUG[18212]: rtp.c:1187 ast_rtcp_read: Got RTCP report of 132 bytes
[Jun  3 04:33:31] DEBUG[18212]: chan_mobile.c:1206 do_alignment_detection: Alignment Detection result is [0 0 0 0]
[Jun  3 04:33:31] DEBUG[18200]: chan_sip.c:3367 __sip_ack: Stopping retransmission on 'NjUxMzRjNjE5MDljMjk0OTQwMjZkOTk0ODU0YTE1ZDE.' of Response 2: Match Found
[Jun  3 04:33:34] DEBUG[18212]: rtp.c:1187 ast_rtcp_read: Got RTCP report of 176 bytes
[Jun  3 04:33:35] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
RING
]
[Jun  3 04:33:37] DEBUG[18212]: rtp.c:1187 ast_rtcp_read: Got RTCP report of 44 bytes
[Jun  3 04:33:37] DEBUG[18212]: rtp.c:1404 ast_rtcp_read: Unknown RTCP packet (pt=207) received from 192.168.0.10:9563
[Jun  3 04:33:37] DEBUG[18212]: rtp.c:1187 ast_rtcp_read: Got RTCP report of 176 bytes
[Jun  3 04:33:40] DEBUG[18212]: rtp.c:1187 ast_rtcp_read: Got RTCP report of 176 bytes
[Jun  3 04:33:41] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
RING
]
[Jun  3 04:33:43] DEBUG[18212]: rtp.c:1187 ast_rtcp_read: Got RTCP report of 44 bytes
[Jun  3 04:33:43] DEBUG[18212]: rtp.c:1404 ast_rtcp_read: Unknown RTCP packet (pt=207) received from 192.168.0.10:9563
[Jun  3 04:33:43] DEBUG[18212]: rtp.c:1187 ast_rtcp_read: Got RTCP report of 176 bytes
[Jun  3 04:33:44] DEBUG[18212]: rtp.c:1187 ast_rtcp_read: Got RTCP report of 160 bytes
[Jun  3 04:33:44] DEBUG[18200]: chan_sip.c:2870 __sip_xmit: Trying to put 'SIP/2.0 20' onto UDP socket destined for 192.168.0.10:51338
[Jun  3 04:33:44] DEBUG[18212]: channel.c:4496 ast_generic_bridge: Didn't get a frame from channel: SIP/998-b7d675a8
[Jun  3 04:33:44] DEBUG[18212]: channel.c:4920 ast_channel_bridge: Bridge stops bridging channels SIP/998-b7d675a8 and Mobile/jabra-ebcf
[Jun  3 04:33:44] DEBUG[18212]: channel.c:1644 ast_hangup: Hanging up channel 'Mobile/jabra-ebcf'
[Jun  3 04:33:44] DEBUG[18212]: chan_mobile.c:947 mbl_hangup: [jabra] hanging up device
[Jun  3 04:33:44] DEBUG[18175]: chan_mobile.c:1127 mbl_devicestate: Checking device state for device jabra
[Jun  3 04:33:44] DEBUG[18212]: rtp.c:2055 ast_rtp_early_bridge: Channel '<unspecified>' has no RTP, not doing anything
[Jun  3 04:33:44] DEBUG[18212]: app_dial.c:2024 dial_exec_full: Exiting with DIALSTATUS=ANSWER.
[Jun  3 04:33:44] DEBUG[18175]: chan_mobile.c:1127 mbl_devicestate: Checking device state for device jabra
[Jun  3 04:33:44] DEBUG[18212]: pbx.c:3779 __ast_pbx_run: Spawn extension (from-sip,240,2) exited non-zero on 'SIP/998-b7d675a8'
 == Spawn extension (from-sip, 240, 2) exited non-zero on 'SIP/998-b7d675a8'
[Jun  3 04:33:44] DEBUG[18212]: channel.c:1549 ast_softhangup_nolock: Soft-Hanging up channel 'SIP/998-b7d675a8'
[Jun  3 04:33:44] DEBUG[18212]: channel.c:1644 ast_hangup: Hanging up channel 'SIP/998-b7d675a8'
[Jun  3 04:33:44] DEBUG[18212]: chan_sip.c:5172 sip_hangup: Hangup call SIP/998-b7d675a8, SIP callid NjUxMzRjNjE5MDljMjk0OTQwMjZkOTk0ODU0YTE1ZDE.
[Jun  3 04:33:47] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
RING
]
[Jun  3 04:33:53] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
RING
]
[Jun  3 04:33:59] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
RING
]
[Jun  3 04:34:02] DEBUG[18210]: chan_mobile.c:3603 do_monitor_headset: [jabra] AT+CKPD=200
[Jun  3 04:34:02] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
OK
]
 == Starting Mobile/jabra-3e64 at from-sip,s,1 failed so falling back to exten 's'
 == Starting Mobile/jabra-3e64 at from-sip,s,1 still failed so falling back to context 'default'
[Jun  3 04:34:03] WARNING[18234]: pbx.c:3831 __ast_pbx_run: Channel 'Mobile/jabra-3e64' sent into invalid extension 's' in context 'default', but no invalid handler
[Jun  3 04:34:03] DEBUG[18234]: channel.c:1549 ast_softhangup_nolock: Soft-Hanging up channel 'Mobile/jabra-3e64'
[Jun  3 04:34:03] DEBUG[18234]: channel.c:1644 ast_hangup: Hanging up channel 'Mobile/jabra-3e64'
[Jun  3 04:34:03] DEBUG[18234]: chan_mobile.c:947 mbl_hangup: [jabra] hanging up device
[Jun  3 04:34:03] WARNING[18234]: cdr.c:870 ast_cdr_end: CDR on channel 'Mobile/jabra-3e64' has no answer time but is 'ANSWERED'
[Jun  3 04:34:03] DEBUG[18175]: chan_mobile.c:1127 mbl_devicestate: Checking device state for device jabra
[Jun  3 04:34:03] DEBUG[18175]: chan_mobile.c:1127 mbl_devicestate: Checking device state for device jabra
[Jun  3 04:34:05] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
RING
]
[Jun  3 04:34:11] DEBUG[18210]: chan_mobile.c:1346 rfcomm_write_full: rfcomm_write() (19) [
RING
]
Comments:By: Matthew Nicholson (mnicholson) 2009-06-04 16:19:29

Try the patch I just uploaded.  It should fix the continuous ringing issue.  I am not yet sure about the audio issue.

By: ablackthorn (ablackthorn) 2009-06-05 12:36:08

That patch fixes both ringing and audio issues when the call is answered.  However, if the caller hangs up before the headset answers, the headset still rings indefinitely.

By: ablackthorn (ablackthorn) 2009-06-05 14:44:45

The patch I just uploaded seems to fix the problem when the caller hangs up as well.

By: Matthew Nicholson (mnicholson) 2009-06-05 14:55:37

While your license is pending, I crafted a patch of my own.

By: ablackthorn (ablackthorn) 2009-06-05 15:09:15

Your patch is the same as mine.  I can confirm that it works.

By: Digium Subversion (svnbot) 2009-06-05 16:38:51

Repository: asterisk-addons
Revision: 947

U   trunk/channels/chan_mobile.c

------------------------------------------------------------------------
r947 | mnicholson | 2009-06-05 16:38:50 -0500 (Fri, 05 Jun 2009) | 8 lines

Properly set the needring flag to stop ringing on headsets.

(closes issue ASTERISK-14255)
Reported by: ablackthorn
Patches:
     ring-fix3.diff uploaded by mnicholson (license 96)
Tested by: ablackthorn

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk-addons?view=rev&revision=947

By: Digium Subversion (svnbot) 2009-06-05 17:13:02

Repository: asterisk-addons
Revision: 948

_U  branches/1.6.2/
U   branches/1.6.2/channels/chan_mobile.c

------------------------------------------------------------------------
r948 | mnicholson | 2009-06-05 17:13:02 -0500 (Fri, 05 Jun 2009) | 15 lines

Merged revisions 947 via svnmerge from
https://origsvn.digium.com/svn/asterisk-addons/trunk

........
 r947 | mnicholson | 2009-06-05 16:38:50 -0500 (Fri, 05 Jun 2009) | 8 lines
 
 Properly set the needring flag to stop ringing on headsets.
 
 (closes issue ASTERISK-14255)
 Reported by: ablackthorn
 Patches:
       ring-fix3.diff uploaded by mnicholson (license 96)
 Tested by: ablackthorn
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk-addons?view=rev&revision=948