Hi,
I am trying to send invite message with predefined SDP but I am unable.
Please let me know what I was missing?
Code:
SharedPtr<SipMessage> invite_msg = mDum->makeInviteSession(To, mSdp);
invite_msg->setContents(mSdp);
mDum->send(invite_msg);
SDP:
txt = new Data("v=0\r\n"
"o=- 1281754238589 1281754238589 IN IP4 10.1.62.104\r\n"
"s=Integrating testing\r\n"
"c=IN IP4 10.1.62.104\r\n"
"m=MESSAGE 8000 TCP/MSRP *\r\n"
"a=sendrecv\r\n"
"a=setup:passive\r\n"
"a=max-size:5000000\r\n"
"a=accept-types:video/mp4\r\n"
"a=accept-wrapped-types:*\r\n"
"a=file-transfer-id:1370950781798\r\n"
"a=file-disposition:attachment\r\n"
"a=max-size:104857600\r\n"
"a=file-selector:name:\"9910000704_9910000705_21012014071451_0009.mp4\" type:video/mp4 size:232670\r\n");
hfv = new HeaderFieldValue(txt->data(), (unsigned int)txt->size());
Mime type("application", "sdp");
mSdp = new SdpContents(*hfv, type);
output:
INVITE sip:9910000705@xxxxxxxxxxxxxx SIP/2.0
Via: SIP/2.0/UDP 10.1.62.104:5595;branch=z9hG4bK-524287-1---cca693660c653852;rport
Max-Forwards: 70
Route: <sip:mavodi-0-4a-3fffffff-2-ffffffff-1d-52f8e8bb-1d@xxxxxxxxxxxxxxxxxxxx:5070;lr>
To: <sip:9910000705@xxxxxxxxxxxxxx>
From: <sip:9910000900@xxxxxxxxxxxxxx>;tag=8c6bb224
Call-ID: hX4MrrgltdQb0SNta7hcrg..
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, SUBSCRIBE, NOTIFY
Authorization: Digest username="9910000900@xxxxxxxxxxxxxx",realm="vz.mavenir.lab",uri="sip:vz.mavenir.lab",nonce="",response=""
Content-Length: 0