[asterisk-dev] app_queue member states

Norman Franke norman at myasd.com
Thu Mar 22 16:23:53 MST 2007


When using SIP extensions, the CLI command "queue show" always lists  
members as "not in use" even if they are in use.

My question is: shouldn't app_queue be calling ast_parse_device_state 
() instead of ast_device_state() so the state is set for SIP channels  
properly?

The changethread always gets the new state as being "1" for SIP  
interfaces, regardless of what the SIP client is doing.

I added this to changethread():

			sc->state = ast_parse_device_state(interface);
			if (sc->state == AST_DEVICE_UNKNOWN) sc->state = ast_device_state 
(interface);

before:

			if (cur->status != sc->state) {
				cur->status = sc->state;

Changing this seems to work better. When a SIP client dials, the  
status is correctly set to "in use" as one would expect.

-Norman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20070322/3d419f29/attachment.htm


More information about the asterisk-dev mailing list