if (rc_avpair_add(rad_config, &send, PW_FS_RESPONSE_CODE,
&response_code, -1, PW_FS_PEC) == NULL)
{
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session),
SWITCH_LOG_ERROR,
"failed adding Freeswitch-Response-code: %u\n",
response_code);
rc_destroy(rad_config);
goto end;
}
在上面的代码response_code
中是整数,并且该函数只有指针除外,或者我们可以说变量的地址。但我想传递 response_code 的 int 值说 25 而不是它的地址。我怎样才能做到这一点..????