mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 11:19:30 +00:00
fix bad handling of call transfer sipfrags and compilation warning
This commit is contained in:
parent
929bc9744d
commit
0021b21feb
2 changed files with 8 additions and 4 deletions
|
|
@ -2113,7 +2113,11 @@ static int lpc_cmd_speak(LinphoneCore *lc, char *args){
|
|||
#ifdef __APPLE__
|
||||
mktemp(wavfile);
|
||||
#else
|
||||
mkstemp(wavfile);
|
||||
if (mkstemp(wavfile)==-1){
|
||||
ms_error("Could not create temporary filename: %s", strerror(errno));
|
||||
linphonec_out("An error occured, please consult logs for details.");
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
snprintf(cl,sizeof(cl),"espeak -v %s -s 100 -w %s --stdin",voice,wavfile);
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ void sal_op_process_refer(SalOp *op, const belle_sip_request_event_t *event, bel
|
|||
belle_sip_free(refer_to_uri_str);
|
||||
} else {
|
||||
ms_warning("cannot do anything with the refer without destination\n");
|
||||
resp = sal_op_create_response_from_request(op,req,501);
|
||||
resp = sal_op_create_response_from_request(op,req,400);
|
||||
belle_sip_server_transaction_send_response(server_transaction,resp);
|
||||
}
|
||||
|
||||
|
|
@ -233,9 +233,9 @@ void sal_op_call_process_notify(SalOp *op, const belle_sip_request_event_t *even
|
|||
if (sipfrag){
|
||||
int code=belle_sip_response_get_status_code(sipfrag);
|
||||
SalReferStatus status=SalReferFailed;
|
||||
if (code==100){
|
||||
if (code<200){
|
||||
status=SalReferTrying;
|
||||
}else if (code==200){
|
||||
}else if (code<300){
|
||||
status=SalReferSuccess;
|
||||
}else if (code>=400){
|
||||
status=SalReferFailed;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue