Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BoxDialer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
BoxDialer
Commits
24f4c019
Commit
24f4c019
authored
Oct 10, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update-
parent
38a46b5c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
19 deletions
+9
-19
package.json
package.json
+1
-1
style.js
src/components/ModalNumpad/style.js
+2
-0
index.jsx
src/components/ModalPhoneNumpad/index.jsx
+1
-2
boxDIaler.js
src/lib/boxDIaler.js
+5
-16
No files found.
package.json
View file @
24f4c019
{
"name"
:
"boxdialer"
,
"version"
:
"4.3.
6
"
,
"version"
:
"4.3.
7
"
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
...
...
src/components/ModalNumpad/style.js
View file @
24f4c019
...
...
@@ -20,10 +20,12 @@ const Block = styled.div`
?
{
opacity
:
'
1
'
,
transform
:
'
translate(-50%, 0)
'
,
display
:
'
block
'
,
}
:
{
opacity
:
'
0
'
,
transform
:
'
translate(-50%, 0)
'
,
display
:
'
none
'
,
}}
`;
Block.ShowNumbersArea = styled.div`
...
...
src/components/ModalPhoneNumpad/index.jsx
View file @
24f4c019
...
...
@@ -41,7 +41,7 @@ const ModalPhoneNumpad = ({
},
[
modalState
.
bool
]);
const
inputController
=
({
value
,
type
,
from
})
=>
{
//
boxDialer.onSoundType({ type: 'pick', bool: true });
boxDialer
.
onSoundType
({
type
:
'
pick
'
,
bool
:
true
});
switch
(
type
)
{
case
'
add
'
:
if
(
...
...
@@ -179,7 +179,6 @@ const ModalPhoneNumpad = ({
// -------------------
var
currentTime
=
new
Date
();
if
(
dynamicValue
===
'
connected
'
)
{
console
.
log
(
call_history
.
slice
(
-
1
),
inputValue
);
if
(
Boolean
(
inputValue
.
toString
().
length
)
&&
call_history
.
slice
(
-
1
)[
0
]?.
value
!=
inputValue
...
...
src/lib/boxDIaler.js
View file @
24f4c019
...
...
@@ -56,6 +56,7 @@ export class BoxDialer {
callSession
;
sipDomain
;
player
;
strmTrack
;
constructor
()
{
console
.
log
(
'
registerData:
'
,
this
.
registerData
);
this
.
played
=
false
;
...
...
@@ -407,26 +408,14 @@ export class BoxDialer {
'
this_callSession_connection:
'
,
this
.
callSession
.
connection
,
);
this
.
callSession
.
connection
.
addEventListener
(
'
addstream
'
,
(
e
)
=>
{
console
.
log
(
'
--== UA Conn Added STREAM:
'
,
e
);
let
strmTrack
=
e
.
stream
.
getAudioTracks
();
if
(
strmTrack
[
0
])
{
let
rmMediaStream
=
new
MediaStream
([
strmTrack
[
0
]]);
this
.
remoteAudio
.
srcObject
=
rmMediaStream
;
this
.
remoteAudio
.
play
();
}
});
let
func
=
(
e
)
=>
{
let
strmTrack
=
e
.
stream
.
getAudioTracks
();
if
(
strmTrack
[
0
])
{
let
rmMediaStream
=
new
MediaStream
([
strmTrack
[
0
]]);
this
.
remoteAudio
.
srcObject
=
rmMediaStream
;
this
.
callSession
.
connection
.
onaddstream
=
(
e
)
=>
{
this
.
strmTrack
=
e
.
stream
.
getAudioTracks
();
if
(
this
.
strmTrack
[
0
])
{
this
.
remoteAudio
.
srcObject
=
new
MediaStream
([
this
.
strmTrack
[
0
]]);
this
.
remoteAudio
.
play
();
}
};
this
.
callSession
.
connection
.
onaddstream
=
func
;
this
.
setGuiPhoneState
({
funcName
:
'
modalState
'
,
...
...
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