mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 02:09:22 +00:00
More verbose traces on SAL call.
This commit is contained in:
parent
388ef155ae
commit
0fb206da3a
2 changed files with 7 additions and 4 deletions
|
|
@ -541,13 +541,16 @@ int sal_call_set_local_media_description(SalOp *h, SalMediaDescription *desc){
|
|||
|
||||
int sal_call(SalOp *h, const char *from, const char *to){
|
||||
int err;
|
||||
const char *route;
|
||||
osip_message_t *invite=NULL;
|
||||
sal_op_set_from(h,from);
|
||||
sal_op_set_to(h,to);
|
||||
sal_exosip_fix_route(h);
|
||||
err=eXosip_call_build_initial_invite(&invite,to,from,sal_op_get_route(h),"Phone call");
|
||||
route = sal_op_get_route(h);
|
||||
err=eXosip_call_build_initial_invite(&invite,to,from,route,"Phone call");
|
||||
if (err!=0){
|
||||
ms_error("Could not create call.");
|
||||
ms_error("Could not create call. Error %d (from=%s to=%s route=%s)",
|
||||
err, from, to, route);
|
||||
return -1;
|
||||
}
|
||||
osip_message_set_allow(invite, "INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO");
|
||||
|
|
@ -574,7 +577,7 @@ int sal_call(SalOp *h, const char *from, const char *to){
|
|||
eXosip_unlock();
|
||||
h->cid=err;
|
||||
if (err<0){
|
||||
ms_error("Fail to send invite !");
|
||||
ms_error("Fail to send invite ! Error code %d", err);
|
||||
return -1;
|
||||
}else{
|
||||
sal_add_call(h->base.root,h);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 887ca16ddda8e5f84d7c64d5decfd7f7c9b92b5d
|
||||
Subproject commit 061bf62cc0d3112b1003c5567230ae2b35e8910b
|
||||
Loading…
Add table
Reference in a new issue