Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
1186b301
Commit
1186b301
authored
Jan 23, 2017
by
okhin
Browse files
SOrting dates in the correct order
parent
96d4f491
Pipeline
#777
passed with stage
in 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Main.php
View file @
1186b301
...
...
@@ -60,16 +60,6 @@ class Main extends Controller {
}
}
/*
* Feedback SIP function
* Get a feedback from the SIP system - status of a call for instance
* GET: get the call back
*/
function
feedbacksip
(
$f3
,
$args
)
{
//GET
}
/*
* call Page
* Form to call
...
...
@@ -96,7 +86,7 @@ class Main extends Controller {
'callee'
=>
$contact
[
'phone'
],
'token'
=>
$token
);
// We want to generate a UNIQUE-ID (doesn't need to be cryptogaphically unique though
$call_id
=
uniqid
(
);
$call_id
=
str_replace
(
'.'
,
'-'
,
uniqid
(
''
,
true
)
);
$f3
->
set
(
'CALL_ID'
,
$call_id
);
// Create the call
...
...
templates/feedbackform.html
View file @
1186b301
...
...
@@ -83,6 +83,7 @@
function
update_call
(
response
)
{
var
call_history
=
response
[
'
data
'
][
'
history
'
];
console
.
log
(
call_history
);
var
call_state
=
call_history
.
sort
(
function
(
a
,
b
)
{
var
date1
=
new
Date
(
a
[
1
]);
var
date2
=
new
Date
(
b
[
1
]);
...
...
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