Module: sems
Branch: master
Commit: dd3dc44e2943b44e80e333eabef18d545c5d91e2
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=dd3dc44e2943b44e80e333eabef18d545c5d91e2

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Tue Mar  6 10:24:26 2012 +0100

b/f: fixed telephone-event payload type

this would have caused any codec dynamically inserted with id 101 to disappear 
after insertion of the built-in telephone-event payload.

---

 core/AmPlugIn.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/core/AmPlugIn.cpp b/core/AmPlugIn.cpp
index 723f490..85c98ac 100644
--- a/core/AmPlugIn.cpp
+++ b/core/AmPlugIn.cpp
@@ -93,7 +93,7 @@ amci_codec_t _codec_tevent = {
 };
 
 amci_payload_t _payload_tevent = { 
-  101,
+  -1,
   "telephone-event",
   8000, // telephone-event has always SR 8000 
   8000,
@@ -696,12 +696,12 @@ int AmPlugIn::addPayload(amci_payload_t* p)
   }
   if (i >= AmConfig::CodecOrder.size()) {
       payload_order.insert(std::make_pair(id + 100, id));
-      DBG("payload '%s' inserted with id %i and order %i\n",
-         p->name, id, id + 100);
+      DBG("payload '%s/%i' inserted with id %i and order %i\n",
+         p->name, p->sample_rate, id, id + 100);
   } else {
       payload_order.insert(std::make_pair(i, id));
-      DBG("payload '%s' inserted with id %i and order %i\n",
-         p->name, id, i);
+      DBG("payload '%s/%i' inserted with id %i and order %i\n",
+         p->name, p->sample_rate, id, i);
   }
 
   return 0;

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to