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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Mon Oct 17 17:06:33 2011 +0200

fix urlcatcher compilation to API changes

---

 apps/examples/urlcatcher/UrlCatcher.cpp |    6 +++---
 apps/examples/urlcatcher/UrlCatcher.h   |    3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/apps/examples/urlcatcher/UrlCatcher.cpp 
b/apps/examples/urlcatcher/UrlCatcher.cpp
index d5a524b..dd694d2 100644
--- a/apps/examples/urlcatcher/UrlCatcher.cpp
+++ b/apps/examples/urlcatcher/UrlCatcher.cpp
@@ -60,11 +60,11 @@ int UrlCatcherFactory::onLoad()
 }
 
 
-AmSession* UrlCatcherFactory::onInvite(const AmSipRequest& req)
+AmSession* UrlCatcherFactory::onInvite(const AmSipRequest& req, const string& 
app_name,
+                                      const map<string,string>& app_params)
 {
   AmSdp sdp;
-  sdp.setBody(req.body.c_str());
-  if (sdp.parse()) {
+  if (sdp.parse(req.body.c_str())) {
     ERROR("SDP parsing error\n");
     throw AmSession::Exception(404, "Not Found Here (SDP parse error)");
   }
diff --git a/apps/examples/urlcatcher/UrlCatcher.h 
b/apps/examples/urlcatcher/UrlCatcher.h
index 4da9006..5af3160 100644
--- a/apps/examples/urlcatcher/UrlCatcher.h
+++ b/apps/examples/urlcatcher/UrlCatcher.h
@@ -42,7 +42,8 @@ public:
   UrlCatcherFactory(const string& _app_name);
 
   int onLoad();
-  AmSession* onInvite(const AmSipRequest& req);
+  AmSession* onInvite(const AmSipRequest& req, const string& app_name,
+                     const map<string,string>& app_params);
 };
 
 #endif

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

Reply via email to