config_site.h
#define PJMEDIA_HAS_VIDEO 1
pjsua_config_default(&app_config.cfg);
app_config.cfg.cb.on_incoming_call = &on_incoming_call;
app_config.cfg.cb.on_call_media_state = &on_call_media_state;
app_config.cfg.cb.on_call_state = &on_call_state;
app_config.cfg.cb.on_dtmf_digit = &call_on_dtmf_callback;
app_config.cfg.cb.on_reg_state2=&on_reg_state_callback;
app_config.cfg.cb.on_call_sdp_created=&on_call_sdp_created;
pjsua_call_setting call_opt
pjsua_call_setting call_opt;
pjsua_call_setting_default(&call_opt);
call_opt.aud_cnt=1;
call_opt.flag=PJSUA_CALL_UNHOLD;
call_opt.req_keyframe_method=PJSUA_VID_REQ_KEYFRAME_SIP_INFO;
call_opt.vid_cnt=1;
添加本地帐户
pjsua_acc_add_local(transport_id, PJ_TRUE, &aid);
/* Adjust local account config based on pjsua app config */
{
pjsua_acc_config acc_cfg;
pjsua_acc_get_config(aid, tmp_pool, &acc_cfg);
acc_cfg.rtp_cfg = app_config.rtp_cfg;
app_config_init_video(&acc_cfg);
acc_cfg.rtp_cfg = app_config.rtp_cfg;
pjsua_acc_modify(aid, &acc_cfg);
}
第一次拨打电话,第二次退出。
voip:../ src / pjsip-ua / sip_inv.c:1135:pjsip_inv_verify_request3: 断言(status = pjmedia_sdp_validate(l_sdp))== PJ_SUCCESS'失败。
为什么l_sdp
不可用?
答案 0 :(得分:0)
config_site.h #define PJMEDIA_HAS_VIDEO 0
禁用视频,这是正常的
设置是否有问题?