Thursday, September 27, 2007

[asterisk-users] SIP interface status

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


_______________________________________________

Sign up now for AstriCon 2007! September 25-28th.

http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users

No comments: