[Home]

Summary:ASTERISK-06352: [branch] devicestate of a hinted SIP phone does not update on outbound calls if call-limit is specified.
Reporter:Chris Hozian (chozian)Labels:
Date Opened:2006-02-17 10:31:15.000-0600Date Closed:2006-05-18 10:03:47
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Subscriptions
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The devicestate does not correctly update itself under certain circumstances for hinted SIP phones which have a call-limit specified using the latest SVN Trunk.  I am able to correctly receive devicestate updates for a hinted SIP phone when making outbound calls only if there is no call-limit specified in my sip.conf file.  I do not receive changes to the devicestate for a hinted SIP phone that makes an outbound call if call-limit is specified in the sip.conf.  The devicestate of the hinted SIP phone continues to report the devicestate as "idle", even when the phone should obviously report as "inuse".  This makes no difference whether the call-limit is set to 1 or 3.  The devicestate information is updated properly on an inbound call using the same hinted SIP phone when call-limit is specified in the sip.conf file though.



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

Please let me know if you require any additional information or configuration files.  I can reproduce this problem.
Comments:By: paradise (paradise) 2006-02-17 22:36:02.000-0600

forget call-limit and try to use Groups.

By: Olle Johansson (oej) 2006-02-23 06:16:34.000-0600

I think this is due to the "friend" implementation. If you set call limit on a "type=friend" we have one call limit for a user and one for a peer object. For inbound calls, the user is getting the call, for outbound calls the peer is getting the call. The subscription part only catches the peer, if I remember correctly. Trying to fix this in the "peermatch" branch.

If you follow paradise's advice, the state indications will fail, since without a call-limit, we will not check the state of the object. However, if you want to limit the number of calls, it's good advice.

By: Olle Johansson (oej) 2006-03-02 02:07:49.000-0600

please test the "peermatch" branch and see if this sorts out your problem. Thank you.

By: Chris Hozian (chozian) 2006-03-02 09:18:14.000-0600

The SIP phone reported as inuse with one call instance and call-limit set to 2.  It reported as busy with one call instance and call-limit set to 1.  It appears to be working great.  You're awesome!

By: Olle Johansson (oej) 2006-03-02 11:40:21.000-0600

Thanks for testing!

By: Serge Vecher (serge-v) 2006-05-03 10:45:56

Since this tested ok, is it ready for merging ...?

By: Olle Johansson (oej) 2006-05-17 13:03:48

Let's move the discussion to ASTERISK-6437

By: Joshua C. Colp (jcolp) 2006-05-18 10:03:46

Closing out this bug because discussion has been moved to 6612, and we know what the problem is - but we can't/won't fix it right now.