[asterisk-users] SIP interface status

James Fromm fromm at omnis.com
Thu Sep 27 12:57:52 CDT 2007


I've discovered that the status of a SIP device doesn't get passed as 
in-use when on an outbound call.  Viewing the debug log the status is 
always passed as 'not in use' when on the outbound call.  The 
sip_devicestate function doesn't appear to check the user object at all.

The devices are configured as friends in sip.conf.  Being both a peer 
and a user, the device is found as a peer in the sip_devicestate 
function but then not found in use because only the peer object is 
checked.  If the device is configured as a user in sip.conf, then the 
status is returned as INVALID because in the sip_devicestate function it 
doesn't find a peer to check.

Looking at the SVN repository, the function appears to have never 
checked the user object.  Shouldn't the device be defined as in-use even 
when on an outbound call?  Does this function need to be rewritten? 
Anyone have a solution?

Thanks,
James




More information about the asterisk-users mailing list