提交 72b4603f authored 作者: Brian West's avatar Brian West

more tweaks

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9928 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 afb387c1
...@@ -779,7 +779,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi ...@@ -779,7 +779,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
if (outbound_profile) { if (outbound_profile) {
char name[128]; char name[128];
const char *id = !switch_strlen_zero(outbound_profile->caller_id_number) ? outbound_profile->caller_id_number : "na"; const char *id = !switch_strlen_zero(outbound_profile->caller_id_number) ? outbound_profile->caller_id_number : "na";
snprintf(name, sizeof(name), "Alsa/%s", id); snprintf(name, sizeof(name), "alsa/%s", id);
switch_channel_set_name(channel, name); switch_channel_set_name(channel, name);
...@@ -1461,7 +1461,7 @@ static switch_status_t place_call(char **argv, int argc, switch_stream_handle_t ...@@ -1461,7 +1461,7 @@ static switch_status_t place_call(char **argv, int argc, switch_stream_handle_t
NULL, NULL,
dialplan, cid_name, cid_num, ip, NULL, NULL, NULL, (char *) modname, NULL, dest)) != 0) { dialplan, cid_name, cid_num, ip, NULL, NULL, NULL, (char *) modname, NULL, dest)) != 0) {
char name[128]; char name[128];
snprintf(name, sizeof(name), "Alsa/%s", tech_pvt->caller_profile->destination_number ? tech_pvt->caller_profile->destination_number : modname); snprintf(name, sizeof(name), "alsa/%s", tech_pvt->caller_profile->destination_number ? tech_pvt->caller_profile->destination_number : modname);
switch_channel_set_name(channel, name); switch_channel_set_name(channel, name);
switch_channel_set_caller_profile(channel, tech_pvt->caller_profile); switch_channel_set_caller_profile(channel, tech_pvt->caller_profile);
......
...@@ -673,7 +673,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi ...@@ -673,7 +673,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
if (outbound_profile) { if (outbound_profile) {
char name[128]; char name[128];
const char *id = !switch_strlen_zero(outbound_profile->caller_id_number) ? outbound_profile->caller_id_number : "na"; const char *id = !switch_strlen_zero(outbound_profile->caller_id_number) ? outbound_profile->caller_id_number : "na";
switch_snprintf(name, sizeof(name), "PortAudio/%s", id); switch_snprintf(name, sizeof(name), "portaudio/%s", id);
switch_channel_set_name(channel, name); switch_channel_set_name(channel, name);
...@@ -1543,7 +1543,7 @@ static switch_status_t place_call(char **argv, int argc, switch_stream_handle_t ...@@ -1543,7 +1543,7 @@ static switch_status_t place_call(char **argv, int argc, switch_stream_handle_t
if ((tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session), if ((tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session),
NULL, dialplan, cid_name, cid_num, ip, NULL, NULL, NULL, modname, NULL, dest)) != 0) { NULL, dialplan, cid_name, cid_num, ip, NULL, NULL, NULL, modname, NULL, dest)) != 0) {
char name[128]; char name[128];
switch_snprintf(name, sizeof(name), "PortAudio/%s", switch_snprintf(name, sizeof(name), "portaudio/%s",
tech_pvt->caller_profile->destination_number ? tech_pvt->caller_profile->destination_number : modname); tech_pvt->caller_profile->destination_number ? tech_pvt->caller_profile->destination_number : modname);
switch_channel_set_name(channel, name); switch_channel_set_name(channel, name);
......
...@@ -427,7 +427,7 @@ static switch_call_cause_t woomera_outgoing_channel(switch_core_session_t *sessi ...@@ -427,7 +427,7 @@ static switch_call_cause_t woomera_outgoing_channel(switch_core_session_t *sessi
char name[128]; char name[128];
switch_caller_profile_t *caller_profile; switch_caller_profile_t *caller_profile;
switch_snprintf(name, sizeof(name), "Woomera/%s-%04x", outbound_profile->destination_number, rand() & 0xffff); switch_snprintf(name, sizeof(name), "woomera/%s-%04x", outbound_profile->destination_number, rand() & 0xffff);
switch_channel_set_name(channel, name); switch_channel_set_name(channel, name);
caller_profile = switch_caller_profile_clone(*new_session, outbound_profile); caller_profile = switch_caller_profile_clone(*new_session, outbound_profile);
...@@ -978,7 +978,7 @@ static void *woomera_channel_thread_run(switch_thread_t *thread, void *obj) ...@@ -978,7 +978,7 @@ static void *woomera_channel_thread_run(switch_thread_t *thread, void *obj)
tech_pvt->profile->dialplan, tech_pvt->profile->dialplan,
cid_name, cid_num, ip, NULL, NULL, NULL, modname, NULL, exten)) != 0) { cid_name, cid_num, ip, NULL, NULL, NULL, modname, NULL, exten)) != 0) {
char name[128]; char name[128];
switch_snprintf(name, sizeof(name), "Woomera/%s-%04x", tech_pvt->caller_profile->destination_number, rand() & 0xffff); switch_snprintf(name, sizeof(name), "woomera/%s-%04x", tech_pvt->caller_profile->destination_number, rand() & 0xffff);
switch_channel_set_name(channel, name); switch_channel_set_name(channel, name);
switch_channel_set_caller_profile(channel, tech_pvt->caller_profile); switch_channel_set_caller_profile(channel, tech_pvt->caller_profile);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论