Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
28f42a58
Commit
28f42a58
authored
May 29, 2009
by
Alexandre Savard
Browse files
[#1108] Add a signal in the client to notify successful or failed transfer
parent
5a512122
Changes
5
Hide whitespace changes
Inline
Side-by-side
sflphone-client-gnome/src/dbus/callmanager-introspec.xml
View file @
28f42a58
...
...
@@ -111,6 +111,13 @@
<arg
type=
"s"
name=
"device"
direction=
"out"
/>
<arg
type=
"d"
name=
"value"
direction=
"out"
/>
</signal>
<signal
name=
"transferSucceded"
>
</signal>
<signal
name=
"transferFailed"
>
</signal>
<!--
<signal name="error">
...
...
sflphone-common/src/dbus/callmanager-introspec.xml
View file @
28f42a58
...
...
@@ -111,10 +111,10 @@
<arg
type=
"d"
name=
"value"
direction=
"out"
/>
</signal>
<signal
name=
"transferSucce
e
ded"
>
<signal
name=
"transferSucceded"
>
</signal>
<signal
name=
"transferFail
l
ed"
>
<signal
name=
"transferFailed"
>
</signal>
<!--
...
...
sflphone-common/src/managerimpl.cpp
View file @
28f42a58
...
...
@@ -504,6 +504,18 @@ ManagerImpl::transferCall(const CallID& id, const std::string& to)
return
returnValue
;
}
void
ManagerImpl
::
transferFailed
()
{
if
(
_dbus
)
_dbus
->
getCallManager
()
->
transferFailed
();
}
void
ManagerImpl
::
transferSucceded
()
{
if
(
_dbus
)
_dbus
->
getCallManager
()
->
transferSucceded
();
}
//THREAD=Main : Call:Incoming
bool
ManagerImpl
::
refuseCall
(
const
CallID
&
id
)
...
...
sflphone-common/src/managerimpl.h
View file @
28f42a58
...
...
@@ -157,6 +157,16 @@ class ManagerImpl {
*/
bool
transferCall
(
const
CallID
&
id
,
const
std
::
string
&
to
);
/**
* Notify the client the transfer is successful
*/
void
transferSucceded
();
/**
* Notify the client that the transfer failed
*/
void
transferFailed
();
/**
* Functions which occur with a user's action
* Refuse the call
...
...
sflphone-common/src/sipvoiplink.cpp
View file @
28f42a58
...
...
@@ -2726,6 +2726,8 @@ void xfer_func_cb ( pjsip_evsub *sub, pjsip_event *event )
_debug
(
"UserAgent: NORESOURCE for transfer!
\n
"
);
link
->
transferStep2
();
pjsip_evsub_terminate
(
sub
,
PJ_TRUE
);
Manager
::
instance
().
transferFailed
();
return
;
}
...
...
@@ -2734,6 +2736,8 @@ void xfer_func_cb ( pjsip_evsub *sub, pjsip_event *event )
_debug
(
"UserAgent: transfered call RINGING!
\n
"
);
link
->
transferStep2
();
pjsip_evsub_terminate
(
sub
,
PJ_TRUE
);
Manager
::
instance
().
transferSucceded
();
return
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment