<param name="ext-redial" value="redial">
<param name="ext-meetme" value="conference">
-->
+
+ <!-- if you define an extension that runs 'pickup' application with 'key' as the data
+ this will cause the PickUp softkey to route to that extension. Combine with adding ",pickup/key"
+ to bridge call to implement PickUp groups -->
+
+ <!--
+ <param name="ext-pickup" value="pickup-key">
+ -->
<param name="foo" value="bar"/>
</params>
<skinny>
stream->write_function(stream, "Ext-Voicemail \t%s\n", profile->ext_voicemail);
stream->write_function(stream, "Ext-Redial \t%s\n", profile->ext_redial);
stream->write_function(stream, "Ext-MeetMe \t%s\n", profile->ext_meetme);
+ stream->write_function(stream, "Ext-PickUp \t%s\n", profile->ext_pickup);
stream->write_function(stream, "%s\n", line);
return SWITCH_STATUS_SUCCESS;
if (!profile->ext_meetme || strcmp(val, profile->ext_meetme)) {
profile->ext_meetme = switch_core_strdup(profile->pool, val);
}
+ } else if (!strcasecmp(var, "ext-pickup")) {
+ if (!profile->ext_pickup || strcmp(val, profile->ext_pickup)) {
+ profile->ext_pickup = switch_core_strdup(profile->pool, val);
+ }
} else {
return SWITCH_STATUS_FALSE;
}
skinny_profile_set(profile, "ext-meetme", "conference");
}
+ if (!profile->ext_pickup) {
+ skinny_profile_set(profile, "ext-pickup", "pickup");
+ }
+
if (profile->port == 0) {
profile->port = 2000;
}
char *ext_voicemail;
char *ext_redial;
char *ext_meetme;
+ char *ext_pickup;
/* db */
char *dbname;
char *odbc_dsn;
char *ext_voicemail;
char *ext_redial;
char *ext_meetme;
+ char *ext_pickup;
};
typedef struct listener listener_t;
switch_console_push_match(&my_matches, "ext-voicemail");
switch_console_push_match(&my_matches, "ext-redial");
switch_console_push_match(&my_matches, "ext-meetme");
+ switch_console_push_match(&my_matches, "ext-pickup");
if (my_matches) {
*matches = my_matches;
if (!listener->ext_meetme || strcmp(value,listener->ext_meetme)) {
listener->ext_meetme = switch_core_strdup(profile->pool, value);
}
+ } else if (!strcasecmp(name, "ext-pickup")) {
+ if (!listener->ext_pickup || strcmp(value,listener->ext_pickup)) {
+ listener->ext_pickup = switch_core_strdup(profile->pool, value);
+ }
}
}
}
skinny_session_process_dest(session, listener, line_instance,
empty_null2(listener->ext_meetme, listener->profile->ext_meetme), '\0', 0);
break;
+ case SOFTKEY_CALLPICKUP:
+ case SOFTKEY_GRPCALLPICKUP:
+ skinny_create_incoming_session(listener, &line_instance, &session);
+ skinny_session_process_dest(session, listener, line_instance,
+ empty_null2(listener->ext_pickup, listener->profile->ext_pickup), '\0', 0);
+ break;
default:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING,
"Unknown SoftKeyEvent type: %d.\n", request->data.soft_key_event.event);