[Asterisk-Users] Re: chan_sccp / 7960: "End call" softkey: "That key is not active here"

Sergio mlists at c-net.it
Sat May 28 14:32:40 MST 2005


> pressing the "End call" softkey while in call produces the message 
> "That key is not active here". Do I have to configure something 
> special for that to work or is it just not yet implemented?

you can quick apply this patch
Index: sccp_device.c
===================================================================
RCS file: /cvsroot/chan-sccp/chan_sccp/sccp_device.c,v
retrieving revision 1.23
diff -u -r1.23 sccp_device.c
--- sccp_device.c       28 May 2005 11:39:07 -0000      1.23
+++ sccp_device.c       28 May 2005 21:30:10 -0000
@@ -123,14 +123,14 @@

    if (c) {
      r->msg.SelectSoftKeysMessage.lel_lineInstance  = 
htolel(c->line->instance);
-    r->msg.SelectSoftKeysMessage.lel_callReference = htolel(0);
+    r->msg.SelectSoftKeysMessage.lel_callReference = htolel(c->callid);
    }

    r->msg.SelectSoftKeysMessage.lel_softKeySetIndex = htolel(opt);

    // XXX:T: We might not want all buttons to be active?
-  r->msg.SelectSoftKeysMessage.les_validKeyMask1 = htoles(127);
-  r->msg.SelectSoftKeysMessage.les_validKeyMask2 = htoles(127);
+  r->msg.SelectSoftKeysMessage.les_validKeyMask1 = htoles(65535);
+  r->msg.SelectSoftKeysMessage.les_validKeyMask2 = htoles(65535);

    if ((opt == KEYMODE_ONHOOK) && (strlen(d->lastNumber) == 0))
          r->msg.SelectSoftKeysMessage.les_validKeyMask1 &= htoles(~(1<<0));







More information about the asterisk-users mailing list