提交 7426594d authored 作者: Leon de Rooij's avatar Leon de Rooij

pcli header created from proper variables

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/contrib@15451 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 cde03065
...@@ -233,7 +233,7 @@ static void print_frame_stats(switch_frame_t *frame) ...@@ -233,7 +233,7 @@ static void print_frame_stats(switch_frame_t *frame)
static switch_bool_t pcli_callback(switch_media_bug_t *bug, void *user_data, switch_abc_type_t type) static switch_bool_t pcli_callback(switch_media_bug_t *bug, void *user_data, switch_abc_type_t type)
{ {
//pcli_session_helper_t *helper = (pcli_session_helper_t *) user_data; pcli_session_helper_t *helper = (pcli_session_helper_t *) user_data;
switch (type) { switch (type) {
case SWITCH_ABC_TYPE_INIT: case SWITCH_ABC_TYPE_INIT:
...@@ -260,7 +260,7 @@ static switch_bool_t pcli_callback(switch_media_bug_t *bug, void *user_data, swi ...@@ -260,7 +260,7 @@ static switch_bool_t pcli_callback(switch_media_bug_t *bug, void *user_data, swi
gen_rtp_header(rtp_header, frame->payload, frame->seq, frame->timestamp, frame->ssrc); gen_rtp_header(rtp_header, frame->payload, frame->seq, frame->timestamp, frame->ssrc);
gen_udp_header(udp_header, RTP_HEADER_LEN + frame->datalen); gen_udp_header(udp_header, RTP_HEADER_LEN + frame->datalen);
gen_ip_header(ip_header, UDP_HEADER_LEN + RTP_HEADER_LEN + frame->datalen); gen_ip_header(ip_header, UDP_HEADER_LEN + RTP_HEADER_LEN + frame->datalen);
gen_pcli_header(pcli_header, PCLI_MEDIA_DIRECTION_FROM_TARGET, 1, 1, 1); // 1,1,1 = instance_id, switch_id, ini_id gen_pcli_header(pcli_header, PCLI_MEDIA_DIRECTION_FROM_TARGET, helper->instance_id, pcli_globals.switch_id, helper->ini_id);
memcpy(in_packet_pointer, pcli_header, sizeof(pcli_header)); memcpy(in_packet_pointer, pcli_header, sizeof(pcli_header));
in_packet_pointer += PCLI_HEADER_LEN; in_packet_pointer += PCLI_HEADER_LEN;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论