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
74336949
authored
2019-01-24 11:02:47 +0000
by
Manish Mihsra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Passed tranferred number to asterisk and cleared Dialline channel for the same
1 parent
2a8fd711
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 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 @
7433694
...
...
@@ -460,7 +460,8 @@ class KPAMIListen implements IEventListener
$cause
=
$event
->
getKey
(
"Cause"
);
$causetxt
=
$event
->
getKey
(
"Cause-txt"
);
Log
::
info
(
"
$accountcode
:HangupEvent :
$eventname
$channelstate
:
$channelstatedesc
$uniqueid
$exten
:
$priority
$channel
$cause
:
$causetxt
\n
"
);
Log
::
info
(
"Hangup"
.
$accountcode
);
if
(
$accountcode
!=
""
)
{
//echo "$accountcode:HangupEvent : $eventname $channelstate:$channelstatedesc $uniqueid $exten:$priority $channel $cause:$causetxt\n";
...
...
@@ -493,8 +494,19 @@ class KPAMIListen implements IEventListener
$dialline
=
Dialline
::
find
(
$crmcall
->
dialline_id
);
if
(
$dialline
)
{
Dialline
::
where
(
'status'
,
'='
,
'transfer'
)
->
where
(
'channel'
,
$dialline
->
channel
)
->
update
([
'status'
=>
'Free'
,
'conf'
=>
''
,
'number'
=>
''
,
'uniqueid'
=>
''
,
'channel'
=>
''
,
]);
$dialline
->
status
=
"Free"
;
$dialline
->
conf
=
""
;
$dialline
->
number
=
""
;
...
...
application/app/Models/Kqueue.php
View file @
7433694
...
...
@@ -88,7 +88,7 @@ class Kqueue extends Model{
$odata['VARS']['callnumber']=$callnumber;*/
$odata
[
'channel'
]
=
$channel
;
$odata
[
'exten'
]
=
"1003"
.
$callnumber
;
$odata
[
'exten'
]
=
"1003"
.
$
dialline
->
dialstr
.
$
callnumber
;
$odata
[
'context'
]
=
"initiateTransfer"
;
$odata
[
'priority'
]
=
1
;
...
...
application/public/assets/extras/data/asterisk/extensions.conf
View file @
7433694
...
...
@@ -49,10 +49,8 @@ exten => _X!,n,ConfBridge(${CHANNEL})
exten
=>
_
X
!,
n
,
Hangup
[
initiateTransfer
]
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
exten
=>
_
X
!,
n
,
Dial
(${
EXTEN
:
4
},
30
,
tT
)
exten
=>
_
X
!,
n
,
Hangup
;
exten
=>
_
X
!,
1
,
Answer
;
exten
=>
_
X
!,
n
,
Verbose
(${
CALLERID
(
num
)}${
dialstr
}${
chnl
})
...
...
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