Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
piphone-front
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
1186b301
Commit
1186b301
authored
Jan 23, 2017
by
okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
app/Main.php
app/Main.php
+1
-11
templates/feedbackform.html
templates/feedbackform.html
+1
-0
No files found.
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
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