]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: calling shared lines
authorMathieu Parent <math.parent@gmail.com>
Thu, 15 Apr 2010 09:07:45 +0000 (11:07 +0200)
committerMathieu Parent <math.parent@gmail.com>
Thu, 15 Apr 2010 09:07:45 +0000 (11:07 +0200)
src/mod/endpoints/mod_skinny/skinny_protocol.c

index 51cbe9b60924257967960a11b05d3500a3873e7e..4bbe77bf72948a8d988c32d2fd94c97225ffef6f 100644 (file)
@@ -584,8 +584,12 @@ int skinny_session_process_dest_callback(void *pArg, int argc, char **argv, char
                    && (line_instance == helper->line_instance)) {/* the calling line */
                /* nothing */
            } else {
-               /* TODO: capture and check what should happen here*/
-               skinny_line_set_state(listener, line_instance, helper->tech_pvt->call_id, SKINNY_IN_USE_REMOTELY);
+                       send_set_lamp(listener, SKINNY_BUTTON_LINE, line_instance, SKINNY_LAMP_ON);
+                       skinny_line_set_state(listener, line_instance, helper->tech_pvt->call_id, SKINNY_IN_USE_REMOTELY);
+                       send_select_soft_keys(listener, line_instance, helper->tech_pvt->call_id, 10, 0xffff);
+                       send_display_prompt_status(listener, 0, "\200\037",
+                               line_instance, tech_pvt->call_id);
+                       skinny_send_call_info(session, listener, line_instance);
            }
        }
        return 0;