Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc-beu-v2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5435bb9e
authored
2019-01-22 15:32:14 +0000
by
Manish Mihsra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added Bridge Logic to merge two existing channels
1 parent
2f1646c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
application/app/Jobs/KPAMIListen.php
application/app/Models/Kqueue.php
application/public/assets/extras/data/asterisk/extensions.conf
application/app/Jobs/KPAMIListen.php
View file @
5435bb9
...
...
@@ -19,6 +19,7 @@ use PAMI\Message\Event\HangupEvent;
use
PAMI\Message\Event\UnknownEvent
;
use
PAMI\Message\Event\DialBeginEvent
;
use
PAMI\Message\Event\DialEndEvent
;
use
PAMI\Message\Event\BlindTransferEvent
;
use
PAMI\Message\Action\AGIAction
;
use
PAMI\Message\Action\SIPNotifyAction
;
...
...
@@ -886,6 +887,11 @@ class KPAMIListen implements IEventListener
$dialline
=
Dialline
::
find
(
$crmcall
->
dialline_id
);
if
(
$dialline
&&
$dialstatus
==
"ANSWER"
)
{
$tsip
=
Sipid
::
find
(
$crmcall
->
sipid_id
);
$newqueue
=
new
Kqueue
();
$newqueue
->
channelRedirectToExten
(
$tsip
->
server
,
$dchannel
,
"1004"
.
$tsip
->
id
,
"confTransfer"
,
"1"
);
$dialline
->
channel
=
$dchannel
;
$dialline
->
uniqueid
=
$uniqueid
;
$dialline
->
status
=
"transfer"
;
...
...
@@ -903,6 +909,11 @@ class KPAMIListen implements IEventListener
}
}
private
function
BlindTransferEvent
(
EventMessage
$event
)
{
Log
::
info
(
"BlindTransferEvent"
);
}
private
function
UnknownEvent
(
EventMessage
$event
)
{
$eventname
=
$event
->
getKey
(
"Event"
);
...
...
application/app/Models/Kqueue.php
View file @
5435bb9
...
...
@@ -74,7 +74,7 @@ class Kqueue extends Model{
$dialstr
=
$dialline
->
dialstr
;
$server
=
$dialline
->
server
;
$channel
=
$dialline
->
channel
;
Log
::
info
(
$channel
);
if
(
$server
!=
''
)
{
$odata
=
array
();
$odata
[
'VARS'
]
=
array
();
...
...
application/public/assets/extras/data/asterisk/extensions.conf
View file @
5435bb9
...
...
@@ -49,7 +49,7 @@ exten => _X!,n,ConfBridge(${CHANNEL})
exten
=>
_
X
!,
n
,
Hangup
[
initiateTransfer
]
exten
=>
_
1003
XXX
!,
1
,
Dial
(${
dialstr
}${
callnumber
},
30
,
t
)
exten
=>
_
1003
XXX
!,
1
,
Dial
(${
dialstr
}${
callnumber
},
120
,
tT
)
exten
=>
_
1003
XXX
!,
n
,
Hangup
;
exten
=>
_
1000
XXX
!,
1
,
ConfBridge
(${
EXTEN
})
;
exten
=>
_
1000
XXX
!,
n
,
Hangup
...
...
@@ -60,6 +60,10 @@ exten => _1003XXX!,n,Hangup
;
exten
=>
_
X
!,
n
,
ConfBridge
(${
chnl
})
;
exten
=>
_
X
!,
n
,
Hangup
[
confTransfer
]
exten
=>
_
1004
XXX
!,
1
,
ConfBridge
(${
CHANNEL
})
exten
=>
_
1004
XXX
!,
n
,
Hangup
[
kstychPlayFile
]
exten
=>
1001
,
1
,
Answer
exten
=>
1001
,
n
,
Playback
(
silence
/
1
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment