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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Mon Jul  5 22:52:06 2010 +0200

add fmtp 0-16 for telephone-event

---

 core/AmSdp.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/core/AmSdp.cpp b/core/AmSdp.cpp
index b911686..d970439 100644
--- a/core/AmSdp.cpp
+++ b/core/AmSdp.cpp
@@ -276,6 +276,9 @@ int AmSdp::genRequest(const string& localip, int localport, 
string& out_buf)
        + " " + string(it2->second->name)
        + "/" + int2str(it2->second->sample_rate)
        + "\r\n";
+      if (it2->second->name == string("telephone-event")) {
+       out_buf +="a=fmtp:"+int2str(it2->first)+" 0-16\r\n";
+      }
     } else {
       ERROR("Payload %d was not found in payloads map!\n", it->second);
       return -1;

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

Reply via email to