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

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Tue Oct  4 10:20:33 2011 +0200

rtmp: support for custom registrar_client handle.

---

 apps/rtmp/RtmpConnection.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/apps/rtmp/RtmpConnection.cpp b/apps/rtmp/RtmpConnection.cpp
index d2c5697..be619ec 100644
--- a/apps/rtmp/RtmpConnection.cpp
+++ b/apps/rtmp/RtmpConnection.cpp
@@ -756,18 +756,19 @@ void RtmpConnection::createRegistration(const string& 
domain,
   di_args.push(auth_user.c_str());     // auth_user
   di_args.push(passwd.c_str());        // pwd
   di_args.push(FACTORY_Q_NAME);
+  di_args.push("");
+  di_args.push("");
+  di_args.push(ident.c_str());
   
   di_reg_client->invoke("createRegistration", di_args, ret);
-  reg_handle = ret.get(0).asCStr();
 }
 
 void RtmpConnection::removeRegistration()
 {
-  if(!di_reg_client || reg_handle.empty()) return;
+  if(!di_reg_client || ident.empty()) return;
   AmArg di_args,ret;
-  di_args.push(reg_handle.c_str());
+  di_args.push(ident.c_str());
   di_reg_client->invoke("removeRegistration", di_args, ret);
-  reg_handle.clear();
 }
 
 void RtmpConnection::stopStream(unsigned int stream_id)

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

Reply via email to