Hi all,
I have a problem about DISPOSITION field in CDR, normaly this field inserts all status: answered, no answer, failded, busy.
Now, it doesn’t insert status BUSY.
Help me, pls! Thanks.
Hi all,
I have a problem about DISPOSITION field in CDR, normaly this field inserts all status: answered, no answer, failded, busy.
Now, it doesn’t insert status BUSY.
Help me, pls! Thanks.
If your requesting help, you should probably provide more information.
Such as what version of asterisk are you running?
What has been changed on the machine recently that might have contributed to this no longer working?
Hi,
Asterisk 1.4.29 and i didn’t changed anything.
then I would have to suspect that you are no longer receiving a busy notification from the phone company.
What does the console say when you make a call?
[globals]
;#database asterisk
host=A.B.C.D
user=asteris
pass=asterisk
db=asterisk
[from-zaptel]
exten => XXXX,1,Answer
exten => XXXX,n,Set(uniqueid=${UNIQUEID})
exten => XXXX,n,Set(user_id=${CALLERID(num)})
exten => XXXX,n,Set(DID=${EXTEN})
exten => XXXX,n,Goto(timeconditions,1,1)
;time work
[timeconditions]
exten => 1,1,GotoIfTime(07:30-21:30|mon-sun|1-31|jan-dec?ext-queues,101,1)
;exten => 1,n,Goto(ext-queues1,1102,1)
exten => 1,n,Goto(baothoigian1,s,1)
[ext-queues1]
exten => 1102,1,Answer
exten => 1102,n,GotoIF($[${QUEUEAGENTCOUNT(1102)} = 0 ]?thongbaohetgio,s,1:nextqueue1)
exten => 1102,n(nextqueue1),Set(__MOHCLASS=nhaccho)
exten => 1102,n,Queue(1102,t,180)
exten => 1102,n,Goto(hetthoigianqueue,s,1)
exten => 1102*,1,Macro(agent-add,1102,)
exten => 1102**,1,Macro(agent-del,1102,1102)
[thongbaohetgio]
exten => s,1,Answer
exten => s,2,Playback(/home/callcenter/loithoai/TA0907)
exten => s,3,WaitExten(60)
exten => s,4,Hangup
[baothoigian1]
exten => s,1,Background(/home/callcenter/baothoigian)
exten => s,n,WaitExten(,)
exten => hang,1,Playback(/home/callcenter/vm-goodbye)
exten => hang,n,Hangup
exten => i,1,Playback(/home/callcenter/loithoai/invalid)
exten => i,n,Goto(loop,1)
exten => t,1,Goto(loop,1)
exten => loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1])
exten => loop,n,GotoIf($[${LOOPCOUNT} > ${lo_ivr}]?hang,1)
exten => loop,n,Goto(baothoigian1,s,begin)
exten => return,1,Set(IVR_CONTEXT=${CONTEXT})
exten => return,n,Set(IVR_CONTEXT${CONTEXT}=${IVR_CONTEXT${CONTEXT}})
exten => return,n,Goto(baothoigian1,s,begin)
[hetthoigianqueue]
exten => s,1,Playback(/home/callcenter/baoban2)
exten => s,2,Hangup
;Agents Login
exten => 11001,1,AgentCallbackLogin(1001||1001@from-internal)
exten => 11001,2,Playback(agent-loginok)
exten => 11001,3,Hangup()
exten => 11002,1,AgentCallbackLogin(1002||1002@from-internal)
exten => 11002,2,Playback(agent-loginok)
exten => 11002,3,Hangup()
Asterisk database is placed in server which has IP: A.B.C.D
When i make a call to XXXX, i view that this extension is correct.
I noted you do not have a ext-queues in the extension.conf.
a posting of asterisk console would show the flow of the call and possible help in determining the problem.
You can view attached files. Thanks!
which CDR are you speaking of? SQL entries? cdr-csv?
because if your speaking of SQL entries…
I only see one SQL line that says to add the disposition of BUSY. it is called when you cant go to the queue 101 or 102 or when the queue wait time expires.
Your testing appeared to be centered on dialing 7400, which never went to the queues section.
<---- because if your speaking of SQL entries…
I only see one SQL line that says to add the disposition of BUSY. it is called when you cant go to the queue 101 or 102 or when the queue wait time expires.
Your testing appeared to be centered on dialing 7400, which never went to the queues section. ---->
Hi mazzic,
DISPOSITION field always is ANSWERED.
ASTERISK can’t get CHANNEL STATUS, DIAL STATUS.
You can view attached picture.
I’m definately no expert…but looking through your dialplan you have answer statements everywhere.
Would an Answer not cause the disposition to become ANSWERED?
Hi mazzic
Can you help me?
I created 2 accounts x-lite in file SIP.CONF: A and B (2 computers in LAN).
A called B and B didn’t answer, but DISPOSITION was still ANSWERED.
Thanks
i see:
if DURATION = BILLSEC then DISPOSITION = ANSWERED
else DIPOSITION = {NO ANSWER; BUSY; FAILDED}
YOu agree?
Have A call B and don’t answer. Then provide the console display.
File extension:
exten => _XXXX,1,Answer
exten => _XXXX,n,Dial(SIP/${EXTEN},120)
exten => _XXXX,n,NoOp(QUEUE_ANS: ${CDR(disposition)} / ${CDR(disposition,u)})
exten => _XXXX,n,Hangup
Log:
– Registered SIP ‘1016’ at 183.91.3.74 port 36615
– Saved useragent “X-Lite release 1002tx stamp 29712” for peer 1016
– Unregistered SIP ‘1016’
– Registered SIP ‘1016’ at 183.91.3.74 port 36615
– Saved useragent “X-Lite release 1002tx stamp 29712” for peer 1016
– Registered SIP ‘1017’ at 183.91.3.74 port 45961
– Saved useragent “eyeBeam release 3006o stamp 17551” for peer 1017
– Executing [1017@from-internal:1] Answer(“SIP/1016-00000017”, “”) in new stack
– Executing [1017@from-internal:2] Dial(“SIP/1016-00000017”, “SIP/1017|120”) in new stack
– Called 1017
– SIP/1017-00000018 is ringing
-- Got SIP response 480 "Temporarily Unavailable" back from 183.91.3.74
-- SIP/1017-00000018 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [1017@from-internal:3] NoOp(“SIP/1016-00000017”, “QUEUE_ANS: ANSWERED / 8”) in new stack
– Executing [1017@from-internal:4] Hangup(“SIP/1016-00000017”, “”) in new stack
== Spawn extension (from-internal, 1017, 4) exited non-zero on ‘SIP/1016-00000017’
Now change your dialplan and do it again.
exten => _XXXX,1,Dial(SIP/${EXTEN},120)
exten => _XXXX,n,NoOp(QUEUE_ANS: ${CDR(disposition)} / ${CDR(disposition,u)})
exten => _XXXX,n,Hangup
Hi mazzic,
I changed extension file and it run OK (X-lite A calls X-lite B).
But i make a call by mobile, then press ‘0’ digit to customer-care (a queue), it’s incorrect. DURATION and BILLSEC are the same.
2 file queue.conf and queue_cauhinh.conf