提交 af37b907 authored 作者: Anthony Minessale's avatar Anthony Minessale

flip cid on pickup endpoint

上级 fbb99f60
...@@ -3667,6 +3667,8 @@ SWITCH_STANDARD_APP(pickup_function) ...@@ -3667,6 +3667,8 @@ SWITCH_STANDARD_APP(pickup_function)
caller_profile->callee_id_name = name; caller_profile->callee_id_name = name;
caller_profile->callee_id_number = num; caller_profile->callee_id_number = num;
switch_channel_flip_cid(channel);
if (switch_event_create(&event, SWITCH_EVENT_CALL_UPDATE) == SWITCH_STATUS_SUCCESS) { if (switch_event_create(&event, SWITCH_EVENT_CALL_UPDATE) == SWITCH_STATUS_SUCCESS) {
const char *uuid = switch_channel_get_partner_uuid(channel); const char *uuid = switch_channel_get_partner_uuid(channel);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Direction", "RECV"); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Direction", "RECV");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论