Merge branch '1.4' into 1.4-spce2.5

* 1.4:
  b/f:removed superfluous debug log messages introduced in 26fdaa8eaf
  b/f: multiple extra c-lines in generated SDP after SDP filter (fixes #132)
sayer/1.4-spce2.6
Stefan Sayer 14 years ago
commit 3b3bdba1c8

@ -207,19 +207,18 @@ void AmSdp::print(string& body) const
for(std::vector<SdpMedia>::const_iterator media_it = media.begin();
media_it != media.end(); media_it++) {
out_buf += "m=" + media_t_2_str(media_it->type) + " " + int2str(media_it->port) + " " + transport_p_2_str(media_it->transport);
string options;
if (media_it->transport == TP_RTPAVP || media_it->transport == TP_RTPSAVP) {
string options;
for(std::vector<SdpPayload>::const_iterator pl_it = media_it->payloads.begin();
pl_it != media_it->payloads.end(); pl_it++) {
out_buf += " " + int2str(pl_it->payload_type);
if (!media_it->conn.address.empty())
options += "c=IN IP4 "+media_it->conn.address+"\r\n";
if (pl_it->encoding_name.empty()) // don't add rtpmap if no encoding name given
continue;
@ -241,12 +240,16 @@ void AmSdp::print(string& body) const
}
out_buf += "\r\n" + options;
} else {
// for other transports (UDP/UDPTL) just print out fmt
out_buf += " " + media_it->fmt + "\r\n";
out_buf += " " + media_it->fmt;
// ... and continue with c=, attributes, ...
}
if (!media_it->conn.address.empty())
out_buf += "\r\nc=IN IP4 "+media_it->conn.address;
out_buf += "\r\n" + options;
// add attributes (media level)
for (std::vector<SdpAttribute>::const_iterator a_it=

@ -914,11 +914,11 @@ void AmSession::onSipReply(const AmSipReply& reply,
DBG("negotiate_onreply = %s\n", negotiate_onreply?"true":"false");
if (negotiate_onreply) {
if(old_dlg_status < AmSipDialog::Connected){
DBG("old is < conn\n");
switch(dlg.getStatus()){
case AmSipDialog::Connected:
DBG("case conn\n");
try {
RTPStream()->setMonitorRTPTimeout(true);
@ -947,7 +947,7 @@ void AmSession::onSipReply(const AmSipReply& reply,
break;
case AmSipDialog::Pending:
DBG("case pending\n");
switch(reply.code){
// todo: 180 with body (remote rbt)
case 180: {

Loading…
Cancel
Save