[Freeswitch-trunk] [commit] r14018 - freeswitch/trunk/contrib/mod/endpoints/mod_khomp
FreeSWITCH SVN
raulfragoso at freeswitch.org
Sat Jun 27 21:02:04 PDT 2009
Author: raulfragoso
Date: Sat Jun 27 23:02:03 2009
New Revision: 14018
Log:
Set the channel name appropriately depending on the selected free channel
Modified:
freeswitch/trunk/contrib/mod/endpoints/mod_khomp/mod_khomp.cpp
Modified: freeswitch/trunk/contrib/mod/endpoints/mod_khomp/mod_khomp.cpp
==============================================================================
--- freeswitch/trunk/contrib/mod/endpoints/mod_khomp/mod_khomp.cpp (original)
+++ freeswitch/trunk/contrib/mod/endpoints/mod_khomp/mod_khomp.cpp Sat Jun 27 23:02:03 2009
@@ -181,6 +181,9 @@
switch_core_codec_destroy(&tech_pvt->_write_codec);
}
+ /* Make the channel available again */
+ tech_pvt->session(NULL);
+
try
{
Globals::_k3lapi.command(tech_pvt->_KDeviceId, tech_pvt->_KChannelId, CM_DISCONNECT, NULL);
@@ -413,7 +416,7 @@
return cause;
}
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Dialing to %u out from Board:%u, Channel:%u.\n",
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Dialing to %s out from Board:%u, Channel:%u.\n",
argv[2],
tech_pvt->_KDeviceId,
tech_pvt->_KChannelId);
@@ -429,7 +432,7 @@
channel = switch_core_session_get_channel(*new_session);
tech_init(tech_pvt, *new_session);
- snprintf(name, sizeof(name), "Khomp/%s", outbound_profile->destination_number);
+ snprintf(name, sizeof(name), "Khomp/%d/%d/%s", tech_pvt->_KDeviceId, tech_pvt->_KChannelId, argv[2]);
switch_channel_set_name(channel, name);
caller_profile = switch_caller_profile_clone(*new_session, outbound_profile);
More information about the Freeswitch-trunk
mailing list