I need to add a Subject header to the invite request while making a call. I am using the PJSUA library.
I found this question. But I couldn't implement it. Please help.
Thanks in advance
I need to add a Subject header to the invite request while making a call. I am using the PJSUA library.
I found this question. But I couldn't implement it. Please help.
Thanks in advance
with PJSUA2, try this:
SipHeader sipHeader = SipHeader();
sipHeader.hName = "Subject";
sipHeader.hValue = "34020000001320000001:0,34020000002000000001:0";
SipHeaderVector sipHeaderVector = SipHeaderVector();
sipHeaderVector.push_back(sipHeader);
SipTxOption sipTxOption = SipTxOption();
sipTxOption.headers = sipHeaderVector;
prm.txOption = sipTxOption;