Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
1a28a782
Commit
1a28a782
authored
Apr 20, 2012
by
Alexandre Savard
Browse files
#9902: Log failure cause when new outgoing call fail
parent
e658638d
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/sip/sipvoiplink.cpp
View file @
1a28a782
...
...
@@ -1027,31 +1027,44 @@ SIPVoIPLink::SIPStartCall(SIPCall *call)
pjsip_dialog
*
dialog
=
NULL
;
if
(
pjsip_dlg_create_uac
(
pjsip_ua_instance
(),
&
pjFrom
,
&
pjContact
,
&
pjTo
,
NULL
,
&
dialog
)
!=
PJ_SUCCESS
)
if
(
pjsip_dlg_create_uac
(
pjsip_ua_instance
(),
&
pjFrom
,
&
pjContact
,
&
pjTo
,
NULL
,
&
dialog
)
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Unable to sip create dialogs for user agent client"
);
return
false
;
}
if
(
pjsip_inv_create_uac
(
dialog
,
call
->
getLocalSDP
()
->
getLocalSdpSession
(),
0
,
&
call
->
inv
)
!=
PJ_SUCCESS
)
if
(
pjsip_inv_create_uac
(
dialog
,
call
->
getLocalSDP
()
->
getLocalSdpSession
(),
0
,
&
call
->
inv
)
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Unable to create invite session for user agent client"
);
return
false
;
}
if
(
not
account
->
getServiceRoute
().
empty
())
pjsip_dlg_set_route_set
(
dialog
,
sip_utils
::
createRouteSet
(
account
->
getServiceRoute
(),
call
->
inv
->
pool
));
pjsip_auth_clt_set_credentials
(
&
dialog
->
auth_sess
,
account
->
getCredentialCount
(),
account
->
getCredInfo
());
if
(
pjsip_auth_clt_set_credentials
(
&
dialog
->
auth_sess
,
account
->
getCredentialCount
(),
account
->
getCredInfo
())
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Could not initiaize credential for invite session authentication"
);
return
false
;
}
call
->
inv
->
mod_data
[
mod_ua_
.
id
]
=
call
;
pjsip_tx_data
*
tdata
;
if
(
pjsip_inv_invite
(
call
->
inv
,
&
tdata
)
!=
PJ_SUCCESS
)
if
(
pjsip_inv_invite
(
call
->
inv
,
&
tdata
)
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Could not initialize invite messager for this call"
);
return
false
;
}
pjsip_tpselector
*
tp
=
sipTransport
.
initTransportSelector
(
account
->
transport_
,
call
->
inv
->
pool
);
if
(
pjsip_dlg_set_transport
(
dialog
,
tp
)
!=
PJ_SUCCESS
)
if
(
pjsip_dlg_set_transport
(
dialog
,
tp
)
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Unable to associate transport fir invite session dialog"
);
return
false
;
}
if
(
pjsip_inv_send_msg
(
call
->
inv
,
tdata
)
!=
PJ_SUCCESS
)
if
(
pjsip_inv_send_msg
(
call
->
inv
,
tdata
)
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Unable to send invite message for this call"
);
return
false
;
}
call
->
setConnectionState
(
Call
::
PROGRESSING
);
call
->
setState
(
Call
::
ACTIVE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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