mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-26 05:04:14 +00:00
presence tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9363 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
24d4819b50
commit
ca79084134
7 files changed
+38
-12
No files matched your search
@@ -1028,6 +1028,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_application(switch_c
|
||||
{
|
||||
const switch_application_interface_t *application_interface;
|
||||
char *expanded = NULL;
|
||||
const char *var;
|
||||
|
||||
if ((application_interface = switch_loadable_module_get_application_interface(app)) == 0) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Application %s\n", app);
|
||||
@@ -1058,7 +1059,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_application(switch_c
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s Expanded String %s(%s)\n", switch_channel_get_name(session->channel), app, expanded);
|
||||
}
|
||||
|
||||
if (switch_channel_get_variable(session->channel, "presence_id")) {
|
||||
if ((var = switch_channel_get_variable(session->channel, "verbose_presence")) && switch_true(var)) {
|
||||
char *myarg = NULL;
|
||||
if (expanded) {
|
||||
myarg = switch_mprintf("%s(%s)", app, expanded);
|
||||
@@ -1068,7 +1069,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_application(switch_c
|
||||
myarg = switch_mprintf("%s", app);
|
||||
}
|
||||
if (myarg) {
|
||||
switch_channel_presence(session->channel, "unknown", myarg);
|
||||
switch_channel_presence(session->channel, "unknown", myarg, NULL);
|
||||
switch_safe_free(myarg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user