mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 06:18:35 +00:00
Per-call logging, part two
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14510 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
c2d5f970bc
commit
5acb8ad899
22 files changed
+324
-324
No files matched your search
@@ -306,7 +306,7 @@ SWITCH_STANDARD_APP(easyroute_app_function)
|
||||
}
|
||||
}
|
||||
route_lookup(destnum, &results, noat, seperator);
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "EASY ROUTE DEST: [%s]\n", results.dialstring);
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "EASY ROUTE DEST: [%s]\n", results.dialstring);
|
||||
switch_channel_set_variable(channel, "easy_destnum", destnum);
|
||||
switch_channel_set_variable(channel, "easy_dialstring", results.dialstring);
|
||||
switch_channel_set_variable(channel, "easy_group", results.group);
|
||||
@@ -327,7 +327,7 @@ SWITCH_STANDARD_API(easyroute_function)
|
||||
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
||||
|
||||
if (session) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This function cannot be called from the dialplan.\n");
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "This function cannot be called from the dialplan.\n");
|
||||
status = SWITCH_STATUS_FALSE;
|
||||
goto done;
|
||||
}
|
||||
@@ -353,7 +353,7 @@ SWITCH_STANDARD_API(easyroute_function)
|
||||
}
|
||||
if (argc == 2) {
|
||||
if (!strcasecmp(argv[1], "noat")) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Entering noat.\n");
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Entering noat.\n");
|
||||
noat = 1;
|
||||
} else if (!strcasecmp(argv[1], "seperator")) {
|
||||
if (argc == 3){
|
||||
|
||||
Reference in new issue
Block a user