t38 fax code
This commit is contained in:
parent
17755cbd57
commit
8aee9d87b7
|
@ -735,6 +735,8 @@ switch_status_t handle_term_status_cli_cmd(switch_stream_handle_t *stream, megac
|
||||||
|
|
||||||
if(MG_TERM_RTP == term->type){
|
if(MG_TERM_RTP == term->type){
|
||||||
stream->write_function(stream, "RTP Termination ID [%d] \n",term->u.rtp.term_id);
|
stream->write_function(stream, "RTP Termination ID [%d] \n",term->u.rtp.term_id);
|
||||||
|
stream->write_function(stream, "RTP MEDIA Type [%s] \n",
|
||||||
|
( MGM_IMAGE == term->u.rtp.media_type)?"MGM_IMAGE":"MGM_AUDIO");
|
||||||
stream->write_function(stream, "RTP Termination Local Address[%s] \n",
|
stream->write_function(stream, "RTP Termination Local Address[%s] \n",
|
||||||
(NULL != term->u.rtp.local_addr)?term->u.rtp.local_addr:"NULL");
|
(NULL != term->u.rtp.local_addr)?term->u.rtp.local_addr:"NULL");
|
||||||
stream->write_function(stream, "RTP Termination Local Port[%d] \n",term->u.rtp.local_port);
|
stream->write_function(stream, "RTP Termination Local Port[%d] \n",term->u.rtp.local_port);
|
||||||
|
|
|
@ -972,6 +972,7 @@ void mgco_handle_sdp_media_param(CmSdpMedPar *s, mg_termination_t* term, mgco_sd
|
||||||
{
|
{
|
||||||
CmSdpMedFmtRtpList* r = &a->u.rtp;
|
CmSdpMedFmtRtpList* r = &a->u.rtp;
|
||||||
int i = 0x00;
|
int i = 0x00;
|
||||||
|
term->u.rtp.media_type = MGM_AUDIO;
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, " CM_SDP_MEDIA_PROTO_RTP: \n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, " CM_SDP_MEDIA_PROTO_RTP: \n");
|
||||||
if(NOTPRSNT != r->num.pres){
|
if(NOTPRSNT != r->num.pres){
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
|
||||||
|
@ -1065,6 +1066,8 @@ void mgco_handle_sdp_media_param(CmSdpMedPar *s, mg_termination_t* term, mgco_sd
|
||||||
" CM_SDP_MEDIA_PROTO_UDPTL: no format defines..\n");
|
" CM_SDP_MEDIA_PROTO_UDPTL: no format defines..\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
term->u.rtp.media_type = MGM_IMAGE;
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
|
||||||
" CM_SDP_MEDIA_PROTO_UDPTL: formats[%d]\n", t->num.val);
|
" CM_SDP_MEDIA_PROTO_UDPTL: formats[%d]\n", t->num.val);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue