[Home]

Summary:ASTERISK-15036: [patch] Service indicator not managed
Reporter:Nicola Turato (nikkk)Labels:
Date Opened:2009-10-26 03:22:22Date Closed:2009-12-02 15:20:40.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Addons/chan_mobile
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) service-indicator1.diff
( 1) service-indicator2.diff
Description:Cellphone is always "free" also when a +CIEV states that there is "No service".

[Oct 26 08:44:22] DEBUG[10154]: chan_mobile.c:3451 do_monitor_phone: [OT-S320-1] +CIND: ("service",(0,1)),("call",(0,1)),("callsetup",(0,3)),("callheld",(0,2)),("battchg",(0,5)),("signal",(0,5)),("roam",(0,1))

...

[Oct 26 08:50:27] DEBUG[10154]: chan_mobile.c:3451 do_monitor_phone: [OT-S320-1] +CIEV:1,0


localhost*CLI> mobile show devices
ID              Address           Group Adapter         Connected State SMS
OT-S320-1       00:16:98:ED:60:CA 1     hci0            Yes       Free  No
Comments:By: Matthew Nicholson (mnicholson) 2009-10-26 14:55:53

A patch to improve this behavior would be welcome.

By: Matthew Nicholson (mnicholson) 2009-11-24 16:26:07.000-0600

Please test with the attached patch.  It should apply to asterisk trunk, and possibly addons 1.6.2.  It will not work with any versions older than that.

By: Nicola Turato (nikkk) 2009-11-30 04:02:56.000-0600

Ok, the patch is working fine.
I suggest a little modification: "No Service" cannot be seen correctly with "mobile show devices" command, please change it with "NoSvc".
Thank you very much.

By: Matthew Nicholson (mnicholson) 2009-12-01 15:52:28.000-0600

Try the patch I just uploaded.  It should resolve the issue.

By: Nicola Turato (nikkk) 2009-12-02 04:59:50.000-0600

Ok now it is visible. Thanks

By: Digium Subversion (svnbot) 2009-12-02 15:20:38.000-0600

Repository: asterisk
Revision: 232544

U   trunk/addons/chan_mobile.c

------------------------------------------------------------------------
r232544 | mnicholson | 2009-12-02 15:20:38 -0600 (Wed, 02 Dec 2009) | 8 lines

Do something with the service indicator so that asterisk does not attempt to use a chan_mobile endpoint that does not have service.

(closes issue ASTERISK-15036)
Reported by: nikkk
Patches:
?\194?\160?\194?\160?\194?\160?\194?\160?\194?\160 service-indicator2.diff uploaded by mnicholson (license 96)
Tested by: nikkk

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

http://svn.digium.com/view/asterisk?view=rev&revision=232544