- 首先注册回调
pjsua_config ua_cfg;
pjsua_config_default(&ua_cfg);
//电话状态回调
ua_cfg.cb.on_call_state = on_call_state;
//来电回调
ua_cfg.cb.on_incoming_call = on_incoming_call
pjsua_config ua_cfg;
pjsua_config_default(&ua_cfg);
//电话状态回调
ua_cfg.cb.on_call_state = on_call_state;
//来电回调
ua_cfg.cb.on_incoming_call = on_incoming_call