АФ
Size: a a a
АФ
АФ
AK
if (!strchr(host, '.') || switch_true(switch_event_get_header(var_event, "sip_gethostbyname")))
{
struct sockaddr_in sa;
struct hostent *he = gethostbyname(host);
char buf[50] = "", *tmp;
const char *ip;
if (he)
{
memcpy(&sa.sin_addr, he->h_addr, sizeof(struct in_addr));
ip = switch_inet_ntop(AF_INET, &sa.sin_addr, buf, sizeof(buf));
tmp = switch_string_replace(dest, host, ip);
//host = switch_core_session_strdup(nsession, ip);
//dest = switch_core_session_strdup(nsession, tmp);
switch_channel_set_variable_printf(nchannel, "sip_route_uri", "sip:%s", tmp);
free(tmp);
}
}
АФ
АХ
AK
АХ
AK
AK
ГБ
KV
ГБ
KV
transfer, а не bridge по нажатию.ГБ
ГБ
ГБ