[asterisk-bugs] [Asterisk 0011069]: Devstate does not seem to work with SIP phones

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Oct 23 16:00:11 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11069 
====================================================================== 
Reported By:                shmattie
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11069
Category:                   Functions/func_devstate
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-23-2007 15:22 CDT
Last Modified:              10-23-2007 16:00 CDT
====================================================================== 
Summary:                    Devstate does not seem to work with SIP phones
Description: 
I have been playing around with the patch for devstate in Asterisk 1.4 and
it works as expected for all my iax soft phones.  However it does not seem
to work  of my SIP soft and hard phones.  I tested it with Asterisk 1.4.13.
====================================================================== 

---------------------------------------------------------------------- 
 shmattie - 10-23-07 16:00  
---------------------------------------------------------------------- 
My goal is to know if a phone is currently in use.  I don't want to send
incoming calls to a phone that is already in use.  It was my understanding
that devstate would be able to tell me if a device is in use.  The function
works fine for IAX endpoints.  This is why I believed it was a bug in how
it handles SIP.

I have read about using limits on an entry in the sip.conf however I don't
have any on my IAX entries and it does work for them.

Here is an example from an endpoint of my sip.conf.
[200]
type=friend
host=dynamic
username=200
secret=1111
dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
mailbox=200 at default ; Mailbox for message waiting indicator
context=default
callerid="John Smith" <200>
nat=never 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-23-07 16:00  shmattie       Note Added: 0072433                          
======================================================================




More information about the asterisk-bugs mailing list