< Previous by Date | Date Index | Next by Date > |
Thread Index | Next in Thread > |
---------> ANSWERED SDP <-----------
v=0
o=root 735036303 735036303 IN IP4 192.168.23.107
s=KalliopePBX/4.3.1
c=IN IP4 192.168.23.107
t=0 0
m=audio 15732 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=maxptime:150
a=sendrecv
Then if i call
SdpContents::Session::MediumContainer answeredMediaVec = answeredSdp.session().media();
for (itAnsMedia = answeredMediaVec.begin(); itAnsMedia != answeredMediaVec.end(); ++itAnsMedia) {
qDebug() << itAnsMedia->name().c_str() << " -- "
<< itAnsMedia->protocol().c_str() << " -- "
<< itAnsMedia->port() << " -- " << sessionConnection; //FIXME - this should / could be overridden by m= connection
the output is:
audio -- RTP/AVP -- 15732 -- "192.168.23.107"
audio -- RTP/AVP -- 15732 -- "192.168.23.107"