| 654 |
|
|
| 655 |
extern int option_verbose; |
extern int option_verbose; |
| 656 |
|
|
| 657 |
#define WOOMERA_VERSION "v1.50" |
#define WOOMERA_VERSION "v1.52" |
| 658 |
#ifndef WOOMERA_CHAN_NAME |
#ifndef WOOMERA_CHAN_NAME |
| 659 |
#define WOOMERA_CHAN_NAME "WOOMERA" |
#define WOOMERA_CHAN_NAME "WOOMERA" |
| 660 |
#endif |
#endif |
| 1577 |
gettimeofday(&ended, NULL); |
gettimeofday(&ended, NULL); |
| 1578 |
elapsed = (((ended.tv_sec * 1000) + ended.tv_usec / 1000) - ((started.tv_sec * 1000) + started.tv_usec / 1000)); |
elapsed = (((ended.tv_sec * 1000) + ended.tv_usec / 1000) - ((started.tv_sec * 1000) + started.tv_usec / 1000)); |
| 1579 |
if (timeout > 0 && (elapsed > timeout)) { |
if (timeout > 0 && (elapsed > timeout)) { |
|
ast_log(LOG_ERROR, "{%s} recv timeout on fd=%d\n", profile->name, fd); |
|
| 1580 |
return fail_timeout ? -1 : 0; |
return fail_timeout ? -1 : 0; |
| 1581 |
} |
} |
| 1582 |
|
|
| 2122 |
self->fds[0] = ast_rtp_fd(tech_pvt->rtp); |
self->fds[0] = ast_rtp_fd(tech_pvt->rtp); |
| 2123 |
ast_rtp_get_us(tech_pvt->rtp,&us); |
ast_rtp_get_us(tech_pvt->rtp,&us); |
| 2124 |
tech_pvt->port = ntohs(us.sin_port); |
tech_pvt->port = ntohs(us.sin_port); |
| 2125 |
ast_verbose("RTP-Audio port = %d\n", tech_pvt->port); |
ast_log(LOG_DEBUG, "Created rtp audio. port=%d\n", tech_pvt->port); |
| 2126 |
} else { |
} else { |
| 2127 |
ast_log(LOG_ERROR, "Failed to create RTP session!\n"); |
ast_log(LOG_ERROR, "Failed to create rtp audio\n"); |
| 2128 |
ast_set_flag(tech_pvt, TFLAG_ABORT); |
ast_set_flag(tech_pvt, TFLAG_ABORT); |
| 2129 |
return -1; |
return -1; |
| 2130 |
} |
} |
| 2134 |
self->fds[1] = ast_rtp_fd(tech_pvt->vrtp); |
self->fds[1] = ast_rtp_fd(tech_pvt->vrtp); |
| 2135 |
ast_rtp_get_us(tech_pvt->vrtp,&us); |
ast_rtp_get_us(tech_pvt->vrtp,&us); |
| 2136 |
tech_pvt->vport = ntohs(us.sin_port); |
tech_pvt->vport = ntohs(us.sin_port); |
| 2137 |
ast_verbose("RTP-Video port = %d\n", tech_pvt->vport); |
ast_verbose("Created rtp video. port=%d\n", tech_pvt->vport); |
| 2138 |
} else { |
} else { |
| 2139 |
ast_log(LOG_ERROR, "Failed to create Video RTP session!\n"); |
ast_log(LOG_ERROR, "Failed to create rtp video\n"); |
| 2140 |
ast_set_flag(tech_pvt, TFLAG_ABORT); |
ast_set_flag(tech_pvt, TFLAG_ABORT); |
| 2141 |
return -1; |
return -1; |
| 2142 |
} |
} |
| 2202 |
ast_dsp_set_call_progress_zone(tech_pvt->dsp, progzone); |
ast_dsp_set_call_progress_zone(tech_pvt->dsp, progzone); |
| 2203 |
if (i->busydetect && CANBUSYDETECT(i)) { |
if (i->busydetect && CANBUSYDETECT(i)) { |
| 2204 |
ast_dsp_set_busy_count(tech_pvt->dsp, i->busycount); |
ast_dsp_set_busy_count(tech_pvt->dsp, i->busycount); |
| 2205 |
ast_dsp_set_busy_pattern(tech_pvt->dsp, i->busy_tonelength, ->busy_quietlength); |
ast_dsp_set_busy_pattern(tech_pvt->dsp, i->busy_tonelength, i->busy_quietlength); |
| 2206 |
} |
} |
| 2207 |
#endif |
#endif |
| 2208 |
} |
} |
| 3823 |
|
|
| 3824 |
if ((res = woomera_message_parse(*new_socket, |
if ((res = woomera_message_parse(*new_socket, |
| 3825 |
&wmsg, |
&wmsg, |
| 3826 |
WOOMERA_HARD_TIMEOUT, |
-5000, /*WOOMERA_HARD_TIMEOUT,*/ |
| 3827 |
profile, |
profile, |
| 3828 |
NULL |
NULL |
| 3829 |
)) < 0) { |
)) < 0) { |