[asterisk-dev] hint status unavailable
Stefan Schmidt
sst at sil.at
Wed Mar 19 10:59:16 CDT 2008
hello,
i am trying to set up a asterisk server (version 1.2.12.1 by now) with
realtime configuration but the user shouldnt register directly to the
server, instead i have set up a ser registration proxy. Everything works
fine so far, but i can´t use the hint feature. Its possible to subscribe
to a given hint, but the status is allways unavailable and also i dont
get a notify.
i´ve tried to deactive the state of a hint by changing the following
lines in channels/chan_sip.c source file.
/* Check which device/devices we are watching and if they are
registered */
if (ast_get_hint(hint, sizeof(hint), NULL, 0, NULL, p->context,
p->exten)) {
/* If they are not registered, we will override
notification and show no availability */
if (ast_device_state(hint) == AST_DEVICE_UNAVAILABLE) {
local_state = NOTIFY_CLOSED;
pidfstate = "away";
pidfnote = "Not online";
}
}
but this hasnt worked. Could someone help me finding a solution for
this problem? I want to get notifies for hints where the user isnt
registered on the asterisk itself.
Thanks
best regards
Steve Smith
More information about the asterisk-dev
mailing list