ekiga r6657 - in trunk: . src/endpoints
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6657 - in trunk: . src/endpoints
- Date: Tue, 19 Aug 2008 21:20:35 +0000 (UTC)
Author: dsandras
Date: Tue Aug 19 21:20:35 2008
New Revision: 6657
URL: http://svn.gnome.org/viewvc/ekiga?rev=6657&view=rev
Log:
Fixed many things for h323 and sip calling, in case of failure,
missed calls, ...
Modified:
trunk/ChangeLog
trunk/src/endpoints/opal-call.cpp
trunk/src/endpoints/opal-call.h
Modified: trunk/src/endpoints/opal-call.cpp
==============================================================================
--- trunk/src/endpoints/opal-call.cpp (original)
+++ trunk/src/endpoints/opal-call.cpp Tue Aug 19 21:20:35 2008
@@ -58,7 +58,7 @@
Opal::Call::Call (OpalManager & _manager, Ekiga::ServiceCore & _core)
: OpalCall (_manager), Ekiga::Call (), core (_core),
runtime (*dynamic_cast<Ekiga::Runtime*>(core.get ("runtime"))),
- outgoing(false), jitter(0)
+ outgoing(true), jitter(0)
{
re_a_bytes = tr_a_bytes = re_v_bytes = tr_v_bytes = 0.0;
last_v_tick = last_a_tick = PTime ();
@@ -272,7 +272,7 @@
std::string uri;
uri = (const char *) connection.GetRemotePartyCallbackURL ();
- if (!uri.empty ())
+ if (remote_uri.empty () && !uri.empty ())
remote_uri = uri;
if (!PIsDescendant(&connection, OpalPCSSConnection)) {
@@ -460,13 +460,23 @@
PBoolean
Opal::Call::OnSetUp (OpalConnection & connection)
{
+ bool res = OpalCall::OnSetUp (connection);
+
parse_info (connection);
outgoing = PIsDescendant(&connection, OpalPCSSConnection);
runtime.run_in_main (setup.make_slot ());
- return OpalCall::OnSetUp (connection);
+ return res;
+}
+
+
+void
+Opal::Call::OnNewConnection (OpalConnection & connection)
+{
+ if (remote_uri.empty ())
+ remote_uri = (const char *) connection.GetCall().GetPartyB ();
}
@@ -610,6 +620,6 @@
connection->ForwardCall (forward_uri);
}
else
- Clear (OpalConnection::EndedByAnswerDenied);
+ Clear (OpalConnection::EndedByNoAnswer);
}
}
Modified: trunk/src/endpoints/opal-call.h
==============================================================================
--- trunk/src/endpoints/opal-call.h (original)
+++ trunk/src/endpoints/opal-call.h Tue Aug 19 21:20:35 2008
@@ -180,6 +180,8 @@
PBoolean OnSetUp (OpalConnection & connection);
+ void OnNewConnection (OpalConnection & connection);
+
PDECLARE_NOTIFIER (PThread, Opal::Call, OnAnswer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]