[Semsdev] r1379 - branches/wb/core

sayer at mail.berlios.de sayer at mail.berlios.de
Mon May 11 19:37:23 CEST 2009


Author: sayer
Date: 2009-05-11 19:37:22 +0200 (Mon, 11 May 2009)
New Revision: 1379

Modified:
   branches/wb/core/AmSdp.cpp
Log:
add channels in outgoing SDP

Modified: branches/wb/core/AmSdp.cpp
===================================================================
--- branches/wb/core/AmSdp.cpp	2009-05-11 14:04:16 UTC (rev 1378)
+++ branches/wb/core/AmSdp.cpp	2009-05-11 17:37:22 UTC (rev 1379)
@@ -255,9 +255,12 @@
   for (it = payload_order.begin(); it != payload_order.end(); ++it) {
     map<int,amci_payload_t*>::const_iterator it2 = payloads.find(it->second);
     if(it2 != payloads.end()){
+      string chan_str = (it2->second->channels >=0 && it2->second->channels != 1)?
+	string("/"+int2str(it2->second->channels)):"";
       out_buf += "a=rtpmap:" + int2str(it2->first)
 	+ " " + string(it2->second->name)
 	+ "/" + int2str(it2->second->advertised_sample_rate)
+	+ chan_str 
 	+ "\r\n";
     } else {
       ERROR("Payload %d was not found in payloads map!\n", it->second);



More information about the Semsdev mailing list