答案 0 :(得分:3)
CallOpParam prm = new CallOpParam(true);
SipHeader sipHeader = new SipHeader();
sipHeader.setHName("Subject");
sipHeader.setHValue("paid call");
SipHeaderVector sipHeaderVector = new SipHeaderVector();
sipHeaderVector.add(sipHeader);
SipTxOption sipTxOption = new SipTxOption();
sipTxOption.setHeaders(sipHeaderVector);
prm.setTxOption(sipTxOption);
call.makeCall(buddy_uri, prm);
答案 1 :(得分:0)
使用PJSUA2,请尝试以下操作:
List<Attachment> attachmentmodel=widget.newsFeeds.data.data[index].attachment;
@override
Widget build(BuildContext context) {
int listsize = widget.newsFeeds.data.data.length;
return Scaffold(
body: Padding(
padding: EdgeInsets.only(right: 4,left: 4,top: 4,bottom: 4),
child: ListView.builder(
itemCount: listsize,
itemBuilder: (context, index) {
var allAttachments=widget.newsFeeds.data.data[index].attachment;
List<Attachment> attachmentmodel=widget.newsFeeds.data.data[index].attachment;
int textlength = textStatus.length;
return AttachmentWidget(attachmentmodel);
);
}
}