Skip to content
Snippets Groups Projects
Commit a830947b authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2557] Display complete sip uri for outgoing calls

parent c38b1067
No related branches found
No related tags found
No related merge requests found
...@@ -696,6 +696,8 @@ sflphone_new_call() ...@@ -696,6 +696,8 @@ sflphone_new_call()
peer_name = g_strdup (""); peer_name = g_strdup ("");
create_new_call (CALL, CALL_STATE_DIALING, "", "", peer_name, peer_number, &c); create_new_call (CALL, CALL_STATE_DIALING, "", "", peer_name, peer_number, &c);
c->_history_state = OUTGOING;
calllist_add (current_calls,c); calllist_add (current_calls,c);
calltree_add_call (current_calls, c, NULL); calltree_add_call (current_calls, c, NULL);
update_actions(); update_actions();
......
...@@ -351,6 +351,14 @@ calltree_display_call_info(callable_obj_t * c, CallDisplayType display_type, gch ...@@ -351,6 +351,14 @@ calltree_display_call_info(callable_obj_t * c, CallDisplayType display_type, gch
DEBUG("Display call info"); DEBUG("Display call info");
// If call is outgoing, keep the hostname, strip it elsewhere
if(c->_type == CALL && c->_history_state == OUTGOING) {
display_number = peer_number;
}
else {
// Get the hostname for this call (NULL if not existent) // Get the hostname for this call (NULL if not existent)
hostname = g_strrstr(peer_number, "@"); hostname = g_strrstr(peer_number, "@");
...@@ -369,7 +377,7 @@ calltree_display_call_info(callable_obj_t * c, CallDisplayType display_type, gch ...@@ -369,7 +377,7 @@ calltree_display_call_info(callable_obj_t * c, CallDisplayType display_type, gch
display_number = peer_number; display_number = peer_number;
} }
}
// Different display depending on type // Different display depending on type
switch(display_type) { switch(display_type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment